hi,
Can we display percentage on key value. (i have a barchart object displayed the numbers based on the filters so would like to display the percentage of the values displayed on barchart).
thank you.
You need to provide a bit more detail like: SAS9.4 or Viya, VA or SAS Graph?
One option is always to verify if one of Robert Allison's examples already covers what you need and then "draw the inspiration" for your code from there.
i am trying calculate the percentage in sas viya va 8.3 and using the barchart to display the count of each product and I would like to display the percentage downside of the bar chart . my problem is if select the SLA then i get key value as 100% I want only 71%, see the percentage calculation below
Sum [_ByGroup_] ('Frequency'n) / AggregateTable(_Sum_, Table(
_Sum_, Remove('DEP_NAME'n, 'SLA'n), 'Frequency'n))
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.