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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
1001
Resolver II
Resolver II

DAX to calculate two Sumx columns

Hi, I need to calculate the total ABS value between two columns of two tables. I'm just unsure of the syntax though. I have so far:

 

1001_1-1680066795619.png

As you can see from the screenshot, the ABS Variance total should be higher than the Variance total.  It isn't. Just wondering where my DAX is incorrect.

1001_0-1680067043771.png

 

Thanks All.

2 REPLIES 2
Anonymous
Not applicable

Hi @1001 

Whether you mean to calculate the sum of variances, you can refer to the following measure.

SUM_ABS Variance=SUMX(ALLSELECTED('Table'),[ABS Variance])

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

hi Yolo, I appreciate that. I finaly got the right DAX, being:

ABS = SUMX(SUMMARIZE('Masterdata','Masterdata'[Material ID],"ABS Diff",ABS(SUM('Orders'[Ordered Qty])-SUM('Deliveries'[Delivered]))),[ABS Diff])

1001_0-1681969509763.png
Many thanks.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors