Forum Discussion

cz1750's avatar
cz1750
Frequent Visitor
8 years ago
Solved

Nested IF and OR n DAX

Hi,   I have been trying to add calcualted columns in Power BI but I keep getting it wrong. Does anyone know how to create a calcualted colum that is based on IFs and Ors like the following?   If...
  • Zubair_Muhammad's avatar
    8 years ago

    cz1750

     

    try

     

    Column =
    IF (
        'Table'[value1] IN { "ABC", "DEF", "GHI" }
            && 'Table'[value2] = 200,
        "Type A",
        IF (
            'Table'[value1] = "GGG"
                && 'Table'[value2] IN { 100, 300 },
            "Type B",
            "Type C"
        )
    )