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.
I have a very simple example table - purchases from vendors with item number, vendor name, amount and a paid flag (yes/no).
I have a measure that calculates the total amount:
Solved! Go to Solution.
try this measure for Total Paid:
Total Paid = CALCULATE ( [Total Cost], FILTER ( Purchases, Purchases[Paid] = "Yes" ) )
try this measure for Total Paid:
Total Paid = CALCULATE ( [Total Cost], FILTER ( Purchases, Purchases[Paid] = "Yes" ) )
@Anonymous Thanks a lot, this worked. Why does this work and not the other way around?
The original Total Paid measure is overriding the filter context coming from your slicer, essentially it is equivalent of the following formula:
Total Paid = CALCULATE ( [Total Cost], FILTER ( ALL ( Purchase[Paid] ), Purchase[Paid] = "Yes" ) )
ALL function ignore any filters coming from your data model. See reference here.
@Anonymous Makes sense, thanks.
User | Count |
---|---|
98 | |
75 | |
69 | |
50 | |
27 |