Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi, can someone please help me with this one?
I am working on an olympics database and I am trying to find out Top 5 countries with highest medals and in that visual I also want to show the different types of medals.
I want to use Dax to show the Top 5 countries and don't want to use the filter pane.
The Dax measure which I am using to find the top 5 countries with highest medals is -
But as soon as I put the Medal in legend then I get 6 countries instead of 5-
Can someone please guide me as to what am I doing wrong due to which 6 countries are being shown in visual instead of 5. Also, in the Top 5 Countries with highest medals measure, if I use 10 to find top 10 countries instead of top 5 and when I have medals in Legend then I get 12 results.
My model -
Thanks in advance!
Radhika
@Radhika2605 Can you share the PBIX? Going to be easier to see what is going on that way.
Thanks for your response. Sorry file is a mess but still attaching it here.
Here is the file -
https://drive.google.com/file/d/1WXp9F9w7cbMAr7IrtWh2Mxsj2ZlwaB70/view?usp=sharing
Thanks
Radhika
User | Count |
---|---|
98 | |
76 | |
75 | |
49 | |
27 |