Forum Discussion

TomSinAA's avatar
TomSinAA
Helper IV
2 years ago
Solved

Calculate column using if

I am trying to add a calculated column using this formula: If([Carrier]="B","V",if([Carrier]="B","V","E")).  However, Power BI indicates there is some type of error in the formula: 

 

  • The Formula is incorrect.. In Power Query it works differently, like below.

     

    =if([Column2]) = "Check"  then "Yes" else "No"

     

    Instead of adding a Calculated Column , add a Conditional column and add required clause.

     

     

1 Reply

  • The Formula is incorrect.. In Power Query it works differently, like below.

     

    =if([Column2]) = "Check"  then "Yes" else "No"

     

    Instead of adding a Calculated Column , add a Conditional column and add required clause.