Alteryx Designer Desktop Discussions

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

PO Split Analysis on Rolling 7 Day Period

clm24
5 - Atom

I'm trying to perform a PO split analysis on a rolling 7-day period by identifying which POs have the same vendor for the same amount. My data looks similar to this: 

 

PO NumberVendor NameCreate DateAmountCompany Code
1ABC1/4/2410

L

2DEF2/1/2427J
3ABC1/6/2410L
4GHI3/15/2419P
5JKL7/22/2415N
6ABC1/1/2410L

 

In this case the threshold for additional approval is 30. The goal is to identify that PO numbers 1, 3, and 6 are all by the same vendor, for the same amount, in a 7-day period where the total equals 30 but the POs were split to bypass additional approval. Thank you!

6 REPLIES 6
usmanbashir
11 - Bolide

@clm24 - what is expected if there's another PO for ABC on 1/9/2024?

clm24
5 - Atom

It is expected that we identify PO 1, 3, and the new PO on 1/9/24 as a group within the 7 day window that have the same vendor and the same amount. Identifying the clusters with the criteria. 

usmanbashir
11 - Bolide

@clm24 - please see attached workflow. Hopefully this is what you were looking for!

clm24
5 - Atom

By creating a formula to create the week number, this doesn't allow us to perform the analysis on a rolling basis. For example, week 1 is 1/1/24 - 1/7/24 and week 2 is 1/7/24 - 1/14/24. How do we identify if there are POs hitting our criteria from 1/4/24 - 1/11/14 when we've defined weeks so strictly? Perhaps I'm misunderstanding. 

usmanbashir
11 - Bolide

Ahh gotcha. I think an iterative macro will be needed. 

clm24
5 - Atom

Hm okay. I'm not very familiar with how to write macros, especially in Alteryx. Is this something that you can help with? 

Labels