Problem Statement: Find TOP 5 Products on the basis of TotalSales
I wrote RANKX function for ranking the Products based on TotalSales
But when I try to filter the TOP5 Products on the basis of below measure: Product Rank as per Quantity = RANKX(ALL(Products),[Total Quantity],DESC,Dense)
I am getting some irrelevant results.
PFA screenshot
But could you please explain “Why Bottom 5”?
As per my understanding RANK column is sorted as 1,2,3,4,5,… so why are we giving the filter as TOP N with “Show Items” as “Bottom”?
Becuase in TopN filter, when you select top, you are telling that the bigger the number, then higher you rate it. In case of you rankX, it is the opposite, you are rating higher product with rank 1 not rank 60.