Forum Discussion
DAX remove filter and show missing record
- 4 years ago
Hi Anonymous
This is auto-exist in action. As ever, sqlbi have a good article explaining what's happening: https://www.sqlbi.com/articles/understanding-dax-auto-exist/
In short, as Name and BirthYear are on the same table the engine does an optimization to not evaluate combinations that don't exist after the filter is applied.
The suggested workaround is to snowflake the dimension - ie to move BirthYear to a separate table.
You would hide BirthYear in the PartyAnimal table and use BirthYear from the BirthYear table in your slicer and measure
CALCULATE([TotalFee], REMOVEFILTERS(BirthYear[BirthYear]))That gets you your desired result.
Hi Anonymous
This is auto-exist in action. As ever, sqlbi have a good article explaining what's happening: https://www.sqlbi.com/articles/understanding-dax-auto-exist/
In short, as Name and BirthYear are on the same table the engine does an optimization to not evaluate combinations that don't exist after the filter is applied.
The suggested workaround is to snowflake the dimension - ie to move BirthYear to a separate table.
You would hide BirthYear in the PartyAnimal table and use BirthYear from the BirthYear table in your slicer and measure
CALCULATE([TotalFee], REMOVEFILTERS(BirthYear[BirthYear]))That gets you your desired result.