SOLVED
If specific month
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
jenner85
8 - Asteroid
11-19-2020
07:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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"
Period | Fiscal |
11/1/2018 | 11/1/2019 |
12/1/2018 | 12/1/2019 |
1/1/2019 | 1/1/2019 |
2/1/2019 | 2/1/2019 |
3/1/2019 | 3/1/2019 |
thanks!
Solved! Go to Solution.
Labels:
- Labels:
- Date Time
- Preparation
- Tips and Tricks
3 REPLIES 3
ACE Emeritus
11-19-2020
07:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
22 - Nova
11-19-2020
07:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @jenner85
Here is a workflow for the task.
Output:
Workflow:
Hope this helps 🙂
If this post helps you please mark it as solution. And give a like if you dont mind 😀👍
22 - Nova
11-19-2020
07:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Happy to help 🙂 @jenner85
Cheers and Happy Analyzing 😀
Feel free to reach out if you face any other issues 🙂
