We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Converting a String to Date and filter for the latest week

kiotsuresh
8 - Asteroid

I have a Date Column as below,

 

01MAR2023:00:00:00
01MAR2023:00:00:00
01MAR2023:00:00:00
01MAR2023:00:00:00
01MAR2023:00:00:00
01MAR2023:00:00:00

 

and need to convert this to a proper date column, after converting i need to filter the data for the latest week, My week start day is Wednesday and ends on Tuesday. If i run the workflow on coming wednesday 5th of april I need to filter the data from 29th march to 5th april ( latest week).

 

1 REPLY 1
ShankerV
17 - Castor

@kiotsuresh 

 

1. Please use datetime tool to change the date to correct format.

 

ShankerV_0-1680521249447.png

 

 

2. Use the filter tool to filter the dates for the previous week.

 

ShankerV_0-1680521944147.png

 

Input used: 

ShankerV_1-1680522005409.png

 

Note: The workflow will work dynamically when ever it is run on Wednesday it takes the previous week data's.

 

Many thanks

Shanker V

 

Labels
Top Solution Authors