cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AXJKATBI
Frequent Visitor

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

Re: How to change measures in matrix total from average to sum

@AXJKATBI 

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?

 

Microsoft
Microsoft

Re: How to change measures in matrix total from average to sum

Hi, @AXJKATBI 

 

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.

AXJKATBI
Frequent Visitor

Re: How to change measures in matrix total from average to sum

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
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors