Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
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