cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
almondmilk1
Regular Visitor

How to get the top 3 and bottom 3 projects for each team scale and display in a Cluster Map?

I have a table with 3 columns: Team Scale(1 to 4), Project, and Total Score. I want to display a Cluster Map for each Team Scale with the top 3 and bottom 3 projects. Can someone help me with detailed steps or share the pbix with me? I tried out using different formulae but didn't get what was expected.
1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @almondmilk1 

 

You can try the following methods.
Column:

Rank1 = RANKX(FILTER('Table',[Team Scale]=EARLIER('Table'[Team Scale])),[Total Score],,DESC)
Rank2 = RANKX(FILTER('Table',[Team Scale]=EARLIER('Table'[Team Scale])),[Total Score],,ASC)

vzhangti_0-1679019979725.png

Measure:

Top3 = IF(MAX('Table'[Rank1])<=3,1)

vzhangti_1-1679020105552.png

Bottom3 = IF(MAX('Table'[Rank2])<=3,1,0)

vzhangti_2-1679020215800.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @almondmilk1 

 

You can try the following methods.
Column:

Rank1 = RANKX(FILTER('Table',[Team Scale]=EARLIER('Table'[Team Scale])),[Total Score],,DESC)
Rank2 = RANKX(FILTER('Table',[Team Scale]=EARLIER('Table'[Team Scale])),[Total Score],,ASC)

vzhangti_0-1679019979725.png

Measure:

Top3 = IF(MAX('Table'[Rank1])<=3,1)

vzhangti_1-1679020105552.png

Bottom3 = IF(MAX('Table'[Rank2])<=3,1,0)

vzhangti_2-1679020215800.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you so much @v-zhangti! This is exactly what I wanted.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors