Forum Discussion

rampsaladi's avatar
rampsaladi
Frequent Visitor
8 years ago
Solved

Dynamically Calculating Rank based on Slicer

I have the following sample Dataset and I need to be able to rank the SKU based on the $ Amount for a specific time period and product combination. The user wants to see ranks for multiple time periods but these need to change based on Product selection as a slicer. Below is the data. Any help would be appreciated

 

Time PeriodProductsSKU$ Amount
Last 4 WeeksAAA1
Last 4 WeeksAAB3
Last 4 WeeksAAC0.5
Last 4 WeeksBBA2
Last 4 WeeksBBB1
Last 4 WeeksBBC6
Last 16 WeeksAAA3
Last 16 WeeksAAB4
Last 16 WeeksAAC1
Last 16 WeeksBBA4
Last 16 WeeksBBB6
Last 16 WeeksBBC7

3 Replies

  •  

    hi, rampsaladi

    rankn = RANKX(ALL(tabela[Time Period];tabela[Products];tabela[SKU]);[TT_Amount];;ASC;Dense)