# 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&#x26;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&#x26;token=1860f84a-8298-40a0-b4c4-4aa44a073e54" alt=""><figcaption><p>Dynamic ranking in Analytics+ visuals</p></figcaption></figure>
