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
mo_nasser
Frequent Visitor

Rank dax - power bi

Hello guys 

I'm trying to make rank for this table for number of employees at (cairo - suez - alex ) regions only 

and i wanted to get maximum three for all these regions and make cards for everey value of number of employees,

mo_nasser_1-1657200248001.png

what i want to get ,

mo_nasser_2-1657200556868.png

Thanks in advance

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mo_nasser , Assume you have a count of employee measure - Employee 

 

Create a rank and use this in the visual level filter 

Rank = Rankx(allselected(Table[regions]), [Employee],,desc,dense) 

 

Or create a measure

Concatenatex(Filter(Values(Table[Regions]) , [Rank] =1) , Max(Table[Age Group]) & unichar(10) & Max(Table[Age gender] ) , " , ") 

 

Add others as per need

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@mo_nasser , Assume you have a count of employee measure - Employee 

 

Create a rank and use this in the visual level filter 

Rank = Rankx(allselected(Table[regions]), [Employee],,desc,dense) 

 

Or create a measure

Concatenatex(Filter(Values(Table[Regions]) , [Rank] =1) , Max(Table[Age Group]) & unichar(10) & Max(Table[Age gender] ) , " , ") 

 

Add others as per need

thank you , solved 

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.