Forum Discussion
S3
3 years agoHelper III
Re:
Hello, I would like to ask if it's possible to change the date slicer based on choosing from the slicer containing Holiday names, so if one choose Easter Holidays, the toggle of the date would ch...
- Anonymous3 years ago
Hi S3 ,
I created some data:
HolidayTable:
Table:
You might consider using List Slicer.
Here are the steps you can follow:1. Create measure.
Flag = var _select=SELECTEDVALUE('HolidayTable'[Holidays]) var _selectstart=MAXX(FILTER(ALL(HolidayTable),'HolidayTable'[Holidays]=_select),[StartDate]) var _selectEnd=MAXX(FILTER(ALL(HolidayTable),'HolidayTable'[Holidays]=_select),[EndDate]) return IF( MAX('Table'[Date])>=_selectstart&& MAX('Table'[Date])<=_selectEnd,1,0)2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Anonymous
3 years agoNot applicable
Hi S3 ,
I created some data:
HolidayTable:
Table:
You might consider using List Slicer.
Here are the steps you can follow:
1. Create measure.
Flag =
var _select=SELECTEDVALUE('HolidayTable'[Holidays])
var _selectstart=MAXX(FILTER(ALL(HolidayTable),'HolidayTable'[Holidays]=_select),[StartDate])
var _selectEnd=MAXX(FILTER(ALL(HolidayTable),'HolidayTable'[Holidays]=_select),[EndDate])
return
IF(
MAX('Table'[Date])>=_selectstart&&
MAX('Table'[Date])<=_selectEnd,1,0)
2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
S3
3 years agoHelper III
Thank you Anonymous !