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))
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.