Forum Discussion
Drop down box to filter two dates
- 5 years ago
For filtering second drop down based on first you can create a measure as below and use it as visual level filter on visual.
end_date_filter = IF ( MAX ( _end_date[Date] ) >= SELECTEDVALUE ( _start_date[Date] ), 1, 0 )And sorting your dates make sure you have marked your date column type as date from ribbon.
Once you set it as date and click elipsis(three dot) of slicer you will get sort option like below. so you can use it for sorting according to your need.
Thanks Samarth
When I do the steps above my second drop down box only lets me select the date in the first drop down box. The second drop down box filters on the first drop down box. Also the date ordering is alphabetical not cronological. How do I change that?
Thanks
- Samarth_185 years agoCommunity Champion
For filtering second drop down based on first you can create a measure as below and use it as visual level filter on visual.
end_date_filter = IF ( MAX ( _end_date[Date] ) >= SELECTEDVALUE ( _start_date[Date] ), 1, 0 )And sorting your dates make sure you have marked your date column type as date from ribbon.
Once you set it as date and click elipsis(three dot) of slicer you will get sort option like below. so you can use it for sorting according to your need.