Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
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
Master II
Master II

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
Master II
Master II

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