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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors
Top Kudoed Authors