March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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 change to the dates of that holiday. Or have I been searching in vain because such solution doesn't exist? (I've been trying for several days now)
Solved! Go to Solution.
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
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
Hello @v-yangliu-msft
thanks a lot. The date list changes according to the other slicer, however, if I choose Select All in the date list, then all dates will get selected, even the ones that are not in the list (I know this because the value in the table will show the value of all dates) and if I choose another holiday after having chosen certain dates of the options of the previous holiday, then the dates I chose before will stay until I choose manually each date of the new dates showing..
@S3 , Date Range slicer, usually do not respond to other slicers
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |