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
PradeepSpowerbi
Regular Visitor

Hide a slicer based on selection of values in another slicer in power BI

Hi,

I have a requirement below .

 

report type - realized and unrealized .

 

if I select Realized as value in the slicer then another slicer with realized date should be visible but if I select unrealized the slicer should be hidden.

how to achieve it ? 

1 ACCEPTED SOLUTION
PradeepSpowerbi
Regular Visitor

Hello , 

thank you so much for the solution . It works . However I need to hide the slicer itself when unrealised is selected .

Thanks !

View solution in original post

10 REPLIES 10
PradeepSpowerbi
Regular Visitor

Hello , 

thank you so much for the solution . It works . However I need to hide the slicer itself when unrealised is selected .

Thanks !

bhanu_gautam
Super User
Super User

@PradeepSpowerbi For this create a measure 

 

SlicerVisibility =
IF (
SELECTEDVALUE('Table'[ReportType]) = "Realized",
1,
0
)

 

 

Add the second slicer (Realized Date) to your report.

Add a card visual to your report and place the second slicer inside this card visual.

Select the card visual and go to the "Format" pane.
Under the "General" section, find the "Visibility" option.
Set the "Visibility" to be controlled by the measure you created (SlicerVisibility).




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hello ,

I have created the measure accordingly but I don't see the visibility option under format . Can you pls help 

bhanu_gautam_0-1737551179216.png

Add that measure as filter and set property like this

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hello ,

Thank you . It works if I add that measure as a filter in the slicer . Seems like card visual is not required .

 

But if I add a date column as a slicer it is not working as expected . 

 

IMG_3974.jpeg

IMG_3975.jpeg

Hi ALL,
Firslty  bhanu_gautam thank you for your solution!

And @PradeepSpowerbi ,Based on your question, I tried to make some example data to replicate your problem, would you mind checking my pbix file and maybe it can give you ideas,.
If the data has deviation from you, you can also modify on my example data to reproduce your problem, in this way, it will be convenient for us to provide you with a more perfect solution, I hope it will be helpful to you!

vxingshenmsft_0-1737600006181.png

vxingshenmsft_1-1737600029178.png

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

Hello ,

Thank you for the solution . However it works only with tile slicer and not the actual slicer visual . I tried replacing the existing tile slicer with normal slicer which shows as calendar date option but it is still not working sir .

Thanks !

Hi @PradeepSpowerbi ,

I'm sorry that I didn't fully understand your needs at the beginning, if the standard slicer reference with the date column, there is indeed an unrecognizable problem, this may be due to the limitations of this state of the slicer, the following is the solution we have given, we use the bookmark to operate, we will be recorded in two different situations to realize the slicer We hope you find it helpful!

vxingshenmsft_0-1737617762774.png

vxingshenmsft_1-1737617783240.png

Here is my updated pbix file, hopefully my solution will help you with your problem!

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

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.