The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
21 | |
14 | |
14 | |
9 | |
7 |