Alteryx Designer Desktop Discussions

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

How to get rows generated for week start dates between two date columns

Santhoshraj
6 - Meteoroid

Hi,

 

I have a table like this :

 

CasePartsNAMEcreatdtcompdt
1Aea12/15/202312/19/2023
2Bsa08/02/202309/26/2023
3Cda12/26/202312/28/2023
4Dfd02/06/202402/06/2024
5Egl09/12/202309/12/2023
6Ffd11/30/202312/07/2023
7Gdf01/03/202401/05/2024
8Hyr02/13/202402/13/2024

 

I want to plot a graph for open cases during the start of the week (Monday). So i thought of coming up something like the below table but not sure how to achieve this. Can someone please help me with this ?

 

CasePartsNAMEcreatdtcompdtweekstartopen
1Aea12/15/202312/19/202312/18/2023
2Bsa08/02/202309/26/202307/31/2023
2Bsa08/02/202309/26/202308/07/2023
2Bsa08/02/202309/26/202308/14/2023
2Bsa08/02/202309/26/202308/21/2023
2Bsa08/02/202309/26/202308/28/2023
2Bsa08/02/202309/26/202309/04/2023
2Bsa08/02/202309/26/202309/11/2023
2Bsa08/02/202309/26/202309/18/2023
2Bsa08/02/202309/26/202309/25/2023
3Cda12/26/202312/28/202312/25/2023
4Dfd02/06/202402/06/202402/05/2024
5Egl09/12/202309/12/202309/11/2023
6Ffd11/30/202312/07/202311/27/2023
6Ffd11/30/202312/07/202312/04/2023
7Gdf01/03/202401/05/202401/01/2024
8Hyr02/13/202402/26/202402/12/2024
8Hyr02/13/202402/26/202402/19/2024
8Hyr02/13/202402/26/202402/26/2024
3 REPLIES 3
ChrisTX
15 - Aurora

Try the attached workflow

 

Screenshot 2024-03-07 070927.png

Chris

OllieClarke
15 - Aurora
15 - Aurora

Hey @Santhoshraj,

 

Your output is a little inconsistent, but I think this is what you're after:

 

image.png

The generate rows is the key:

image.png
I set the initialisation expression as the monday of the week of the creatdt, and then we can simply create a new date in 7 day increments until we hit the compdt.

Hope that helps,

 

Ollie

Santhoshraj
6 - Meteoroid

Great. It worked. Thanks for the help both. @OllieClarke @ChrisTX 

Labels