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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
Community Champion
Community Champion

@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
Community Champion
Community Champion

@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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.