Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How can I fix this error in DAX code?

The below is a column created with DAX, which checks whether the value in the "Value" column is more than the "Min" column and less than the "Max" column, and will will display "In Limits" if this is...
  • Samarth_18's avatar
    Samarth_18
    4 years ago

    Anonymous , Try this one:-

    CL OOL =
    SWITCH (
        TRUE (),
        AND (
            IFERROR ( INT ( Panel[Value] ), "Not Running" ) >= Panel[Min],
            IFERROR ( INT ( Panel[Value] ), "Not Running" ) <= Panel[Max]
        )
            || Panel[Index] IN { 91, 92, 93, 94 }, "In Limits",
        IFERROR ( INT ( Panel[Value] ), "Not Running" ) = "Not Running", "Not Running",
        "OOL"
    )