BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
BijZuiderduin
Fluorite | Level 6

In VA I created a 100% stacked bar chart with labels per segment. 

The percentage value is shown with 2 decimals. How can this be changed to 1 decimal?

Knipsel.PNG

 

Aantal is the measured variable

(Frequencypercentage cannot be used here.)

 

Thanks for suggestions.

Jurgen

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Madelyn_SAS
SAS Super FREQ

You cannot change the number of decimal places, but I have added you to the list of customers requesting this ability. 

View solution in original post

7 REPLIES 7
Madelyn_SAS
SAS Super FREQ

You cannot change the number of decimal places, but I have added you to the list of customers requesting this ability. 

CarolaRoettig
SAS Employee

is there an open feature request for this?

i also have a customer ("Versicherungskammer Bayern") who is asking for this option.

regards,

Caro 

 

PS: THanks, Bruno, for this great trick!!

rshams
Calcite | Level 5

I would like this feature to be added as well. I have a bar chart showing 8 decimal places right now which does not look nice. There should be a way to customize the decimal places on display on the charts.

acordes
Rhodochrosite | Level 12

there is a possibility to achieve this:

a customized format that you can load to VA

BrunoMueller
SAS Super FREQ

You can achieve the percent with 1 decimal by calculating the values with new dataitems, this will allow you to specify the format you want to use.

Here is a screenshot comparing the two methods.

Bruno_SAS_0-1649854884917.png

The example uses sashelp.cars and the following dataitems:

hp by type:

AggregateTable(_Sum_, Table(_Sum_, Fixed('Type'n), 'Horsepower'n))

 

hp aggr:

Sum [_ByGroup_] ('Horsepower'n)

 

hp aggr / hp by type %:

'hp aggr'n / 'hp by type'n

 

The barchart to the left uses the "Normalize groups to 100%"

 

The barchart to the right uses the calculated dataitem "hp aggr / hp by type %"

 

 

 

BijZuiderduin
Fluorite | Level 6
This looks promising! Depending on time available, I am going to give it a try.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 7 replies
  • 2771 views
  • 4 likes
  • 6 in conversation