Forum Discussion
Multiple Levels/Drills Rank Measure (Problem)
Hi Ciria,
Here is a blog for your reference:
DAX – Ranking with Hierarchy Drill-Down Problem
Best regards,
Yuliana Gu
- Ciria8 years agoAdvocate III
Hi v-yulgu-msft
First of all thank you for the answer, it is really helpful. It has solved 50% of my problem.
Now, I can drill down in multiples levels getting proper ranking results. The good thing is this method makes drill down possible even in multiple levels, not only two, opening a wide range of opportunities by using IF and NOT functions.
But still the second problem I mentioned is present.
- When I click over a visual, narrowing down the list on table, all families/countries are shown, even when they don't have any result to show up.
- Same thing when I drill down in one family, Table is not showing me only those results with values, but all countries, regardless they have sales or not.
- I've attached two pictures for further explanation.
How can amend the formula to only show values with figures?
Using VALUES instead of ALL in RANKX function doesn't work.... Perhaps a combination of FILTER+VALUES like EnterpriseDNA (Sam Mckay did here) but my DAX skills are still limited :-(
https://www.youtube.com/watch?v=IyrNH7aD_qk&t=408s
Awaiting for your feedback :-)
- Ciria8 years agoAdvocate III
Dears:
By the way, here the Dropbox's Link to my file with the formula test done.
https://www.dropbox.com/s/88dtadb0s7m1hpd/Dummy%20Model.pbix?dl=0
Regards,
- Ciria8 years agoAdvocate III
Dears:
Any idea about how remove those countries without sales on the list?
You need ALL function there to remove the filter context you have with "Country_Name" on Rows, otherwise all rows will be ranked as "1".
I have temporaly managed the situation, using "Visual Filters", selecting "Total Sales Greater than 0", but I would like to know if there is a way to do it with DAX.
Thanks in advance for the support :-)