Forum Discussion
Dependent date slicers
- 5 years ago
Hi Raymo3u99
Per my understanding, to realize your expectation, the selected date value on tab A should be passed to tab B, and these two date slicers on the two tabs have different date ranges selected. I think up with a solution to realize this with two calendar tables as well as sync slicer function but I'm not sure whether this is applicable in your data model. You may take a try. Steps are as below.
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.
You can download the PBIX, hope this helps.
Best Regards,
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.
Hi Raymo3u99
Per my understanding, to realize your expectation, the selected date value on tab A should be passed to tab B, and these two date slicers on the two tabs have different date ranges selected. I think up with a solution to realize this with two calendar tables as well as sync slicer function but I'm not sure whether this is applicable in your data model. You may take a try. Steps are as below.
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.
You can download the PBIX, hope this helps.
Best Regards,
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.
v-jingzhang The pbix you attached here is no more there. I have same issue, and need to implement a similar thing. Do you still have the pbix handy with you ?
- v-jingzhang5 years ago
Community Support
skashifz Sorry I didn't store it in the local storage so I don't have a copy of it now. You can follow the steps in my first reply to try it. If it doesn't work, you can leave your question here and I will look into it. Or you can also create a new topic then more people will discuss on it. There may be some better ideas and solutions.