Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

if statement problems

if(left([Referral_Date], 2) = '01'), Referral_Date as Date2,

Can someone tell me what is wrong with this if statement? I keep getting this error... "Error in expression:If takes 2-3 parameters" Thanks

1 Solution

Accepted Solutions
IAMDV
Luminary Alumni
Luminary Alumni

Try this...

IF( Left([Referral_Date], 2) = '01', Referral_Date, '') AS Date2

I had highlighted else bit in red color.. so that you can replace whatever you wanted.

Cheers - DV

View solution in original post

1 Reply
IAMDV
Luminary Alumni
Luminary Alumni

Try this...

IF( Left([Referral_Date], 2) = '01', Referral_Date, '') AS Date2

I had highlighted else bit in red color.. so that you can replace whatever you wanted.

Cheers - DV