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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Minseven07
Frequent Visitor

Displaying Average in Grand Total of Power BI Matrix Instead of Sum

Hi community!

 

I'm working with a matrix in Power BI, and I'm looking to display the average instead of the sum in the grand total (PBX file example at the end). I've gone through some posts in the community, but I haven't come across a solution that fits my specific requirement (or perhaps I overlooked it).

 

what I want to achieve is to have the calculated of the average of the last 10 months in the below highlited column:

Minseven07_0-1706606852453.png

In some post, they suggested to change the values:

Minseven07_1-1706606954650.png

 

but this doesn't suit me as it change the whole matrix to AVG

 

File:

https://drive.google.com/file/d/1th-JftbZrPoTTUNik11bSXEN2l0QxoWM/view?usp=sharing

 

thx

1 ACCEPTED SOLUTION

@Minseven07 , You can use use isincope and switch the total with avg

 

Assume your have measure is

m1= Sum(Table[ETP])

 

then you can have measures like

 

If(isinscope(Date[Month Year]), [M1], Averagex(Values(Date[Month Year]), [M1]) )

 

How to Switch Subtotal and Grand Total in Power BI | Power BI Tutorials| isinscope: https://youtu.be/smhIPw3OkKA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
Minseven07
Frequent Visitor

I'm not really a big fan of this approach:

- The average is not what I expected. the average of the sums is what I want to achieve here. example for the group C6 it should be 2.304.

- Moreover, the average should be calculated on the last 10 months. This means for the same group C6 it should be 2.3

- When you change the sorting of the Matrix table, the AVG column is not folowing...

 

I don't know how this is getting so complicated while easy to achieve on Excel... really. Anyway, thanks for your support.

 

@Minseven07 , You can use use isincope and switch the total with avg

 

Assume your have measure is

m1= Sum(Table[ETP])

 

then you can have measures like

 

If(isinscope(Date[Month Year]), [M1], Averagex(Values(Date[Month Year]), [M1]) )

 

How to Switch Subtotal and Grand Total in Power BI | Power BI Tutorials| isinscope: https://youtu.be/smhIPw3OkKA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

thanks! Exactly what I wanted.

amustafa
Solution Sage
Solution Sage

With some formatting and overlaying the copy of the same visual and grouping them worked. See the attached pbix file.

 

https://1drv.ms/u/s!Aq3n-sopiGyqgolQ4K0eyD9k8RDHXA?e=gz46Vq

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Minseven07
Frequent Visitor

thanks for your reply but this doesn't really help. the layout is not as expected and their solution is calculating the average. In my case, it is more the average of the sum for each row Group.

 

 

 

amustafa
Solution Sage
Solution Sage

See if this helps:

Solved: How to change total column sum to average in matri... - Microsoft Fabric Community

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors