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

Be 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

Reply
abrahamfariaz
Frequent Visitor

Assistance with TOPN in charts and value labels

Hello,

I need help, please, first with the TOP N filter because it's bringing more than 10 pieces of data in the chart, and I understand that it's because the last value is being repeated. Here's an example:

 

abrahamfariaz_1-1692484691029.png

 

I experience something similar when I ask it to bring me the TOP 3 for each month, and when it encounters duplicates, it brings more values.

 

abrahamfariaz_2-1692484795179.png

 

Lastly, concerning the labels, it brings all the labels from a chart when I only want it to bring those of the elements that are visible in that chart.

 

abrahamfariaz_3-1692484886711.png

 

¿Can somebody help me please?

You can download the file from here: https://drive.google.com/drive/folders/1-_ixIAAGYGMf5w5jBWg_EpgweK03LD2M?usp=sharing

Thanks!!

 

4 REPLIES 4
Ritaf1983
Super User
Super User

Hi @abrahamfariaz 
According to the top, you just need to decide what you want to do with your repetitions.
According to the filtering legend of the graph:
Could you please specify where the problem lies.
You have all the values on the graph.
There's just one of them that's really small compared to foreigners

Ritaf1983_0-1692512429797.png

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983!

Thanks for answering 🙂
Can you explain what you mean with "According to the top, you just need to decide what you want to do with your repetitions." can you please give me an example? I want to show only top 3 or top 10 just I established, but it didn't work

Hi @abrahamfariaz  Top N is top N values.
In case of duplicates in these values range it couldn't be the same N items.
This is just logic, not power bi limitation.
So you need to tell the tool what you want to do with the duplicates.
for example, according to students in class, the following table top 3 are Ron, Riki, Rita, Mark, and Dima because they have the highest 3 grades...

StudentGrade
Ron100
Rita95
Riki95
Mark95
Dima87
Tim20

Ritaf1983_0-1692588901446.png

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 , how are you?

Thank you for your response!

I've heard about this function, but I'm not sure how to apply it since I mostly do counts within the charts, so I don't have a dedicated table for this.

Could you please provide me with an example using one of my charts?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.