Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have the following problem. I do not understand the behavior of ALL() in my specific scenario.
I prepared a sample PBIX that demonstrates it. I want the measure to ignore filters in Potential Rating (and Keep other applied filters)
https://drive.google.com/file/d/1uTILa2uxYrp7gTR7ZjnoCfDPA7b_wDnz/view?usp=sharing
as you can see on the picture below, the measure returns 9 if High or Low is filtered, but returns 4 for Medium.
Why the ALL(Potential Rating) returns 4 when the correct count after removing filter on Potential Rating is 9?
(My aim is to have a dynamic measure that returns the percentage of selected/filtered ratings out of the grand total, so for this I need the count with filter on Potential Rating removed)
Thank you
Jakub
Solved! Go to Solution.
Hi @jdusek92
This confusing behaviour is due to auto-exist.
Check out this article:
https://www.sqlbi.com/articles/understanding-dax-auto-exist/
The solution in this case is to create dimension tables for columns you are filtering on: Potential Rating and Job Level.
regards
Hi, thanks for your reply.
I submitted an idea to change this behavior to be less confusing and more friendly towards non professionals who do not know what a "star schema" is.
https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=3f6ad02e-eb2a-ee11-a81c-000d3a0ec312
If you connect Excel and generate the same outputs (with an appropriate PivotTable or cube function and slicers), you end up with the result you expected. I guess this is a "benefit" of the MDX queries generated by Excel.
I will have a further play around and see if I can add anything else.
Regards
Hi, thanks for your reply.
I submitted an idea to change this behavior to be less confusing and more friendly towards non professionals who do not know what a "star schema" is.
https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=3f6ad02e-eb2a-ee11-a81c-000d3a0ec312
Hi @jdusek92
This confusing behaviour is due to auto-exist.
Check out this article:
https://www.sqlbi.com/articles/understanding-dax-auto-exist/
The solution in this case is to create dimension tables for columns you are filtering on: Potential Rating and Job Level.
regards
Hello @OwenAuger
thanks for the article, it indeed explains the behavior.
I would like to ask some more:
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |