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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Beezer70
Frequent Visitor

Sum ABS Variance Measure

I have two fairly straight forward Variance Measure.  One is to calculate the gap between the Planned and Produced Quantites.  The other is to get the Absolute Value of that Variance.  The planned and produced quantities are each measures that calculate from separate data sources.

 

Gap (SY) = ([Produced SY] - [Planned SY])

Gap (SY - ABS) = ABS([Produced SY] - [Planned SY])

 

I need to sum the Gap (SY - ABS) column, but what I am getting is the absolute value of the Overall Variance.

 

Beezer70_1-1695824028837.png

 

In this example the Gap (SY - ABS) total should be 4,865 instead of 4,829.

 

1 ACCEPTED SOLUTION
BITomS
Solution Supplier
Solution Supplier

Hi @Beezer70 ,

 

Try this measure for the ABS:

 

Measure =

VAR _Tbl = SUMMARIZE('Table','Table'[Work Orders],"ABS",ABS([GAP (SY)]))
RETURN

SUMX(_Tbl,[ABS])

 

Hope this helps!

View solution in original post

3 REPLIES 3
jdbuchanan71
Super User
Super User

@Beezer70 

Try it like this.

GAP (SY - ABS) = SUMX ( VALUES ( YourTable[Work Orders] ), ABS ( [Gap (SY)] ) )

This will convert the [Gap (SY)] to ABS then add them up.

BITomS
Solution Supplier
Solution Supplier

Hi @Beezer70 ,

 

Try this measure for the ABS:

 

Measure =

VAR _Tbl = SUMMARIZE('Table','Table'[Work Orders],"ABS",ABS([GAP (SY)]))
RETURN

SUMX(_Tbl,[ABS])

 

Hope this helps!

This worked perfectly.  Thank you!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.