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

Help with Full Primary Slicer and limited secondary slicer

Hi Guys! I am looking for some magic and hope one of you might have the spell! 

 

Please take a look at the pic below. 

mish_akopyan_0-1620056749683.png

 

Customer ID would be the primary slicer and Product type would be the secondary slicer. 

 

Does anyone know how I could build a slicer in Power BI where... if I click on customer 2, the product 2 would be hidden from slicer view? But if I were to click on customer 1 or 3 then I would be able to see products 1 and 2?

 

Thank you in advance!!

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @mish_akopyan 

 

You could create below measure, use it as a visual-level filter of the Product Type slicer and set value is 1.

Flag = 
IF (
    SELECTEDVALUE ( 'Table'[Customer ID] ) = "Customer 2",
    IF ( SELECTEDVALUE ( 'Table'[Product Type] ) = "Product 2", 0, 1 ),
    1
)

050501.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

6 REPLIES 6
v-jingzhang
Community Support
Community Support

Hi @mish_akopyan 

 

You could create below measure, use it as a visual-level filter of the Product Type slicer and set value is 1.

Flag = 
IF (
    SELECTEDVALUE ( 'Table'[Customer ID] ) = "Customer 2",
    IF ( SELECTEDVALUE ( 'Table'[Product Type] ) = "Product 2", 0, 1 ),
    1
)

050501.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

@v-jingzhang This might be it. I will give it a test run and let you know! much appreciate it!

 

Hi @mish_akopyan 

 

Does my reply solve your problem? If yes, kindly accept it as the solution. Otherwise, please provide more details about your problem so that we can work on it further. Thanks.

 

Regards,
Community Support Team _ Jing

marcl1
Helper II
Helper II

In your table you build a measure : BiDirectional = calculate(sum(sales)) and then in both slicers you filter in the filter panel by putting BiDirectional is not 0 and it should work 🙂

amitchandak
Super User
Super User

@mish_akopyan , I doubt you can hide a slicer with help from another slicer. You can do that with a bookmark. which seem less suitable for this purpose

https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive

@amitchandak Thank you for the response! So if you cannot hide the slicer. can you completely disable it? for only customer 2?

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.