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
joeytsui
Helper I
Helper I

SUM of AVERAGE

Hi All,

 

My table have a measurment called "Average ORSO", which is an averaged value of a column ORSO_ER

and i added a Martix Visual, want to calcuculate the SUM of "Average ORSO", however the martix calculated the 

average of the "Average ORSO" instead of SUM, may i know where can i change it ? 

 

 

thanks in advance.

 

best regards,

Joey

 

2018-12-08_15h30_27.png

1 ACCEPTED SOLUTION
affan
Solution Sage
Solution Sage

Hi @joeytsui

 

You can go through the following thread to understand the issues with incorrect measure totals

 

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

 

Further you can go through the video below to understand the measure totals.

 

https://www.youtube.com/watch?v=Ka7Ds4EAjNQ

 

 

If this helped you, please mark this post as an accepted solution and like to give KUDOS .

 

Regards,

Affan

View solution in original post

2 REPLIES 2
affan
Solution Sage
Solution Sage

Hi @joeytsui

 

You can go through the following thread to understand the issues with incorrect measure totals

 

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

 

Further you can go through the video below to understand the measure totals.

 

https://www.youtube.com/watch?v=Ka7Ds4EAjNQ

 

 

If this helped you, please mark this post as an accepted solution and like to give KUDOS .

 

Regards,

Affan

AlB
Super User
Super User

Hi @joeytsui

 

If I understand correctly, you want a behaviour at the total different from that at the single rows (SUM vs AVG).

For that I think you need to first check where the measure is operating , if at the total or not, and then use a different formula. The idea:

IF @TOTAL do SUM...

else

   do AVERAGE

 

You can do the check with HASONEVALUE(  ), SELECTEDVALUE( ) or something similar

 

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.