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
analyst312
Frequent Visitor

Change matrix total to a sum and not an average

I have a matrix and inorder to get the values I wanted, i needed to create a measure that was using an "Average" expression. When i look at this from a line item point of view, the values i was looking for are correct, but the subtotals and grand totals are averages, and i would need them to be summed. Is there a way to do this, or am i going to need to change up my meausre? thanks

 

image.png

 

 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

When you make a measure and add it to a table the measure is calculated in all row including the total, so you need to add a summarization formula in order to have the correct calculation on your total.

 

Add the following measure and put it on your table:

 

Total_Row = IF ( HASONEVALUE ( Table[Department] ); [Total], SUMX ( Table; [Total] ) )

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

 

When you make a measure and add it to a table the measure is calculated in all row including the total, so you need to add a summarization formula in order to have the correct calculation on your total.

 

Add the following measure and put it on your table:

 

Total_Row = IF ( HASONEVALUE ( Table[Department] ); [Total], SUMX ( Table; [Total] ) )

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos. 

Anonymous
Not applicable

check this link for your referance

 

https://community.powerbi.com/t5/Desktop/Incorrect-Measure-Total/td-p/454679

 

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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