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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
mwasekaar
Regular Visitor

Top 4 from Filed paramter

I had created field parameter in which there is a dropdown for each field in each field there are multiple categories say Product color had 7 similarly product color had multiple I need to restrict these  on visual only top 4 so that when I select any drop down I should  get only top 4 in the stack bar chart .and one should be selected as default 

mwasekaar_0-1737880878388.pngmwasekaar_1-1737880903369.png

 

 

 
 
1 ACCEPTED SOLUTION
Fowmy
Super User
Super User


@mwasekaar 

Could you explain this part "one should be selected as default "

I have attached a file with the solution. please check if this works for you.

Fowmy_0-1737889986675.png

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
mwasekaar
Regular Visitor

Many thanks for the quick response 

danextian
Super User
Super User

Hi @mwasekaar 

 

You will need to create a rank measure that switches between different columns depending on the field parameter order selected and then use this measure as a visual filter. The default rank column in the screenshot below is Country as it's order is 0 and the alternative result in SELECTEDVALUE is 0.

danextian_0-1737890578657.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thank you for the quick response @Syndicate_Admin

Fowmy
Super User
Super User


@mwasekaar 

Could you explain this part "one should be selected as default "

I have attached a file with the solution. please check if this works for you.

Fowmy_0-1737889986675.png

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors