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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
My calculate formula does not work without the FILTER() function in it even though I thought filter was a part of it, and filter does not work without another function like ALL() or ALLSELECTED() in it, and I don't think I really want either of those since the formula does not work once I remove filters from the filter pane. Can anyone possibly explain this?
This works:
Solved! Go to Solution.
Hi @dgreen1
When you use FILTER within CALCULATE, you're explicitly defining a new filter context for the calculation. FILTER returns a table that is then used by CALCULATE to modify the existing filter context.
Your Working Example: CALCULATE([Total Inc], FILTER(ALLSELECTED(Append), Append[Rank2] = current_rank-1)) works because it does two things:
Why Other Formulas Don't Work:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dgreen1
When you use FILTER within CALCULATE, you're explicitly defining a new filter context for the calculation. FILTER returns a table that is then used by CALCULATE to modify the existing filter context.
Your Working Example: CALCULATE([Total Inc], FILTER(ALLSELECTED(Append), Append[Rank2] = current_rank-1)) works because it does two things:
Why Other Formulas Don't Work:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 38 | |
| 36 | |
| 29 | |
| 28 |
| User | Count |
|---|---|
| 127 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |