Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

Buckets / clusters for 15 day period

mattf
6 - Meteoroid

I have the following dataset that I would like to take the count and make buckets based on a 15 day period and the code and description. I have created a column that sums the count if the transactions are within a 15 day period and the code and description match. I need to display the data in a way that is suitable for further testing.

 

I was wondering if there was a way to do this calculation of the sum but instead change it so that if a value is already counted, it will not be counted twice or duplicated. That is, from the first occurence of the transaction in the 15 day period, the next transactions of the same type are not counted. As you see now it is more a running total of the current date + 15 days.

 

Here is an example of the expected output:

Screenshot 2024-12-04 125757.png

In summary, the goal is to take the sum of the column and have it be equal to that of the Count column. Attached is the input file. 

3 REPLIES 3
rfoster7
11 - Bolide

Sorry Matthew, I'm not following your question. I don't think anyone is. Can you elaborate or give a clearer example or examples? 

CoG
14 - Magnetar

I think I understand the request although I do not have complete confidence in that fact and will need a more thorough/rigorous explanation of expected workflow behavior to provide further assistance. That being said, you can use the Multi-Row Formula Tool to identify the appropriate date that each record should be grouped into (so that each record is only counted once, but placed into 15 day rolling buckets), from there you can summarize to identify the sum of [Count] for that bucket and Join into main dataset for appropriate output:

 

Screenshot.png

 

Hope this helps and Happy Solving!

mattf
6 - Meteoroid

Hi, sorry for the poor explanation. I actually already found a solution to this. I was just missing the logic a bit. Attached is my workflow. Very similar to CoG's. Thanks for the help as always!

Screenshot 2024-12-05 095348.png

Labels
Top Solution Authors