Hi
I have a custom calendar and I am trying to indicate the public holidays that comes from a SharePoint list.
So I have the following to show me the current day that works perfect:
OnSelect : Set(_DateSelected,DateAdd(_FirstDayofWeek,ThisItem.Value,TimeUnit.Days))
OnVisible: If(DateAdd(_FirstDayofWeek,ThisItem.Value) =_DateSelected,true,false)
But If I want to change it to do a Filter to check if today is a Public Holiday I can't seem to get that working..
OnSelect: Set(_DateSelected,DateAdd(_FirstDayofWeek,ThisItem.Value,TimeUnit.Days))
OnVisible: If(Filter(MICT_TC_Public_Holidays, Start_Date <= DateAdd(_DateSelected,0,TimeUnit.Days)
&& End_Date >= DateAdd(_DateSelected,6,TimeUnit.Days)),true,false)
I tried this and various others but I cant seem to get this right.
Any advice ?
Thanks
C