BookmarkSubscribeRSS Feed
Calcite | Level 5



I have an aggregated Measure (PD%)

Now i want the Average of that Aggregated Measure.

How do i do that. Im kind of Stuck.




Super User

You may need to rethink what your are requesting. Averages of percentages or rates are seldom properly interpreted or interpretable.


Example If I have 10,000 students in one school and the percent that get an A is 20% (2000 students) and I average that with a school that has 5 students and 100% get an A would it be appropriate to say that (20+100)/2 percent or 60 percent of students overall got an A?


You have to sum numerators and denominators and then calculate the percentage: (2000 + 5)/(10000 +5) which is about 20.04 percent.


Averaging rates such as percentages really on works when the denominators are the same (or when the samples are pretty close in size with similar rates the difference may disappear in rounding)

Calcite | Level 5

Hi Ballardw,


Thanks for your quick response.


I am building custom graph with - a scatter plot(to show various sectors) and also a line graph inside it(both x and Y axis) to show their average.


So i have already done an aggregated measure(sum of Sector_PD(group)/sum of Sector_PD(All)) - Thats what gives me PD%.


Now for me to put that in the graph, I need their Average.


As i showed in my Previous File. I need to create a field called Avg_PD% as 7% based on the above.





Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.


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
  • 2 replies
  • 2 in conversation