2025 Week 34 | Build a Dynamic TopN report

Introduction

When building reports, one of the most common requests I hear from users is: “Can I see the top three, top five, or top ten items without having to look at multiple visuals?”

The good news: yes, you can! And it’s cleaner than ever with numeric range parameters in Power BI.

In this week’s challenge we’ll build a report that lets your users interactively choose the number of top-performing products they want to see, without duplicating visuals or cluttering your report.

We’ll start with a simple dataset containing three columns: Product, Category, and Sales.

The goal is to build a bar chart that shows top-performing products, with all products listed on the y-axis and their total sales on the x-axis.

Instead of locking the chart to a fixed number of products, we’ll add a slicer so users can choose whether they want to see the top 3, top 5, or top 10. With one click, the slicer automatically highlights the Top N selection in blue.

To make the report even clearer, we’ll add a dynamic subtitle beneath the title. This text updates based on the slicer selection. Finally, we’ll enrich the chart with tooltips that appear when hovering over a product. These will display: Product rank, Product category, and Total purchases (how many units were sold).

This combination of dynamic highlighting, subtitles, and tooltips creates a clean, interactive report that communicates not just what the top products are, but also why they matter.

Requirements

To build this report, you’ll need the following pieces in place:

  1. Dataset

    • A table with at least three columns:

      • Product

      • Category

      • Sales

  2. Base Visual

    • A bar chart with:

      • Products on the Y-axis

      • Total Sales on the X-axis

  3. A Way to Pick Top N

    • Add a slicer (powered by a numeric range parameter) so users can decide if they want to see the Top 3, Top 5, or Top 10.

    • The chart should automatically highlight the selected Top N in a distinct color (e.g., blue).

  4. A Dynamic Subtitle

    • A measure or text element that updates based on the slicer selection to show:

      • The current Top N value (e.g., Top 3 Products)

      • The combined sales of those products

      • The percentage of total sales they represent

  5. Helpful Tooltips

    • Tooltips that provide additional context when hovering over a bar:

      • Product rank

      • Product category

      • Total purchases (units sold)

Dataset

Share

After you finish your workout, share on social media using the hashtags #WOW2025 and #PowerBI. Tag me (Juliana) on LinkedIn, along with organizers MeaganKerry, and Shannon.

On Bluesky, tag @mmarie.bsky.social@shan-gsd.bsky.social, and @merrykerry.bsky.social.

Solution

Watch

Scroll to Top