Forum Discussion

akshay2204's avatar
akshay2204
Frequent Visitor
3 years ago

RankX

Hi,

I have used rankx function to calculate the top customers by GM Impact. I need to show top 5 customers 

As you see in this image  1 when no filter is selected from filter pane we can see all the ranks 

  

 

But as I select top 5 using Rank_Gm measure then I can only see 4 records I need to see 5 records

The dax used for rankx is as follows

Rank Gm =
 RANKX(ALLSELECTED(Sales[Customer]),[GM_Imp],,Desc,Dense)

 

 

3 Replies