Forum Discussion

ExceLover's avatar
ExceLover
Frequent Visitor
2 years ago
Solved

Convert Excel formula to DAX

Hello,   I am trying to create a new column in Power BI named PEN where each row in this column is a calculation based on values in three other columns.   The formula in Excel is as below, but I ...
  • FreemanZ's avatar
    2 years ago

    hi ExceLover ,

     

    try like:

    column = 

    SWITCH(
        TRUE(),
        ISBLANK([C2Column]), 0,
        ISBLANK([A2Column]), 0,
        1
    )