Forum Discussion

RichardJ's avatar
RichardJ
Responsive Resident
6 years ago
Solved

SWITCH assuming a blank numeric column is zero - need help with syntax

Apologies for the rookie question but I cant figure out the correct syntax to generate values in a new column. I think the issue I am having is due to the switch function identifying a Blank numeric...
  • az38's avatar
    6 years ago

    RichardJ 

    maybe this

    Forecast Accuracy =
    SWITCH(
    TRUE(),
    ISBLANK(DrawingSet[Duration between Forecast and Approval]), "No Data",
    DrawingSet[Duration between Forecast and Approval] >0, "Delivered Early",
    DrawingSet[Duration between Forecast and Approval] =0, "Delivered On Time",
    DrawingSet[Duration between Forecast and Approval] <0, "Delivered Late",
    "Undefined"
    )