I have a power app linked to a sharepoint list. I have a calculated date field in the share point list. What I am trying to do is if today's date is within 2 weeks (1 week prior and 1 week after) of the calculated date I want the field to be in edit mode. If today is not within that 2 week window I want the field to be view only.
this is what I have come up with. The calculated date in this formula is '4 Mth Date'. This is not working.
If(DateDiff(DateAdd(Now(),7-Weekday(Now(),11)),DateValue('4 Mth Date'))>0,DisplayMode.Edit,DisplayMode.View)
Any ideas? I am trying to put this on the card's display mode.

Report
All responses (
Answers (