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 filters on Job Level) ALL problem.pbix (27.0 KB)
It seems like ALL does not remove filter -
but only when a specific value in a column is selected.
Would you please be able to explain why this happens?
(I need this count without filter on Potential rating to calculate % of grand total)
Hello, thank you for your reply.
I actually want to remove filters only on Potential Rating. and keep filter on Job level = 17 or 18.
So the correct number is 9.
But when I filter on Potential Rating = Medium, it gives me 4.
Why ? ALL(Potential Rating) should remove the filter Potential Rating= Medium and give me 9
So, the bigger problem here is that you are working with a single flat table. What you need to do is to break the flat file into lookup and fact tables and build a model.
I have created 2 views for you to understand how the filters are eventually making it to your measure.
The top part is eth one that you created, from Flat table.
Hello @jsodhi
yes thank you, making a star schema indeed solves the problem, so thank you very much for pointing me in the right direction.
I would like to ask more -
Is there some workaround/DAX syntax to make this work with only one flat table? often I create just a quick small reports, so I think for these scenarios it is an unnecessary struggle to create a dimension table for all the filters I might use. Is there some syntax that can make it work on the original data model?
Standard process in the forum is to only ask one question and open a new topic. This helps everyone in the forum to do proper searches if they are looking for something.
To answer your question, your dax formula will work better if your model is in star schema. Dimension table are issential if you plan on doing any kind of filters.