Hi
I have a data set with 2 date columns (start and end). For each record I need to determine if TODAY is before the period, during the period or after the period. My formula works OK if I'm testing TODAY in either start date or end date but I don't know how to test them together.
My current formula is:
Status:= if(countrows(values(Table[start_date]))=1,
if(values(Table[start_date])<today, "obsolete","ok"),
0)
Do I create a 'nested if' and also test Table[end_date] for 1 value, then incorporate [start_date] and [end_date] into my 'if' statement?
Or is there a better way to do this? (I am intending to use SWITCH to improve the readability).
Thanks</today,>
I have a data set with 2 date columns (start and end). For each record I need to determine if TODAY is before the period, during the period or after the period. My formula works OK if I'm testing TODAY in either start date or end date but I don't know how to test them together.
My current formula is:
Status:= if(countrows(values(Table[start_date]))=1,
if(values(Table[start_date])<today, "obsolete","ok"),
0)
Do I create a 'nested if' and also test Table[end_date] for 1 value, then incorporate [start_date] and [end_date] into my 'if' statement?
Or is there a better way to do this? (I am intending to use SWITCH to improve the readability).
Thanks</today,>