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.
fireworks
SOLVED

Generating all week numbers between two dates

a_chhay
7 - Meteor

Hi,

 

I am trying to generate all weeks for each year between two periods.

 

input output expected  
     
Date First_day_week (Monday)YearWeek
28/12/2016 26/12/2016201652
29/03/2017 02/01/201720171
25/04/2017 
22/05/2020 11/05/2020202020
  18/05/2020202021

 

Thank you for your help,

Andre

 

3 REPLIES 3
RolandSchubert
16 - Nebula
16 - Nebula

Hi @a_chhay ,

 

I'm not quite sure I got you right, but I tried to create a workflow to generate the weeks in the period range.

 

Let me know if it works for you.

 

Best,

 

Roland

 

 

PhilipMannering
16 - Nebula
16 - Nebula

Hi a_cchay,

 

Something like this?

 

PhilipMannering_0-1590143366290.png

 

a_chhay
7 - Meteor

Hi @PhilipMannering and @RolandSchubert,

I've already found a solution of my problem and i forgot to close my case.

I've same idea like PhilipMannering but to get distinct value, I used the module "Unique".

 

2020-05-22 12_51_11-Alteryx Designer x64 - generating_dates_between_two_periods.yxmd_.png

Thank you for your help!

 

Labels
Top Solution Authors