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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi eveyone,
I was wondering if there was any chance to have a way more dynamic Top N slicer.
As you can see, if I select 2, I do see top 2 Sales but i alse all the lines of COGS
Is it possible to have the same number of lines for COGS (in this case) as there are for Total Sales? For example, if I select 3, only 3 rows should appear, and so on.
Here DAX for TotalSales
Solved! Go to Solution.
Hi @donnie17
Yes, you can achieve it.
As a first step create a parameters table for selecting Top n
And the 2 measures according to yours, like in my case:
1.
The pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @donnie17 You already done all the work. You just need to do a small thing. Select the matrix visual, go to filter pane, Select Total Sales and set to "Is not blank", Click apply. You are done.
I have tried to implement your scenario. See images:
No filter applied:
After applied filter:
Hope this helps!!
If this solved your problem, please accept it as a solution!!
Best Regards,
Shahariar Hafiz
Hi @donnie17 You already done all the work. You just need to do a small thing. Select the matrix visual, go to filter pane, Select Total Sales and set to "Is not blank", Click apply. You are done.
I have tried to implement your scenario. See images:
No filter applied:
After applied filter:
Hope this helps!!
If this solved your problem, please accept it as a solution!!
Best Regards,
Shahariar Hafiz
Hi @donnie17
Yes, you can achieve it.
As a first step create a parameters table for selecting Top n
And the 2 measures according to yours, like in my case:
1.
The pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
@donnie17Thank you for sharing your query. Could you please share the pbix file with some sample data ?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.