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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
krzysztofpiotro
Frequent Visitor

Top N does not work correctly

Hi,

I am facing some problem with Top N filter. I am trying to compose a visual showing top 7 employee by sum of CzasGodziny. But the result returns much more rows... See pics below. There are no ties between 7th and 8th row, so I have no idea what's happening. If I put top 10 or top 15 filter, the result still does not return correct number of rows.

 

Could anyone tell me what would be the reason? It behaves similarly also for other coulmns, nevermind if they are of integer or real data type.

 

Thanks in advance for any help!

 

pbi1.pngpbi2.png

 

1 ACCEPTED SOLUTION

Hi @krzysztofpiotro,

 

The result is expected. It has duplicates. Maybe the result on the right is what you want. Any other requests, please feel free to input here.

Top_N_does_not_work_correctly

 

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @krzysztofpiotro,

 

Can you share the file? Please mask or delete the sensitive parts first.

1. It seems the Visual Level filter. Did you apply it in the left table?

2. Please also upgrade to the latest version of Desktop.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

Thanks for reply. I have sent you the file - see private message.

 

Regarding questions:

1. Yes, this is Visual Level Filter applied to the depicted table and it does not work correctly.

2. Unfortunately, upgrade to the newest version did not help.

Hi @krzysztofpiotro,

 

The result is expected. It has duplicates. Maybe the result on the right is what you want. Any other requests, please feel free to input here.

Top_N_does_not_work_correctly

 

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-jiascu-msft 

 

I also have same problem I want top 100 apps based on number of users for each app but as the number of users are same for many apps so it is giving 400 apps instead of 100 so how can i get 100 apps whether the apps have duplicate or not?

 

11.PNG

Yes! This is the result I wanted to reach. Thank you very much 🙂

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.