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))
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.