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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jdellamag
Regular Visitor

Custom Column IF Function not recognized

Hi,

 

Based on the table below, can anyone help me write a custom column formula that will act as an IF function?  Every time I try an IF statement, I am told that PowerBI does not recognize the IF term

  • IF  SEARCH_CLASSIFICATION__C = "Leadership Search" AND THIRD_BILL__C = TRUE,  THEN 1, ELSE 0
  • IF  SEARCH_CLASSIFICATION__C = ("Academic" OR "Pediatric" OR "C-Suite")  AND TS2__CLOSED_REASON__C = "Placed First Panel",  THEN 1, ELSE 0

jdellamag_1-1712337172670.png

 

 

 

Thank you in advance!

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@JD ,

if function is power query is case sensitive.  Your first one should work like this.

if ( [Search_Classification_C] = "Leadership Search" 
and [Third_Bill_C] = "True" )
then 1 
else 0

Think you should be able to follow the same syntax for your second bullet.

In future, please post data sample as text, not as a picture.  Will help make it easier to solve your issues.

Hope this helps.

Regards,

 

View solution in original post

1 REPLY 1
rsbin
Super User
Super User

@JD ,

if function is power query is case sensitive.  Your first one should work like this.

if ( [Search_Classification_C] = "Leadership Search" 
and [Third_Bill_C] = "True" )
then 1 
else 0

Think you should be able to follow the same syntax for your second bullet.

In future, please post data sample as text, not as a picture.  Will help make it easier to solve your issues.

Hope this helps.

Regards,

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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