I want to fill the color of rectangle based on the below condition:
The field on which the condition to be based is SearchResultGallery_1.Selected.DelDate
If the expiry is going to come within 15 days then yellow color
Please guide

I want to fill the color of rectangle based on the below condition:
The field on which the condition to be based is SearchResultGallery_1.Selected.DelDate
If the expiry is going to come within 15 days then yellow color
Please guide
Hi @MIA27 ,
You were missing a comma and can also get rid of some brackets
With(
{
wSvcRemind1:
DateAdd(
SearchResultGallery_1.Selected.DelDate,
15,
TimeUnit.Days
)
},
If(
wSvcRemind1 <= Today(),
Color.Yellow,
SearchResultGallery_1.Selected.DelDate <= Today(),
Color.Red,
Color.Blue
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps