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
AlwaysAGooner
Helper I
Helper I

Lock/Unlock start date on Date Slicer based on Region Selection

Hi,

 

I have a need to lock (disabled) the start date on a date slicer for one region while the other region wants the start date to be enabled.
For e.g., If Europe is selected on the Region Slicer, lock the start date on the date slicer, if Asia is selected then enable the start date selection on the date slicer.

I am not sure if this can be achieved but any leads/suggestions will be greatly appreciated.


Thanks.

3 REPLIES 3
rohit1991
Super User
Super User

Power BI:

  1. Create a mapping table for regions to toggle (e.g., lock = "Europe").
  2. Use a measure to control slicer visibility: LockStartDate = IF(SELECaEDVALUE(Region) = "Europe", 1, 0)
  3. Overlay two slicers (one locked, one interactive) and use the measure to toggle visibility.

Thanks. How do we contorl the visibility using the measure? Is there a visual level property for this?

AnkitKukreja
Super User
Super User

Hi! @AlwaysAGooner 

 

You can try using the bookmarks,

  • Locked Slicer: Configure this slicer to have a fixed start date or show a single date range that cannot be changed. (For example, by limiting the filter range in the slicer settings.)
  • Enabled Slicer: Configure this slicer to allow full user interaction (start and end dates can be freely adjusted).

 

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

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!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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