Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Help with sequence

Ultralightbeam
8 - Asteroid

Hey guys I am just wondering how to do sequence on alteryx

I have a table below

WeekEndingNameRate
2021-01-2215
2021-01-2214
2021-01-0815
2020-12-2514

 

and I want alteryx to get the last 3 recent weeks from the table 

So I need to group by the Name and rate and get three weeks only

 

I have another dates table which contains the WeekEnding - I am thinking of joining my weekstable with table above using weekending as foreign key but that doesn't work

2 REPLIES 2
Emil_Kos
17 - Castor
17 - Castor

Hi @Ultralightbeam,

 

I imagine that you will have at least one row per each week so in the real life it shouldn't be the issue but basically, my workflow shows 3 newest weeks that are in the data set. 

 

It will not calculate 3 newest weeks from the newest date if that makes sense.

 

Emil_Kos_0-1613561039171.png


The output:

 

Emil_Kos_1-1613561052104.png

 

 

Emil_Kos
17 - Castor
17 - Castor

Hi @Ultralightbeam,

 

Please disregard my previous message.

 

My workflow now checks the max date and show only 21 days from the max date (3 weeks). 

 

It is more dynamic and safer.

 

Emil_Kos_0-1613561571199.png

 

 

The output:

 

Emil_Kos_1-1613561578703.png

 


Week number part is optional. I have kept it as a check. 

Labels