Forum Discussion

neeraj068's avatar
neeraj068
New Member
5 years ago
Solved

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...
  • v-kelly-msft's avatar
    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,
    Kelly

    Did I answer your question? Mark my post as a solution!