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

1 ACCEPTED SOLUTION

Accepted Solutions
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.

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

Thanks & regards,
Pravin Wattamwar

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

2 REPLIES 2
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.

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

Thanks & regards,
Pravin Wattamwar

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

Memorable Member

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

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

Thanks & regards,
Pravin Wattamwar

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

Announcements

#### 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!

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

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 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

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

Top Solution Authors
Top Kudoed Authors