Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
TomSinAA
Helper IV
Helper IV

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: 

TomSinAA_0-1720628635405.png

 

1 ACCEPTED SOLUTION
miTutorials
Super User
Super User

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.

 

miTutorials_0-1720630088538.png

 

View solution in original post

1 REPLY 1
miTutorials
Super User
Super User

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.

 

miTutorials_0-1720630088538.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.