Find out the start date/time

I was using Value source as Expression and Data Type as DateTime. to find out for a given shift what was the start time and it was giving me error_configuration

case(
{[.]currentShift} = 1, {[.]Shift1/startTime},
{[.]currentShift} = 2, {[.]Shift2/startTime},
{[.]currentShift} = 3, {[.]Shift3/startTime},
  now()
)

am i missing something ? Thank you for your help

incorrect syntax, it should be

case(
    {[.]currentShift},
    1, {[.]Shift1/startTime},
    2, {[.]Shift2/startTime},
    3, {[.]Shift3/startTime},
    now(1000)
)
1 Like

@ryan.white Thank you, the pesky detail didn't catch it.