Hello,
Could anyone please help me with a doubt in alteryx? I have a set of data with dates. I need to add the weeknumbers and monthnumbers in a specific format ie, if the date belongs to the current week the weeknumber=0, monthnumber=0, if date belongs to previous week, week number= -1 and month number = 0, if the date belongs to previous month, monthnumber=-1
Please find the sample of data mentioned below.
DatesTable |
Dates | Week | Month |
17/09/2019 | -3 | -1 |
18/09/2019 | -3 | -1 |
19/09/2019 | -3 | -1 |
20/09/2019 | -3 | -1 |
21/09/2019 | -3 | -1 |
22/09/2019 | -2 | -1 |
23/09/2019 | -2 | -1 |
24/09/2019 | -2 | -1 |
25/09/2019 | -2 | -1 |
26/09/2019 | -2 | -1 |
27/09/2019 | -2 | -1 |
28/09/2019 | -2 | -1 |
29/09/2019 | -1 | -1 |
30/09/2019 | -1 | -1 |
01/10/2019 | -1 | 0 |
02/10/2019 | -1 | 0 |
03/10/2019 | -1 | 0 |
04/10/2019 | -1 | 0 |
05/10/2019 | -1 | 0 |
06/10/2019 | 0 | 0 |
07/10/2019 | 0 | 0 |
08/10/2019 | 0 | 0 |
09/10/2019 | 0 | 0 |
10/10/2019 | 0 | 0 |
Kindly help me in creating week number and monthnumber for the dates.
Thanks In Advance,
Anagha