Forum Discussion

maurcoll's avatar
maurcoll
Helper IV
2 years ago
Solved

Rankx and sort

Good Afternoon   I am using the following formula to rank store sales, by store and region. Store Ranking % sales = RANKX ( ALL(Region[Store]), [% Sales], , ASC, Dense) Store Ranking ...
  • Sahir_Maharaj's avatar
    2 years ago

    Hello maurcoll,

     

    Can you please try this DAX:

    Store Ranking % sales (ASC) =
    RANKX(
        FILTER(ALL(Region[Store]), [Measure for % Sales] > 0),
        [% Sales], , ASC, Dense
    )