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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

How to pick just top 3 When Rank is same

Hi Guys Does Anyone know How to pick just Top 3 When We have the Rank or Same Values for top Values.

VAR __Data1 =
VALUES(Lead_Performence[RMName])
VAR __TopLeads =
TOPN(
3,
ALL(Lead_Performence[RMName]),
[Total Leads],
DESC
)
VAR __Top3 =
CALCULATE(
[RM Accep. %],
TOPN(
3,
ALL(Lead_Performence[RMName]),
[RM Accep. %],
DESC
),__Data1
)
RETURN
__Top3

 

Magic_Mike_0-1673258017738.png

 

1 ACCEPTED SOLUTION
Mahesh0016
Super User
Super User

@Anonymous https://www.sqlbi.com/articles/filtering-the-top-3-products-for-each-category-in-power-bi/

*If this post helps, please consider accept as solution to help other members find it more quickly and Appreciate your Kudos.

View solution in original post

2 REPLIES 2
Mahesh0016
Super User
Super User

@Anonymous https://www.sqlbi.com/articles/filtering-the-top-3-products-for-each-category-in-power-bi/

*If this post helps, please consider accept as solution to help other members find it more quickly and Appreciate your Kudos.

johnt75
Super User
Super User

You would need to use another column or measure as a tie breaker. The TOPN function accepts multiple ranking parameters, so you just need to decide how you want to determine what is in the top 3 - alphabetical, most recent, earliest etc. If you don't have a column which uniquely defines a row then you could add an index column using Power Query.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.