ArshadKhwaja
8 years agoQrew Commander
Conditional Dates Derived
I have a project and tasks table is related. I am creating a number of tasks from projects as part of the master detail arrangement. Works well. In order for me to use a start date on the task, I am using a formula which basically looks at a task and then applies a lag time. Again works well. An example is below.
If(
Contains ([Task], "Ref Cases: Request quotation"), WeekdayAdd([In Store Start Date],14),
Contains ([Task],"Ref Cases: Issue PO Upload"), WeekdayAdd([In Store Start Date],12),
Contains ([Task],"Ref Cases: Manufacture begins"), WeekdayAdd([In Store Start Date],9)
)
There are about ten such tasks. However these tasks sometimes may need to have a different base date (eg completion date) in case of certain projects. I can add a 'dev type' condition which would make the formula very long. I was hoping if I could test the dev type right in the beginning and then apply the right formula. Are VAR of some use?
So my condition will be a if it is a new development,
Contains ([Task], "Ref Cases: Request quotation"), WeekdayAdd([Completion Date],14),
In all other case:
Contains ([Task], "Ref Cases: Request quotation"), WeekdayAdd([In Store Start Date],14),
Will appreciate some help.
If(
Contains ([Task], "Ref Cases: Request quotation"), WeekdayAdd([In Store Start Date],14),
Contains ([Task],"Ref Cases: Issue PO Upload"), WeekdayAdd([In Store Start Date],12),
Contains ([Task],"Ref Cases: Manufacture begins"), WeekdayAdd([In Store Start Date],9)
)
There are about ten such tasks. However these tasks sometimes may need to have a different base date (eg completion date) in case of certain projects. I can add a 'dev type' condition which would make the formula very long. I was hoping if I could test the dev type right in the beginning and then apply the right formula. Are VAR of some use?
So my condition will be a if it is a new development,
Contains ([Task], "Ref Cases: Request quotation"), WeekdayAdd([Completion Date],14),
In all other case:
Contains ([Task], "Ref Cases: Request quotation"), WeekdayAdd([In Store Start Date],14),
Will appreciate some help.