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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I want to be able to create a slicer in which it only shows the top 5 of a table whose values are summed, like the table on the right, which calculates the sum of the values on the left
Can someone suggest a way to do this?
So when I hook a slicer to the table on the right, i only want the slicer to show the top 5 records and ignore the rest.
Solved! Go to Solution.
Hi @Anonymous
You can use the top n dax function.
Please refer to the linked tutorial :
https://www.youtube.com/watch?v=vpGAf6Nkt1Q
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi,
Write these measures
C = sum(Data[Clicks])
Top 5 Query by clicks = calculate([c],topn(5,all(data[Query]),[c],desc),values(data[Query]))
Drag the Query column and the second measure to the table visual.
Hope this helps.
Thanks very much for your help on this!
Hi,
Write these measures
C = sum(Data[Clicks])
Top 5 Query by clicks = calculate([c],topn(5,all(data[Query]),[c],desc),values(data[Query]))
Drag the Query column and the second measure to the table visual.
Hope this helps.
Thanks very much for your help on this!
You are welcome.
Hi @Anonymous
You can use the top n dax function.
Please refer to the linked tutorial :
https://www.youtube.com/watch?v=vpGAf6Nkt1Q
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |