> 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/5.-conditional-formatting/rules-if-conditions/ranking.md).

# Ranking

How to use ranking to highlight the top or bottom performing categories.

One common use of conditional formatting is to highlight the top/bottom N ranked items in a report, which can help to quickly identify the most important or relevant items in the data.

Refer to [create rule](https://docs.inforiver.com/working-with-inforiver/5.-conditional-formatting/create-rule-writeback-matrix) to get started. Once the rule is created and you can see the **Conditional Formatting** side panel, follow the steps below.

Choose **Ranking** in the **Format by** dropdown. You can see the options shown in the image below. Using the **Style** section, you can format text based on color/style, apply a background color, or select icons.

**STEP 1:** Let's apply icon-based formatting to the Top 3 subcategories based on 2025 Actuals. Update the highlighted properties as shown below and click Apply.

<figure><img src="https://suprajavenky.gitbook.io/number-formatting/~gitbook/image?url=https%3A%2F%2F3497074632-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F85PzpPrHM0O8GyOm8rat%252Fuploads%252FOBY4AjnB0SOWh3aRsVa6%252Fimage.png%3Falt%3Dmedia%26token%3D45f50851-f4c8-4db6-a030-aab59a07bfa5&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=5956f5b0&#x26;sv=2" alt=""><figcaption><p>Customizing the rule</p></figcaption></figure>

**STEP 2:** The top 3 categories based on 2025 Actuals show an icon on the left, as shown below.

<figure><img src="https://suprajavenky.gitbook.io/number-formatting/~gitbook/image?url=https%3A%2F%2F3497074632-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F85PzpPrHM0O8GyOm8rat%252Fuploads%252FIygONM9tdf1brbRIgLol%252Fimage.png%3Falt%3Dmedia%26token%3D8a5ec52a-ed1a-4415-b9d8-ad689e217075&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=5e3250d8&#x26;sv=2" alt=""><figcaption><p>Conditional formatting applied based on Top N ranking</p></figcaption></figure>

**STEP 3:** You can also apply ranking based on percentages. In the image below, the bottom 50% of subcategories based on 2025 Actuals are highlighted in red.

<figure><img src="https://suprajavenky.gitbook.io/number-formatting/~gitbook/image?url=https%3A%2F%2F3497074632-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F85PzpPrHM0O8GyOm8rat%252Fuploads%252F1X9RVwYZkoRtTgHuFLef%252Fimage.png%3Falt%3Dmedia%26token%3D1006be92-e91f-4e27-9901-709097660e8e&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=f7a66fd5&#x26;sv=2" alt=""><figcaption><p>Conditional formatting for bottom 50% of categories</p></figcaption></figure>

**STEP 4:** You can apply conditional formatting for the top and bottom items using the **Both** option. In the image below, conditional formatting has been applied for the top and bottom categories.

<figure><img src="https://suprajavenky.gitbook.io/number-formatting/~gitbook/image?url=https%3A%2F%2F3497074632-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F85PzpPrHM0O8GyOm8rat%252Fuploads%252FdKBGGVPYsydK9h5JrYSh%252Fimage.png%3Falt%3Dmedia%26token%3D89109200-9da2-4e03-bd6a-b23e80e39827&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=8234378e&#x26;sv=2" alt=""><figcaption><p>Conditional formatting for top and bottom categories</p></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.inforiver.com/premium-table/working-with-premium-table/5.-conditional-formatting/rules-if-conditions/ranking.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
