March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Dynamic Top N slicer works with table, not with bar chart
Seeing I cannot expose the real data, I will present similar and simple example
Lets say I have a sales table with 1k sales across 5 product categories.
Now on the dashboard I present the top N per table visual (sales id, amount, product category) using the following guideline:
1. Create TopN table using DAX: 5, 10,15
2. Create Rankx to ranks sales by amount
3. Create DisplayTopN measure
4. In table visual filter pane set DisplayTopN = 1
TopN dynamic slicer works on the table.
What does not work:
Bar chart displaying only Top N as in the table visual but as total sales per category. For example: top 5 product divided across categories and if slicer set to 15 than 15 product divided and sumed per category.
Instead bar chart picks on all sales despite it having also DisplayTopN = 1.
Please your help.
Thank you.
Solved! Go to Solution.
Thank you for the help. In the end I have solved it using an aggration measure, ranking measure and a display measure.
Thank you for the help. In the end I have solved it using an aggration measure, ranking measure and a display measure.
I will fix something. But for now, can you share an example of a dashboard with a dynamic Top N slicer filtering a bar chart? It should be a common requirement, but surprisingly not easy to find one conclusive approach.
No one wants your actual data. Share some dummy data, explain the question and show the expected result. Share data in a format that can be pasted in an MS Excel file.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |