Use Ranking Filter

Overview

In your visualizations, you can filter your data by a number of top or bottom metric values. For example, you can display the top 5 restaurants based on their revenue.

Each visualization with at least one item in the Metrics section and one attribute or date in other than the Metrics section (except Headlines) can have one top/bottom value filter. The filter is applied after the date, metric value, and attribute filters.

You can use any local fact or metric (that is, any fact or metric already in your visualization) to filter by its top/bottom values.

The top/bottom filter is also applied when you add the visualization to a dashboard.
However, you can edit this filter only in Analytical Designer.

Configure a top/bottom filter

  1. In the visualization you want to filter, click the filter bar dropdown icon.

  2. Select Top/bottom values.

    Filter bar dropdown open with the Top or bottom values selected.
  3. Click Apply.
    Analytical Designer adds the filter to the filter bar.

  4. Click the filter in the filter bar.

    Top and bottom values filter settings with menu category as the filtered attribute and daily total sales as the metric. The top value is set to 3.
  5. Select if you want to see top or bottom values and specify a number.
    You can select the number from the dropdown menu or write your own.

  6. In Out of, select the attribute whose values will be filtered.
    You can select one attribute or All attributes (if your visualization includes multiple attributes).

  7. In Based on, select a fact or metric to use for filtering.

  8. Click Apply.

Analytical Designer now filters your data according to your configuration.

  • To use the ranking filter and also filter fact/metrics by values, you must select All in the Out of section. If you want to select one attribute in the Out of section, disable the filtering by value.
  • The ranking filter is not compatible with the Rollup (total) aggregate function in tables. If you use this aggregate function and enable the top/bottom filter, the rollup (total) is removed.
  • If you display a fact or metric in per cent (the Show in % option is selected), the ranking filter disables this option.

Examples

Your visualization contains Daily Total Sales of your restaurant viewed by Year and Menu Category.

Column chart showing daily total sales by menu category and year with all categories displayed for each year.

You want to see which are the top three menu categories that sold best each year - select Top 3 out of Menu Category based on Daily Total Sales.

Side-by-side display of filter dialog and column chart. Left side shows the top 3 menu categories selected by daily total sales. Right side shows a column chart displaying the filtered result with three categories per year.

You want to see which are the top five menu categories that have sold best - select Top 5 out of All based on Daily Total Sales.

Side-by-side display of filter dialog and column chart. Left side shows top 5 items based on daily total sales across all attributes. Right side shows the resulting chart with five bars representing highest values across years.

Why does top 5 display 6 items and only 4 values?

If multiple items have the same value, the ranking filter in Analytical Designer shows all items with this value. The visualization may then display more items than the number set.

Example:

You want to see the top 5 menu categories that sold best.

The table displays 6 items with 4 different values (the last example above, now shown in a table).

Table showing top five menu categories by daily total sales. Highlighted cells indicate equal values causing the total number of displayed items to exceed five.

Explanation:

  • The highest sales value is $44,797 (red in the image) → 1
  • Then two items with $44,693 (blue) → 2 and 3
    Since the two items have the same value, Analytical Designer displays both.
  • Then $18,101 (green) → 4
  • Then two items with $18,061 (yellow) → 5 and 6
    Since the two items have the same value, Analytical Designer displays both.