Forum Discussion

cham's avatar
cham
Icon for Post Patron rankPost Patron
6 years ago
Solved

TOP N not working

Hi,

I want to get the TOP 5 driver numbers according to the amount. I tried it as below but its not working. Can anyone help me to do this? 

 

 

 

21 Replies

  • Hi,

    Try these measures

    Total value = SUM(Table[Amount])

    Rank by Driver = RANKX(ALL(Table[Driver]),[Total value])

    Drag Driver and Total value measure to your visual.  Filter the second measure on Less than equal to 5.

    Hope this helps.

    • cham's avatar
      cham
      Icon for Post Patron rankPost Patron

      Hi,

       

      What you mean by Filter the second measure on Less than equal to 5? 

       

      See the below pic. Cannt we use TOP N filter to do this?

       

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Icon for Super User rankSuper User

        Yes, The TopN should also work.  Try it.  If it does not, then share the link from where i can download your PBI file.