Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

How to Group Dynamic Columns (date based)?

Uri_Teitler
5 - Atom

We run a report every week to look for missing timesheets.

We need to group them by Prior Period and Current Period.

Then determine if there is any missing in those periods.

The report creates a new col each week (week beginning).

Once all missing timesheets are submitted the oldest dates drop off.

Attached is a sample of the input file and expected output file.

For this example I have assumed the "today's date" ie current period is 13/09/21 (DD/MM/YY)

Any help would be much appreciated.

13 REPLIES 13
Uri_Teitler
5 - Atom

Uri_Teitler_0-1632210052017.png

 

hi .. thanks for the follow up .. here is a snippet of more sample data.

I should have been a bit clearer, Prior Periods = (Prior Period = Any and all weeks before this week)

As you can see Ron Ross has a missing timesheet in the prior weeks but the last two are OK.

atcodedog05
22 - Nova
22 - Nova

Hi @Uri_Teitler 

 

Can you share the excel file which has formulas?

atcodedog05
22 - Nova
22 - Nova

Hi @Uri_Teitler 

 

I got an understanding of the usecase logic. You would need transpose method for this since we need to look at the previous all values. Here is how you can do it.

Workflow:

atcodedog05_0-1632211376016.png

 

Hope this helps : )

Maskell_Rascal
13 - Pulsar

Hi @Uri_Teitler 

 

Now that we understand the logic for the desired output, I believe that the transpose method that @atcodedog05 provided would be the easiest approach. I do have a workflow that I'll share using the dynamic tool functions, but I will warn that it is a bit complicated. It also requires the use the Dynamic Formula CReW Macro. I added annotations to all the tools, so you can see what the workflow is doing. 

 

The workflow is as follows:

Maskell_Rascal_0-1632232217384.png

 

Attached is the workflow and a packed version of the macro in case you need it. 

 

Cheers!

Phil

Labels