7. Sorting and Ranking

The Sorting and Ranking options in the Format Pane allow you to organize and prioritize the data displayed in the visual for better clarity and focus.

Video 1: Sorting/Ranking

How to Use Sorting

Sorting is available for Hierarchy and Facet Filter, enabling you to define the order in which items appear in the visual.

1

Add a Facet or Hierarchy Filter in the super filter visual.

2

Enable Sorting and Ranking:

  • Navigate to the Format Pane.

  • Enable the Sorting and Ranking section.

  • Sorting is shown by default. To sort by measure, add numeric data or DAX measure to others field.

3

Under Sort by, choose either:

  • Alphabetical – sorts values alphabetically.

  • Measure – sorts values based on the measure added in the Others category.

4

Select Sort Order:

  • Under Sort as, choose Ascending or Descending to display values accordingly.

5

Absolute Sort:

  • Enable Absolute Sort to sort items based on their absolute values, ignoring whether they are positive or negative.

  • Absolute Sort is available only when the sorting criteria is a Measure or numeric datatype.

Image 1: Sorting option in User Interface of visual.
Image 2: Sorting format pane settings.

How to Use Ranking:

1

Enable Ranking:

  • Use the toggle button in the Format Pane to enable Ranking.

  • Note: Enabling Ranking will disable Sorting.

2

Set Top/Bottom N Type:

  • A dropdown is provided to choose between Top N and Bottom N rankings.

3

Specify N Value:

  • Use the input box with up and down arrows to define the number of items to rank.

  • Example: Top 10, Bottom 5.

4

Select Top N Measure:

  • A dropdown list displays the measures added to the Others field.

  • Choose a measure to rank items based on its value.

Example: Display the Top 10 Products by revenue in a Facet View to highlight the most profitable items.

Image 3: Ranking in User Interface of visual.
Image 4: Ranking format pane settings.