Forum Discussion

rstoll's avatar
rstoll
New Member
9 years ago
Solved

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 set

  • 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.



    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

     

2 Replies

  • v-huizhn-msft's avatar
    v-huizhn-msft
    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.



    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

     

  • Anonymous's avatar
    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