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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
mwasekaar
New Member

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
New Member

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

 










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


Proud to be a Super User!









"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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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