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
Jaweed
Helper III
Helper III

TOP N in DAX

Hello friends

I would like to display the count of TOP 3 count of Staff. I cannot get it right.

My table is as below

John

John

John

John

Rob

Rob

Rob

Rob

Bill

Bill

Alex

Sam

Dough

 

I would like a table visual to show top 3 count of staff - Only these 3 to be displayed

Name       Count

John         4

Rob          4

Bill            2

 

Appreciate some help. Thanks.

 

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Jaweed 

add measure

r = rankx(ALL('Table'[Name]);calculate(COUNT('Table'[Name]));;;Skip)

Next, in the visual filter pane set "r is less then 4"

do not hesitate to kudo useful posts and mark solutions as solution
Linkedin


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

17 REPLIES 17

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.