Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Rsanjuan
Advocate III
Advocate III

Calculating Average of Average help

Hi,

 

I have a scenario where I want to compute the total average of one person and another person based on what is selected on a slicer.   Here is an example:

 

1.  Selected one person where the total average PM rating is 4.65

Capture1.JPG

 

2.  Selected another person where the total average PM rating is 4.82

Capture2.JPG

3.  I want to get the average of those two average totals, but it's still taking the number of jobs into account.  I just want to have an average of the average (so 4.65+4.82/2) = 4.735.  Is this possible?

 

Capture3.JPG

1 ACCEPTED SOLUTION

@BhaveshPatel and @Greg_Deckler,

 

I was able to figure out the DAX expression for this:

 

AvgofAvgPM = AverageX(Values(Job[Project Manager]),Job[PM Rating])

 

Basically taking a unique value in the table project manager, and then getting the average value of each project manager.  Then it takes those values and just averages it.  

 

Thanks!

 

 

View solution in original post

9 REPLIES 9
Greg_Deckler
Community Champion
Community Champion

Is your PM Rating a Measure or are you selecting a PM Average column and use the quick calc to get the average displayed?

 

If it is a column, you could create a Measure that is effectively:

 

Average = AVERAGE([PM Rating])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler,

 

It's actually a measure, where Job is the table.

 

PM Rating = Average(Job[PM Score])

 

 

How about this Measure?

 

Average PM Rating = [PM Rating] / COUNTROWS(FILTERS(HoursWorked[Person]))

Basically, FILTERS returns a table of the values of the filters, we count the number of rows and divide the existing measure by that count.  Not sure if this gets you there but something along these lines perhaps. The problem is that you can't really aggregate Measures but I *think* this will work for your use case.

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Scratch that, that formula doesn't work. The problem is aggregating a measure.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler  Is there a way to put the total average for each PM in another table, and then take that average?

 

 

 

 

@Rsanjuan

 

In your scenario, as the PM Rating is measure, we are not able to use AVERAGE function to return average values directly. We need to create a new column with the same DAX which is used by "PM Rating" measure. Then we can create a new measure with AVERAGE function.

 

 

 

Thanks & Regards,

Bhavesh

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

@BhaveshPatel and @Greg_Deckler,

 

I was able to figure out the DAX expression for this:

 

AvgofAvgPM = AverageX(Values(Job[Project Manager]),Job[PM Rating])

 

Basically taking a unique value in the table project manager, and then getting the average value of each project manager.  Then it takes those values and just averages it.  

 

Thanks!

 

 

Nice, I didn't think of using VALUES, nice call.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Rsanjuan

 

If you can get your problem solved by the last DAX expression you posted, you can mark your last post as answer to close this thread.

 

Best Regards,

Herbert

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.