Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 96 | |
| 70 | |
| 50 | |
| 42 | |
| 40 |