> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/premium-table/working-with-premium-table/3.-basic-interactions/explore-and-filter-data/top-n.md).

# Top N + others

Top N answers questions such as *Customers* contributing to the most revenue, *Spend Categories* that consume the most of the budget, etc.&#x20;

In this section, let us see how the Top N feature works in Premium Table.&#x20;

Consider the example of displaying the Top 2 categories that generated maximum Revenue.

### 1. Configuring TopN

**STEP 1:** Select the Revenue column.

**STEP 2:** Select **Top n** from the Analyze section of the Home ribbon. The Top N dialog box appears. Fill in the details to filter the Top 10 categories. Click Apply.

{% hint style="info" %}
To show the top 2% of items, just change the selection ‘Value’ to ‘Percentage’.
{% endhint %}

<figure><img src="/files/sRZ9WLN3P6U5gWdHOHP5" alt=""><figcaption><p>Configuring TopN</p></figcaption></figure>

**STEP 3:** You can see the top 10 categories with the remaining categories grouped under 'Others'*.* It also indicates how many items are a part of the 'Others' row.

<figure><img src="/files/VQSJiHVUJzCZp4otE0Y2" alt=""><figcaption><p>Ranking applied</p></figcaption></figure>

**STEP 4:** Hover over the 'Others' row to see a preview of the items grouped under Others.  Click on the expand icon to view all the categories that have been classified as Others.&#x20;

<figure><img src="/files/jDBcgxiKuyZoSGwKgu8a" alt=""><figcaption><p>Viewing Others categories</p></figcaption></figure>

This will display all the categories under 'Others' in a separate window.

<figure><img src="/files/sfFldxrpLHVryh4XBGo2" alt=""><figcaption><p>Other categories</p></figcaption></figure>

**STEP 5:** Rename the Others group by clicking the <img src="/files/C9ED2JHDbWYHvDgcebLb" alt="" data-size="line">icon.&#x20;

<figure><img src="/files/3ZhOjpH6ca3Q51IO0FNC" alt=""><figcaption><p>Renaming the Others bucket</p></figcaption></figure>

### 2. Modifying the Others bucket

Inforiver offers multiple options to add or remove items from the 'Others' bucket.

1. To add or remove rows from the Others bucket, click on the row gripper and select the 'Add row to others' or 'Remove from others' option.&#x20;

<div><figure><img src="/files/l21BRBHfCAju4JUx2qJX" alt=""><figcaption><p>Add row to Others option</p></figcaption></figure> <figure><img src="/files/LtYNu1OO0tBWCMNNiEbP" alt=""><figcaption><p>Remove row from Others</p></figcaption></figure></div>

2. You can also highlight rows that are manually added or removed from the Others bucket. Enable the 'Highlight add/remove rows -TopN' from the Misc tab in display settings.

You can also apply additional customizations, such as setting a custom background and border color for rows that are removed or added to the Others bucket.

<figure><img src="/files/h8JiL277KemkpM47eyxg" alt=""><figcaption><p>Highlight rows</p></figcaption></figure>

In the next section, we'll be covering [sorting & reordering data](/premium-table/working-with-premium-table/3.-basic-interactions/sort-and-reorder-data.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.inforiver.com/premium-table/working-with-premium-table/3.-basic-interactions/explore-and-filter-data/top-n.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
