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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
anabianco09
Helper II
Helper II

Error when creating a CUSTOM COLUMN

Hi, I am trying to create the following column:

anabianco09_0-1700237159768.png

and it shows up an error message that the name IF wasn't recognized. How to Solve?

1 ACCEPTED SOLUTION
SumitChandra
New Member

Please refer the screenshot and modify your formula, it will works👍Kindly mark my post as solution, Appreciate your Kudos .

if [Condition1] = "Value1" and [Condition2] = "Value2" then "Result1"
else "Result2"

 

Solution.png

 

View solution in original post

3 REPLIES 3
SumitChandra
New Member

Please refer the screenshot and modify your formula, it will works👍Kindly mark my post as solution, Appreciate your Kudos .

if [Condition1] = "Value1" and [Condition2] = "Value2" then "Result1"
else "Result2"

 

Solution.png

 

It worked! Thanks @SumitChandra 

DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try a lower case if

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.