Hello,
I am trying to add an If statement on the templatefill of my gallery. I have a field stored in a SP List which is a calculate field, and it displays a date: calculated to show the day before the date entered in another field.
I want to the line to highlight red if this calculated field date is equal to todays date.
On the label in the gallery, I have the following formula to format the date:
Text(DateValue(ThisItem.Student_Add_Date, "en"),"[$-en-GB]dd/mm/yyyy")
On the TemplateFill on the Gallery, I have:
If(Value(ThisItem.Student_Add_Date) = Today(), RGBA(255, 0, 0, 1), RGBA(0, 0, 0, 0))
Can anyone help?
Solved! Go to Solution.
I think i was overthinking this and have come up with a different solution:
If(DateAdd(ThisItem.EV_Date, -1) = Today(), RGBA(255, 0, 0, 1), RGBA(0, 0, 0, 0))
this seems to work fine
I think i was overthinking this and have come up with a different solution:
If(DateAdd(ThisItem.EV_Date, -1) = Today(), RGBA(255, 0, 0, 1), RGBA(0, 0, 0, 0))
this seems to work fine
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
184 | |
47 | |
46 | |
34 | |
33 |
User | Count |
---|---|
256 | |
86 | |
79 | |
68 | |
67 |