Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello everyone!
I'm stuck trying to show on a card the name of the person who has received the most assigned visits.
This is due to the duplicate values of the RANKX function. If duplicate data did not occur in the database this problem would not occur and would display the name.
If there are equal values in the database, how can I break that tie according to other criteria?
Each of them has a numeric ID
I really appreciate any suggestions and help.
Thanks.
Hi @PabloA ,
Try to use FIRSTNONBLANK and LASTNONBLANK get the text value,then concatenate two text fields with CONCATENATE.
BEST = VAR FIRST = CALCULATE(FIRSTNONBLANK(EXAMPLE[operator],1),FILTER(EXAMPLE,[Rank]=1))
VAR LAST = CALCULATE(LASTNONBLANK(EXAMPLE[operator],1),FILTER(EXAMPLE,[Rank]=1 ))
RETURN CONCATENATE(CONCATENATE(FIRST,"/"),LAST)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello, thanks for answering! I've tried it and it seems to work fine to show both, it's a good idea. The problem is that in the case that there are 3 as Ranking 1 I would have problems again. The ideal would be to break the tie and that there is only a number 1, is it possible?
Hi @PabloA ,
Try this.
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
50 | |
45 | |
38 | |
38 |