Hi all,
I have a new form capture. The business wants a priority drop down field in the form to populate based on x2 date picker fields (proposed start and finish dates).
I have the following, which is working up until 0-1 days, but then the code fails from level 4 through 6. Any suggestions how to tweak?
With(
{StartDate:DataCardValue44.SelectedDate,
EndDate:DataCardValue45.SelectedDate},
If(IsBlank(DataCardValue44.SelectedDate) && IsBlank(DataCardValue45.SelectedDate),{Value:""},
DateDiff(StartDate,EndDate,TimeUnit.Days)=0 Or 1,{Value:"3 - High"},
DateDiff(StartDate,EndDate,TimeUnit.Days)<=7,{Value:"4 – Medium"},
DateDiff(StartDate,EndDate,TimeUnit.Days)<=31,{Value:"5 – Low"},
DateDiff(StartDate,EndDate,TimeUnit.Days)>=32,{Value:"6 – As agreed"})
)
It should be:
0-1 days = high
2-7 days = medium
8-31 days = low
>32 days = As agreed
Thanks,
DW