Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

Calculate Average from an Aggregated Measure - SAS VA

Reply
Occasional Contributor
Posts: 5

Calculate Average from an Aggregated Measure - SAS VA

[ Edited ]

Hi,

 

I have an aggregated Measure (PD%)

Now i want the Average of that Aggregated Measure.

How do i do that. Im kind of Stuck.

 

Thanks,

Nawaz.

Super User
Posts: 13,941

Re: Calculate Average from an Aggregated Measure - SAS VA

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)

Occasional Contributor
Posts: 5

Re: Calculate Average from an Aggregated Measure - SAS VA

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.

 

Thanks,

Nawaz. 

Ask a Question
Discussion stats
  • 2 replies
  • 138 views
  • 0 likes
  • 2 in conversation