# 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="/files/ZIdcbsHOYJmBoiVGBbwv" 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="/files/dPh86Tlcm8xDeYwI2fVz" alt=""><figcaption><p>Dynamic ranking in Analytics+ visuals</p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.inforiver.com/analytics+/working-with-analytics+/11.-ranking-data-topn/dynamic-ranking-with-numeric-parameters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
