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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.