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
Hello all. I hope everyone's ok
I don't know how to do this measure above, probably because i don't understand yet the concept or the rules.
I need to calculate [Net Sales] in this report but ignoring all filters except the year filter.
I've tried something like this but it's not working
Solved! Go to Solution.
Not 100% sure on your data model/tables etc but generally you want to do something like this:
All Sales =
CALCULATE(
[Net Sales],
REMOVEFILTERS (),
VALUES('Tab Dates'[Year])
)
Removefilters without any parameters takes away all filters.
The values line then adds back in any existing filter on the year.
Have a read of this for more detail: Using ALLEXCEPT versus ALL and VALUES - SQLBI
(Note REMOVEFILTERS is the same as ALL it just makes the code easier to understand!)
Not 100% sure on your data model/tables etc but generally you want to do something like this:
All Sales =
CALCULATE(
[Net Sales],
REMOVEFILTERS (),
VALUES('Tab Dates'[Year])
)
Removefilters without any parameters takes away all filters.
The values line then adds back in any existing filter on the year.
Have a read of this for more detail: Using ALLEXCEPT versus ALL and VALUES - SQLBI
(Note REMOVEFILTERS is the same as ALL it just makes the code easier to understand!)
Hello @bcdobbs
It worked perfectly. And thanks a lot for the explanation. Awesome!!!
Stay safe my pbi friend😁
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 |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 20 | |
| 12 | |
| 12 |