Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
80 | |
65 | |
52 | |
50 |
User | Count |
---|---|
212 | |
89 | |
80 | |
69 | |
60 |