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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.