Alteryx Designer Desktop Discussions

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

Urgent help

Kiara16
Météore

Hi 

i have two columns tax year and period

i want to make a new column month by attached logic.

can someone tell me whats the error in this? I am getting timeout error. And getting null values in the output.

 

6 RÉPONSES 6
Dev73
Astéroïde

Hi @Kiara16 can you send the screenshot of the error?

Qiu
21 - Polaris
21 - Polaris

@Kiara16 
Most likely that your "tax year" and "period" are of Numeric Data type, and you should remove the quotes around 2022 and same for 9, 10, 11, 12

And your current result should be empty rather than null, right?

If [Tax Year] = 2022 and [Period]=9 then "March" elseif
[Tax Year] = 2022 and [Period]=10 then "April" elseif
[Tax Year] = 2022 and [Period]=11 then "May" elseif
[Tax Year] = 2022 and [Period]=12 then "June" else
" " endf

 

Kiara16
Météore

This is the error

Kiara16
Météore

For the one where criteria is met its showing  NULL

and also when i am removing quotes its coming in black

Try removing quotes and put months in the single quotes

Kiara16
Météore

Thank you all i got that sorted. Got my mistake

Étiquettes