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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
LeaRupnik
Helper III
Helper III

sum condition

Hello,

I have one question regarding dax, do you maybe know how I could calculate this to get the following

in a sum i like NEplačano 8670677 and not 8086893. I have a dax

Neplačano v tožbi:=IF([Plačano v tožbi]>[Fakturirano v tožbi],0,SUMX('receivables terjatve',[Fakturirano v tožbi]-[Plačano v tožbi]))

LeaRupnik_0-1669814591643.png

 

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @LeaRupnik 

 

 According to the data and requirements you provided, you can not get the calculation results you want, I found several inaccuracies in the picture, you can refer to the comparison chart I provided

 

vxinruzhumsft_0-1669863602141.png

 

vxinruzhumsft_1-1669863602149.png

 

 

Here is my computed column code

NT = IF('Table'[PT]>'Table'[FT],0,'Table'[FT]-'Table'[PT])

Sum_NT = SUM('Table'[NT])

 

 

 

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.

View solution in original post

2 REPLIES 2
v-xinruzhu-msft
Community Support
Community Support

Hi @LeaRupnik 

 

 According to the data and requirements you provided, you can not get the calculation results you want, I found several inaccuracies in the picture, you can refer to the comparison chart I provided

 

vxinruzhumsft_0-1669863839173.png

 

vxinruzhumsft_1-1669863839187.png

 

 

Here is my computed column code

 NT = IF('Table'[PT]>'Table'[FT],0,'Table'[FT]-'Table'[PT])

Sum_NT = SUM('Table'[NT])

 

 

 

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.

v-xinruzhu-msft
Community Support
Community Support

Hi @LeaRupnik 

 

 According to the data and requirements you provided, you can not get the calculation results you want, I found several inaccuracies in the picture, you can refer to the comparison chart I provided

 

vxinruzhumsft_0-1669863602141.png

 

vxinruzhumsft_1-1669863602149.png

 

 

Here is my computed column code

NT = IF('Table'[PT]>'Table'[FT],0,'Table'[FT]-'Table'[PT])

Sum_NT = SUM('Table'[NT])

 

 

 

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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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