cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
PR20048119 Memorable Member
Memorable Member

Re: Change matrix total to a sum and not an average

 

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
PR20048119 Memorable Member
Memorable Member

Re: Change matrix total to a sum and not an average

 

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

PR20048119 Memorable Member
Memorable Member

Re: Change matrix total to a sum and not an average

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
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors