I have to back by subtracting it
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try a Formula tool with: DateTimeAdd([your date], -366, "days")
Here's a list of all functions: Functions | Alteryx Help
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Sshasnk
One way of doing this.
If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.
Many thanks
Shanker V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Sshasnk
Step 1: Input
Step 2: DateTime tool, as 31/12/2022 is not alteryx date format. Wanted to convert to YYYY/MM/DD.
Step 3: Formula tool
DateTimeAdd([Date1A], -366, "days")
Step4: Select tool to format the output
Output:
If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.
Many thanks
Shanker V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
hi @Sshasnk
One more way to reach the exact output as you are expecting.
Output
Date | Date2 |
31/12/2022 | 31/12/2021 |
If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.
Many thanks
Shanker V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Step 1: Input
Step 2: DateTime tool
Step 3: Formula tool
Step 4; Select tool
Step 5: Text to columns tool
Step 6; Formula tool
[3]+"/"+[2]+"/"+[1]
Step 7: Select tool
If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.
Many thanks
Shanker V
