Alteryx Designer Desktop Discussions

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

If specific month

jenner85
8 - Asteroid

Hi - 

I would like to convert a date field to fiscal period, which requires me to increase any date in Nov + Dec to a year later. I am not sure of what formula would do this "If month=11 or month=12  then year+1"

 

 

PeriodFiscal
11/1/201811/1/2019
12/1/201812/1/2019
1/1/20191/1/2019
2/1/20192/1/2019
3/1/20193/1/2019

 

thanks! 

3 REPLIES 3
jdunkerley79
ACE Emeritus
ACE Emeritus

Assuming that the dates are in Alteryx format (yyyy-mm-dd) then using a Formula tool to make the Fiscal column:

 

IF DateTimeMonth([Period])>10 THEN DATETIMEADD([Period],12,"months") ELSE [Period] ENDIF

 

should work.

atcodedog05
22 - Nova
22 - Nova

Hi @jenner85 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1605800015631.png

Workflow:

atcodedog05_1-1605800033857.png

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @jenner85 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any other issues 🙂

Labels