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
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😁
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 9 | |
| 8 | |
| 7 |