Forum Discussion

Diogo_Ferreira's avatar
Diogo_Ferreira
New Member
3 years ago
Solved

Excel Formula IF into BI

Hi,   How to perform the below excel formula in Power BI in a new column? New Column =IF(A1="";"";IF(A1<>A2;"Yes;"No"))   Info: A1 = ID_task line 1 A2 = ID_task line 2   Tks.
  • Mahesh0016's avatar
    3 years ago

    column=IF(A1="","",IF(A1<>A2,"Yes,"No"))

    column=IF(A1=blank(),"",IF(A1<>A2,"Yes,"No"))

     

    >>If this post helps, please consider accept as solution to help other members find it more quickly.

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi  Diogo_Ferreira ,

    I created some data:

    Here are the steps you can follow:

    1. Create calculated column.

    Column =
    IF(
        'Table'[ID_task line 1]=BLANK(),
        BLANK(),
       IF(
            'Table'[ID_task line 1]<> 'Table'[ID_task line 2],"Yes","No"))

    2. Result:

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly