cancel
Showing results for
Did you mean:

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

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
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)

Measure:

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

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

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.

2 REPLIES 2
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)

Measure:

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

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

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.

Regular Visitor

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

Announcements

Power BI Monthly Update - November 2023

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

Fabric Community News unified experience

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

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