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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to change measures in matrix total from average to sum

Hi,

I created a measure (which is a simple division of data from two linked tables). In a matrix with months as columns, the default yearly total is average. I need to change it to 'SUM'.

 

For data directly from a data table, I can usually right click on the value field and select different ways of aggregation. But for created measures, this function is not available. Please could you help me out.

 

Thanks,

3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

Hi, @Anonymous 

 

You can only choose the aggregation type in visulization panel for columns.

You can use the SUMX function to create the measure to get the total. 

https://docs.microsoft.com/en-us/dax/sumx-function-dax

https://docs.microsoft.com/en-us/dax/averagex-function-dax 

 

Best, Regards,

Paul Zheng

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

venal
Memorable Member
Memorable Member

@Anonymous 

Please refer the below snippet for the issue.

 

Matrix-Measure Aggregate Function Changing.JPG

If this post helps, then please consider Accept it as the solution to help the other members find it more
If this post was helpful may I ask you to mark it as solution and click on thumb symbol?

 

Anonymous
Not applicable

Hi,

 

Thanks for the replies.

 

Re the first option -- I don't have any option of selecting aggregate methods when right or left click on the 'Values' field. That's why I asked this question. If it is a column field directly from a table, then I can select different aggregate methods. But my data here is a calculated measure, right click on the 'Values' field only gives a list of "Remove field, rename, move to, conditional formatting, show value as, new quick measure'. Hence my current connundrum.

 

In another much bigger model I built some time ago, the yearly total column as row total came out default as SUM, so I never thought much about it. Or perhaps I did do something about it at that time, but now I just couldn't find my way back in. It was built quite a while ago!

 

I really need to get this sorted.

 

Thanks,

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.