Hi all
I'm hoping anyone can assist me with this mess :). I trying to create a logic to an SP list using power apps, but I am using several If statements and one if it works perfect, but when I try to add the rest in different ways, I can't; I keep giving myself an error. below is what I wrote that works
If(ThisItem.'Purpose of Request'.Value="New Initiative/Program" && ThisItem.'Expected Timeframe'.Value ="Within the next two weeks (urgent)" && ThisItem.'Approval Status'.Value="Approved",DateAdd(ThisItem.Date, -1 * (Weekday(ThisItem.Date, Monday) - 15), Days))
below is the rest, with the added statements.
If(ThisItem.'Purpose of Request'.Value="New Initiative/Program" && ThisItem.'Expected Timeframe'.Value ="Within the next two weeks (urgent)" && ThisItem.'Approval Status'.Value="Approved",DateAdd(ThisItem.Date, -1 * (Weekday(ThisItem.Date, Monday) - 15), Days)), If(ThisItem.'Purpose of Request'.Value="New Initiative/Program" && ThisItem.'Expected Timeframe'.Value = "Four to six weeks from today"&& ThisItem.'Approval Status'.Value="Approved",DateAdd(ThisItem.Date, -1 * (Weekday(ThisItem.Date, Monday) - 29), Days)), If(ThisItem.'Purpose of Request'.Value="New Initiative/Program" && ThisItem.'Expected Timeframe'.Value = "Four to six weeks from today"&& ThisItem.'Approval Status'.Value="Approved",DateAdd(ThisItem.Date, -1 * (Weekday(ThisItem.Date, Monday) -50 ), Days)), If(ThisItem.'Purpose of Request'.Value="Add an item onto the Collection Operations Governance Calendar ONLY" && ThisItem.'Expected Timeframe'.Value ="Within the next two weeks (urgent)" && ThisItem.'Approval Status'.Value="Approved",DateAdd(ThisItem.Date, -1 * (Weekday(ThisItem.Date, Monday) - 15), Days)), If(ThisItem.'Purpose of Request'.Value="Add an item onto the Collection Operations Governance Calendar ONLY" && ThisItem.'Expected Timeframe'.Value = "Four to six weeks from today"&& ThisItem.'Approval Status'.Value="Approved",DateAdd(ThisItem.Date, -1 * (Weekday(ThisItem.Date, Monday) - 29), Days)), If(ThisItem.'Purpose of Request'.Value="Add an item onto the Collection Operations Governance Calendar ONLY" && ThisItem.'Expected Timeframe'.Value = "Four to six weeks from today "&& ThisItem.'Approval Status'.Value="Approved",DateAdd(ThisItem.Date, -1 * (Weekday(ThisItem.Date, Monday) -50 ), Days))