Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Dynamic end date slicer based on start date slicer selection

Hi, I'm trying to have two slicers as start_date and end_date. I want to custom end_date list based on start_date slicer selection.  I tried to create a end_date table by passing selectedvalue from...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

    Please review the solution in the following thread and check whether that is what you want.

    Dependent date slicers

    1. Create two calendar tables: Calendar A and Calendar B.

    2. On page 1, create a date slicer with 'Calendar A'[Start of Month] as field. Copy the date slicer to page 2 and sync these two slicers as below. Hide the slicer on page 2.

    3. Create measures:

    Selected Date = SELECTEDVALUE('Calendar A'[Start Of Month])
    Measure = IF(MAX('Calendar B'[Start Of Month])<=[Selected Date],1,0)

    4. On page 2, create a new date slicer with 'Calendar B'[Start of Month] as field. Add Measure into this slicer's visual filter and set value is 1. 

    5. The values may not be selected automatically, so I show "Select all" option in the slicer for user to select all the dates before the date selected on page 1. 


    Best Regards