March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hi All,
Have an issue with Top N filter in PowerBI visual, when there is a duplicate ranked value. shows more than 5 results.
There a large amount of solutions around this forum and the web, but non seem to fit my use case after trialling them due to ranking 1-5.
RankX works, until there is a duplicate - even setting Dense or Skip for the tiebreaker does not work.
Tried various methods and fields, even creating a separate table, all with varying degrees of success.
Visual Appearance (Bottom 5)
Filter Settings
Data is populated by a likert survey ("Rank 1-5 how well you can use each item") and TopN filter shows bottom 5.
No additional data exists to modify the value as they are all submitted at the same time on the survey (No date hack method available)
Table Data Sample
Skill | Average of Rating Value |
3D Scanner - Einscan Pro+ | 2.5 |
Dynamic Microphone - Rode | 2.5 |
Gimbal - Zhiyun Crane3 | 2.5 |
Mixer - Rode Procaster | 2.5 |
PTX Camera System | 2.5 |
Resolume | 2.5 |
Video mic - Rode GO | 2.5 |
Volumetric Display - Looking Glass | 2.5 |
RTI Panels | 2.25 |
Volumetric Display - Voxon VX1 | 2.25 |
Chroma Key Kit | 2 |
Elgato Stream Deck | 2 |
Solved! Go to Solution.
@carlG Right, that' because of how RANKX and TOPN handle duplicates. You can add a small random number RAND()/100 to break ties. You'd have to create a measure to rank by like:
Measure = AVERAGE([Rating Value])*RAND()/100
@carlG , In your Rank, adds a small random variable using Rand
Rank = Rankx(<code>) +rank()/1000 and then use this in Top N filter
@carlG Right, that' because of how RANKX and TOPN handle duplicates. You can add a small random number RAND()/100 to break ties. You'd have to create a measure to rank by like:
Measure = AVERAGE([Rating Value])*RAND()/100
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |