cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DuoHappy
Helper III
Helper III

how to make a slicer shows up only when the other slicer selected certain values

Hello!

 

I have a date slicer and also a slicer for internetshop. The date slicer can choose dates 20190101-today. I hope that only when user choose dates after 20220731, the internetshop slicer will show up. If the user choose some dates before 20220731, the internetshop slicer will not show up. Because we have internetshop information in the table only after 20220731. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@DuoHappy , You can create a measure like

 

if(maxx(allselected(Date), Date[Date]) <date(2022,07,31) ,1,0)

 

You use the above visual level filter of visual to remove values.

 

 

Also check:https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@DuoHappy , You can create a measure like

 

if(maxx(allselected(Date), Date[Date]) <date(2022,07,31) ,1,0)

 

You use the above visual level filter of visual to remove values.

 

 

Also check:https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

Thank you @amitchandak , this is very brilliant! 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors