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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Total of ABS difference is the same with total of difference

Hi All, 

 

I have the following two simple measures. 

 

DIF_M1 L3 = [Sum MFR1 L3]-[Sum Actuals L3]

 

and

 

ABS_M1 L3 = Abs( [Sum MFR1 L3] - [Sum Actuals L3] )

 

and I get the following results
abs total.PNG

 

Obviously the the absolute values are calculated in the fisrt column. However the Total of the first column (ABS_M1 L3) is not the sum of the values of the column but the absolute of the total of DIF_M1 L3.

 

My question is the following, 

How can I get the sum of ABS_M1 L3 as total at the end of the column?

 

 

1 REPLY 1
AlB
Super User
Super User

Hi @Anonymous

 

Try

 

ABS_M1 L3 =
SUMX ( Table1, ABS ( [Sum MFR1 L3] - [Sum Actuals L3] ) )

You'd need to show the structure of your tables and the definitions of your measures to allow a more accurate solution  

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.