Forum Discussion

chrisgehm's avatar
chrisgehm
Helper III
9 years ago
Solved

TopN

Hi everyone, I'm trying to rank some values, but I can't find the TopN option in the visual level filter. Any idea because why?

 

 

Kind regards

  • 1) Select the Column you want to display the Top Budgets of

     

    2) Then change the Filter Type of that Column to Top N

     

    3) Fill in Top / Bottom number field

     

    4) And lastly drag to the By Value filed your Budget Measure

     

    Good Luck! :smileyhappy:

     

    EDIT: Alternatively you can do this...

     

    1) Create a Rank Measure using your Budget Measure to Rank the Column values (same column as above)

     

    2) Add the Rank Measure in your table

     

    3) Then in the Visual Level Filters - select the Rank - Show items when value: - select is less than (or appropriate) and fill in number

     

    This has the advantage of also showing you the Rank Number

     

    Both methods will produce the same result though! :smileyhappy:

  • Hi chrisgehm,

     

    You can specify that you’d like to filter by the Top or Bottom number of categories, sorted by a specific measure. You will find the Ton N filter in the filter pane as a Filter Type option for the category field you want to filter down.

     

    So this filter is for catefory column, not for measure column. In your scenario, please check if you can see the TOP N filter in your catefory column.

     

    Regards,

    Charlie Liao

10 Replies

  • Sean's avatar
    Sean
    Community Champion

    1) Select the Column you want to display the Top Budgets of

     

    2) Then change the Filter Type of that Column to Top N

     

    3) Fill in Top / Bottom number field

     

    4) And lastly drag to the By Value filed your Budget Measure

     

    Good Luck! :smileyhappy:

     

    EDIT: Alternatively you can do this...

     

    1) Create a Rank Measure using your Budget Measure to Rank the Column values (same column as above)

     

    2) Add the Rank Measure in your table

     

    3) Then in the Visual Level Filters - select the Rank - Show items when value: - select is less than (or appropriate) and fill in number

     

    This has the advantage of also showing you the Rank Number

     

    Both methods will produce the same result though! :smileyhappy:

    • chrisgehm's avatar
      chrisgehm
      Helper III

      Sean Hi thanks for the answer, unfotunately, still can't see the option of TopN in the filter section. Any idea because why?

      • v-caliao-msft's avatar
        v-caliao-msft
        Microsoft Employee

        Hi chrisgehm,

         

        You can specify that you’d like to filter by the Top or Bottom number of categories, sorted by a specific measure. You will find the Ton N filter in the filter pane as a Filter Type option for the category field you want to filter down.

         

        So this filter is for catefory column, not for measure column. In your scenario, please check if you can see the TOP N filter in your catefory column.

         

        Regards,

        Charlie Liao

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,

     

    How did you resolve the issue at the end?

     

    I am having the same problem. It doesn't matter if it's a numerical or text value, niether of them picks up the Top N filter.

     

    I wonder if this is a bug of the latest update?

     

    Thanks.

     

    Kind regards,

     

    Natalia

  • Anonymous's avatar
    Anonymous
    Not applicable

    I haven't used Top N in a while but I can see it looks different in the recent upgrade to the filter tab. The functionality should be the same and if not that's a bug.

     

    For some reason I don't recall it being necessary to add the item the second time to the filter perhaps that was already necessary as indicated in the screenshot is standard practice  The difference is the filter is now on the filter Pane rather than in the Visualization pane, assuming you've activated the new pane.

     

    I don't have any products done in earlier releases to see if there's an issue between older products in the new release.

     

    But as you can see in this screenshot the Top N function is working for me.