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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors