Forum Discussion
neeraj068
5 years agoNew Member
Issue with RANKX Function
Hi Team, We are facing an issue when using the RANKXX function to calculate the Rank. We have a dataset that contains the Hotel Sales at each hotel that falls in a State. When all the Hotels or a...
- 5 years ago
Hi neeraj068 ,
Modify your measure as below:
Measure = RANKX(ALLSELECTED('ParkNames'),CALCULATE(SUM('ParkNames'[Booking_Total_SUM])),,ASC,Dense)And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Jihwan_Kim
Super User
5 years agoHi, neeraj068
I am not sure if I correctly understand your DAX measure, but please try to use ALLSELECT , instead of ALL, in front of (States[States]).
When you want to filter the ranking by the states-slicer, then I believe ALLSELECT is the correct option.
I hope this helped.
Or, please kindly share your sample pbix file then I can try to have a look and come up with a desirable solution.
Thank you very much.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!