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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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