Forum Discussion

CupidC's avatar
CupidC
Icon for Helper II rankHelper II
4 years ago
Solved

Showing Top customers in a Table using TOPN

Hi all I was trying to use TOPN function to show the Top 3 customers in a Table visual, but I couldn't figure it out what is wrong with my formula. any advice would be great 😞   Original Table: ...
  • VahidDM's avatar
    4 years ago

    Hi CupidC 

     

    You can just add a simple filter on that visual like this to find those Top 3 items:

     

     

    Output:

    If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
    Appreciate your Kudos!!
    LinkedIn: 
    www.linkedin.com/in/vahid-dm/

     

     

     

  • Ashish_Mathur's avatar
    4 years ago

    Hi,

    Try these measures

    Total = SUM(Data[Sales])
    Measure = CALCULATE([Total],topn(3,ALL(Data[Customer]),[Total]),VALUES(Data[Customer]))

    Hope this helps.