Forum Discussion
Simple ALLEXCEPT
- 6 years ago
Hi,
Thank you all for your replies but the real reason why it doesn't work is as follow:
ALLEXCEPT behaves as described in the documentation only when it's used as a filter argument in CALCULATE, otherwise it would return the table of its first argument without/except the columns in the subsequent arguments.
A way to prove this, is look at the ALL function that behaves the same way: A single ALL returns all the table of its argument, and the ALL as a filter argument in CALCULATE removes the filters on all the columns of the table.
Two completely different behaviors depending on the context of the function.
…DAX and his ambiguities.
It probably does not work because the column you are putting under the function is not filtered DIRECTLY by your filter. Bear in mind that your fact table should have all its column hidden and slicing should be done only through dimensions. Then it'll work but you have to manipulate your dimensions rather than the fact table. ALLEXCEPT takes off DIRECT filters. If there are none, nothing happens.
Best
D
Use simple ALL function to get your desired result.
Calculate(Countrow(table),All(table))
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.