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
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
Anonymous
Not applicable

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
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
Top Kudoed Authors