I have a calendar gallery and a gallery of events. There are date values to compare in both the calendar gallery and the event gallery. StartDate and EndDate are not text values, they are date values, so there is no need to wrap them in DateValue().
This works beautifully.
If(
LookUp(GalleryHolidaysOtherEvents.AllItems, StartDate = DateValue(LabelAprilDateOE.Text), true),
Style.DayBG,
White
)
Some events are multi-day. I have both a Start Date and an End date. However neither of these work. There are no errors and single day events where the day that matches the start date is filled appropriately, but the end date and the days in between are not filled and multi-day events do not have any days filled..
If(
LookUp(GalleryHolidaysOtherEvents.AllItems, (StartDate >= DateValue(LabelAprilDateOE.Text) && EndDate <= DateValue(LabelAprilDateOE.Text)), true),
Style.DayBG,
White
)
If(
LookUp(GalleryHolidaysOtherEvents.AllItems, StartDate >= DateValue(LabelAprilDateOE.Text) && EndDate <= DateValue(LabelAprilDateOE.Text), true),
Style.DayBG,
White
)
Any ideas?
Solved! Go to Solution.
Hi @JR-BejeweledOne :
Please try:
If(
LookUp(GalleryHolidaysOtherEvents.AllItems, (StartDate <= DateValue(LabelAprilDateOE.Text) && EndDate >= DateValue(LabelAprilDateOE.Text)), true),
Style.DayBG,
White
)
Best Regards,
Bof
Hi @JR-BejeweledOne :
Please try:
If(
LookUp(GalleryHolidaysOtherEvents.AllItems, (StartDate <= DateValue(LabelAprilDateOE.Text) && EndDate >= DateValue(LabelAprilDateOE.Text)), true),
Style.DayBG,
White
)
Best Regards,
Bof
I FINALLY figured that out yesterday. Just hadn't had time to come back and update this.
Thanks!
User | Count |
---|---|
257 | |
108 | |
93 | |
57 | |
40 |