Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi all!
I am facing an issue to make my TOP5 table dynamic with my slicers.
I want to display the TOP5 customers based on sales, but I need that table to be dynamic depending on the selection of the slicers.
| Customer | Sales |
| A | 800 |
| B | 500 |
| C | 400 |
| D | 100 |
| E | 50 |
For now, my table is based on a "TOPN filter" in the filter pane. But I noticed that if I select something in the slicers at the top of the page (department, country, region etc) the TOPN will not be dynamic.
For example, if I select on my slicer country= Singapore, I would like to see the TOP5 customers in Singapore.
If I select country= Singapore and department= Asset Management, I would like to see the TOP5 customers in Singapore inside the department Asset Management.
Any recommendation please?
Many thanks!
Laura
@thelauraams , use topn with allselected
example
Top3 = calculate(sum(Table1[sales]),TOPN(3,allselected(table[Customer]),sum(Table1[sales]),DESC), values(table[Customer]))
Also, Refer
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 15 | |
| 10 | |
| 8 | |
| 6 | |
| 5 |