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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.