Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Creating a new field based on other field (quarter-year)

Srini96
8 - Asteroid

IF [Quarter closed] = 'Q4-2019' OR [Quarter closed] = 'Q1-2020' OR [Quarter closed] = 'Q2-2020'
THEN '1'
ELSE '0'
END

 

I'm trying to implement this and it's giving me a parse error. Can someone let me know how to go about this?

 

Thanks 

2 REPLIES 2
Thableaus
17 - Castor
17 - Castor

Hi @Srini96 

 

You need to finish your IF clause with ENDIF

 

IF [Quarter closed] = 'Q4-2019' OR [Quarter closed] = 'Q1-2020' OR [Quarter closed] = 'Q2-2020'
THEN '1'
ELSE '0'
ENDIF

 

Cheers,

Srini96
8 - Asteroid

Thank you! That worked

Labels
Top Solution Authors