Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kousar99
Helper I
Helper I

How to get the top 3 customers count( Group by Customers)

Hi Experts,

  How to get the count of the top 3 customers or for example, I have an email id column where I have to show the count of top 3 email Ids, Please help me on this and do the needful.

 

 

Thanks,

 Kousar

1 ACCEPTED SOLUTION
rohit_singh
Solution Sage
Solution Sage

Hi @kousar99 ,

One way is to use the in-built TOPN filter 

rohit_singh_0-1654211736408.png

 

As you can see, it shows me the top 5 entries by value.

rohit_singh_1-1654211814414.png

Alternatively, you can also use functions such as RANKX and TOPN to create measures/calculated columns that can help you filter the data. 

Sample calculated column using RANKX is shown below :

rohit_singh_2-1654212271665.png

Rank =
        RANKX(
                     'TopN',
'TopN'[Position],
,
DESC,
Dense
        )


You can then use this column as a filter on your visual to show you only the desired ranks

rohit_singh_3-1654212430152.png

 

Kind regards,

Rohit


Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

View solution in original post

1 REPLY 1
rohit_singh
Solution Sage
Solution Sage

Hi @kousar99 ,

One way is to use the in-built TOPN filter 

rohit_singh_0-1654211736408.png

 

As you can see, it shows me the top 5 entries by value.

rohit_singh_1-1654211814414.png

Alternatively, you can also use functions such as RANKX and TOPN to create measures/calculated columns that can help you filter the data. 

Sample calculated column using RANKX is shown below :

rohit_singh_2-1654212271665.png

Rank =
        RANKX(
                     'TopN',
'TopN'[Position],
,
DESC,
Dense
        )


You can then use this column as a filter on your visual to show you only the desired ranks

rohit_singh_3-1654212430152.png

 

Kind regards,

Rohit


Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors