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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.