> 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/analytics+/working-with-analytics+/11.-ranking-data-topn/dynamic-ranking-with-numeric-parameters.md).

# Dynamic ranking with numeric parameters

The TopN feature can work with [Power BI numeric range parameters](https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-what-if), enabling you to easily perform what-if analysis. You just need to adjust the ranking slider to apply TopN.

You can set up dynamic ranking in 2 simple steps:

**STEP 1:** Assign the Power BI numeric range parameter to the Tooltip categories visual parameter.

**STEP 2:** In the TopN configuration window, select *Measure* from the **By** dropdown. Select the numeric range parameter name from the **Measure** dropdown. In this case, we've named the parameter 'RankingSlider'.

<figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FZi24oiEAX0haQm4BABmW%2Fimage.png?alt=media&amp;token=a1eef24d-89b8-476b-abb0-d1d386f3c0ec" alt=""><figcaption><p>Setting up dynamic ranking</p></figcaption></figure>

Notice how the axis categories change in response to the slider changes. Only the top-performing categories are displayed based on their rank.

<figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FrW8ExGlfm4tYQrfV9n9J%2F5.1.2.%20dynamic-axis-ranking-gif.gif?alt=media&amp;token=1860f84a-8298-40a0-b4c4-4aa44a073e54" alt=""><figcaption><p>Dynamic ranking in Analytics+ visuals</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/analytics+/working-with-analytics+/11.-ranking-data-topn/dynamic-ranking-with-numeric-parameters.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.
