Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
R_B
New Member

Dropdown or Slicer for Top 5 and Top 10 % Supplier by Sum of Orders

Good Morning,

 

I'm really new in using Power Bi and that's why I can't figure out how to create a slicer with the following 3 options:

 

My table named "Top N options":

 

top_n_options.png

 

 

 

 

 

 

The Problem are the 2 different kinds of options. I found some interessting solutions:

 

https://blogs.msdn.microsoft.com/danrub/2016/03/19/dynamic-topn-ranking-in-power-bi/

 

https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...

 

But thats only for ranked Top N. My problem are the Top 10 in percentage. In my case 1.1. How can I calculate and round off the number of suppliers and use it for my options?

 

Here are my data table "supplier":

 

supplier.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Is there any chance to create a dropdown field like in link 1 with a final table like in link 2?

 

Thank you.

 
3 REPLIES 3
zlokesh
Resolver I
Resolver I

Hi @R_B,

     Please follow below steps

1. Take Table and Go to fields (Instead of Slicer)

2. Visual Level Filter.

3.Drag "Sum" column

4.Select Filter type Top N

5.Show Items Top 10 (pass your value here)

6.By Value (id,name, filed you want by value)

7. Apply filter.

 

Hello @zlokesh,

 

this is probably good for static Top N.

 

But I want to decide by a dropdown list between Top 5 and Top 10 (this one in percentage). Here are the results I would expect:

 

Top 5

 

result_top_5.png

 

 

 

 

 

 

 

Top 10%

 

result_top_10%.png

 

 

 

 

 

 

Dear @R_B,

    Please find below MSDN link, will help you to sort out.

 

https://blogs.msdn.microsoft.com/danrub/2016/03/19/dynamic-topn-ranking-in-power-bi/

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors