Alteryx Designer Desktop Discussions

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

Compare Event Data Efficiently

jnovozhenets
5 - Atom

Hi - 

I have a large dataset containing events, event initiators, and event dates. I need to assign an importance metric to certain event initiator based on event dates. However, because I am comparing one event's date to the dates of all the other events in the dataset, the workflow becomes extremely computationally intensive.

 

For example:

InitiatorDate
11/1/22
21/17/22
31/17/22
4

2/24/22

54/30/22
65/20/22
74/11/23

 

From the above, I would want to find all dates within 30 days of initiator 1's date. Then I would move to initiator 2 and identify all dates within 30 days of initiator 2's date, etc. until all initiators have been checked. Date pairs are invalidated if there is an interceding date.

 

I'm looking for suggestions as to how to complete this task in an optimal way. Thanks!

1 REPLY 1
Yoshiro_Fujimori
15 - Aurora

Hi @jnovozhenets ,

 

Batch Macro may be suitable for this case.

I assumed the output data you expect as below.

I hope this helps.

 

Input

InitiatorDate
12022-01-01
22022-01-17
32022-01-17
42022-02-24
52022-04-30
62022-05-20
72023-04-11

 

Output

Source_InitiatorSource_DateInitiator in RangeDate in Range
12022-01-0122022-01-17
12022-01-0132022-01-17
52022-04-3062022-05-20

 

Main Workflow

1276616_Main.png

 

Batch Macro

1276616_Macro.png

Expression in Filter Tool

[Date] > "2022-01-01" AND
[Date] <= DateTimeAdd("2022-01-01" , 30, "day")

The date 2022-01-01 is updated with the value from Control Parameter Tool.

 

Labels