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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ashutoshgadgil
Frequent Visitor

Slicer

We have two slicers, one of which is field parameter containing values like age, race, gender, brand, sub brand. Second slicer is Sub Brand slicer having values for different sub brands. The ask is like, if user selects any Sub Brand value from second slicer, then from field parameter i.e First Slicer should not show Sub Brand as an option for selection. How we can achieve this. Expecting experienced folks to give guidance. Thank you in advance
1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @ashutoshgadgil 

 

Create a measure that check whether Sub Brand isfiltered and if the Parameter Order is equal to that of Sub Brand in the parameters table.

Hide Product =
IF (
    ISFILTERED ( financials[Product] )
        && SELECTEDVALUE ( Parameter[Parameter Order] ) = 3,
    0,
    1
)

danextian_0-1737983679855.png

Use this measure as a visual filter.

danextian_1-1737983739928.png

danextian_2-1737983754184.png

danextian_3-1737983784341.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.

View solution in original post

6 REPLIES 6
ashutoshgadgil
Frequent Visitor

Thanks for helping out, I will try your approach

ashutoshgadgil
Frequent Visitor

Hi @danextian, we implemented it in our file and it is working, however there is some change in requirement we need to make Sub brand slicer as single select with All as a selection which we have implemented. We implemented this by making Sub brand all column and appending existing values once again and input "All" in table front of it, now we want to implement it for this use case. Can you suggest any solution for this? Let me know if any clarification is required.

ashutoshgadgil
Frequent Visitor

Thank you for this wonderful explaination.

danextian
Super User
Super User

Hi @ashutoshgadgil 

 

Create a measure that check whether Sub Brand isfiltered and if the Parameter Order is equal to that of Sub Brand in the parameters table.

Hide Product =
IF (
    ISFILTERED ( financials[Product] )
        && SELECTEDVALUE ( Parameter[Parameter Order] ) = 3,
    0,
    1
)

danextian_0-1737983679855.png

Use this measure as a visual filter.

danextian_1-1737983739928.png

danextian_2-1737983754184.png

danextian_3-1737983784341.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.

Hi @danextian, we implemented it in our file and it is working, however there is some change in requirement we need to make Sub brand slicer as single select with All as a selection which we have implemented. We implemented this by making Sub brand all column and appending existing values once again and input "All" in table front of it, now we want to implement it for this use case. Can you suggest any solution for this? Let me know if any clarification is required.

So it is true that, with each day, out of this world requirements just appear out of thin air. lol.

 

You will need to create  a table that has all the products and the word all and connect that to the fact table.

danextian_0-1738160566178.png

Naturally, All doesn't exist in product column so you will need to create a measure to show the aggregate for all and all the products if all is selected from the slicer.

danextian_1-1738160652770.png

You will  the need to modify the field parameter visual filter measure.

danextian_2-1738160711562.png

Please see the attached sample pbix.





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.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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