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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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.