Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Balance = SUM(vendorDTLPAY2_view[Amount (LCY)]) - SUM(vendorDTLPO2_view[Amount])
Trying to add a condition to the measure above. Need this field "vendorDTLPAY2_VIEW[AMOUNT (LCY)]" to pick only values that are less than 0.00.
Please advise.
Thanks!
Hi @sraj
try
Balance = CALCULATE(SUM(vendorDTLPAY2_view[Amount (LCY)]),vendorDTLPAY2_view[Amount (LCY)]<0) - SUM(vendorDTLPO2_view[Amount])
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hi AZ38,
Thanks for responding!!
I seeing this message "TO USE SPECIAL CHARACTERS IN A MEASURE NAME, ENCLOSE THE ENTIRE NAME IN BRACKETS ([]) AND ADD A ] TO ANY CLOSING BRACKETS IN THE NAME" , I am trying to copy and paste what you have but it just giving me this message....am I missing something?
Yes, that's what i did and its working now...but the calcualtion is wrong. This is what i am getting:
Amount (LCY) = ($276405.42)
Amount = $271555.14
Balance = -547961
so, @sraj
what do you expect as desired output if you want to take into calculation only values "vendorDTLPAY2_VIEW[AMOUNT (LCY)]" tthat are less than 0.00."
please give a data example and desired result
do not hesitate to give a kudo to useful posts and mark solutions as solution
The balance needs to be 4,850.28
and what result returnted with your initial sentence?
Balance = SUM(vendorDTLPAY2_view[Amount (LCY)]) - SUM(vendorDTLPO2_view[Amount])
do not hesitate to give a kudo to useful posts and mark solutions as solution
User | Count |
---|---|
14 | |
10 | |
7 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |