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
Jilanibasha
Frequent Visitor

Issue with Ranking, Sharing same rank with multiple labels due to tie rank.

Hi Team,

 

I have an issue with Ranking, i have applied rank on Topics based on topic count. For Top ranking there are different values its so it is working fine. For bottom ranking, rank 1,2,34,and 5th rank tie with multiple topics. 

Ex. 1 is tie with 200 topics and 2 is tie with 100 topics..... like that,

my requirement is, if same rank sharing with multiple topics, instead of showing all the topics i need to restrict 20 topics(rows).  

below is the my current scenario 

Jilanibasha_0-1624867826174.png

Please help some one how to restrict topics 20 or 30 is fine with coustomer. he doent want to see visutal like this.

 

 

4 REPLIES 4
amitchandak
Super User
Super User

@Jilanibasha , Based on what I got

Try a measure like

rankxs(allselected(Table[tie]), Table[Topic]), Calculate(count(Table[Topic])),,desc,dense)

 

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

currently below measure is used to calculate bottom values.

RANKX(ALLSELECTED(ContactTopic[topic]) ,CALCULATE(COUNT(ContactTopic[topic])),,ASC,Dense).

 

but in your formulae

rankxs(allselected(Table[tie]), Table[Topic]), Calculate(count(Table[Topic])),,desc,dense)

i did not understad "Table[tie]", is it calculted measure? what is the formulae for it, and how can it control the rows only 20.

 

@Jilanibasha , Sorry, some typos, Done some modification, check if that can work, if you have both columns

 

rankx(allselected(ContactTopic[tie], ContactTopic[Topic]), Calculate(count(Table[Topic])),,desc,dense)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amit,

 

ContactTopic[tie] column not there

if i remove that column now it is same as my formulae only.

that formula not working. Please suggest limit the tie rank number of rows

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!

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
Top Kudoed Authors