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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rstoll
New Member

Top N Filter Not Working

I have a data set where I am calculating the variance of budgeted hours vs actual hours. I then want to filter for the top 10 over (bottom N) and underages (top N) by project number. When I filter for bottom N the table populates. When I filter for top N the table does not populate. Does someone have insight to how I can fix this? Attached is an example of my data setCapture.PNG

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @rstoll,

If you just filter a visual, you should use visual level filters. If you want to filter the entire page, you should use the report level filters. Please see:Add a filter to a Power BI report.

When you select TopN filters, you must add a field to the "By Value" level. From your screenshot, I didn't see it, so please check it as the highlighted in yellow backgroud.

1.PNG

If you want to get underages (top N), you can create a calculated column to descending order, then use the new column to filter.

Best Regards,
Angelia

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

 

i have problems with Top N filter. I have simple Weeknum column created to show me week in which record was created. I want to filter last 8 weeks but when i apply Top N filter i get incorect values.

exemple. i have weeks from 5 to 20 formated as numbers and after aplying filter for the last 8 weeks i get [5,6,7,15,17,18,20] instead of [13,14,15,16,17,18,19,].

 

Help me with this, please

tnx

 
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @rstoll,

If you just filter a visual, you should use visual level filters. If you want to filter the entire page, you should use the report level filters. Please see:Add a filter to a Power BI report.

When you select TopN filters, you must add a field to the "By Value" level. From your screenshot, I didn't see it, so please check it as the highlighted in yellow backgroud.

1.PNG

If you want to get underages (top N), you can create a calculated column to descending order, then use the new column to filter.

Best Regards,
Angelia

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.