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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.