Alteryx Designer Desktop Discussions

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

Find Missing Dates From Referenced Table

tjamal1
8 - Asteroid

Hello, 

I have table which contains Dates 

 

Calender Dates
1/1/2020
1/2/2020
1/3/2020
1/4/2020
1/5/2020
1/6/2020
1/7/2020
1/8/2020
1/9/2020
1/10/2020
1/11/2020
1/12/2020

 

I have another table which contains UserID and LogDates

UserIDLog Dates
11/1/2020
11/2/2020
21/3/2020
21/4/2020
21/5/2020
21/6/2020
21/7/2020
21/8/2020

 

Is there anyway to find the missing Dates By User

Missing dates are those which are not in User Table but present in Referenced Table

 

For example for user 1 it should be like 

 

UserIDMissingLogDates
11/3/2020
11/4/2020
11/5/2020
11/6/2020
11/7/2020
11/8/2020
11/9/2020
11/10/2020
11/11/2020
11/12/2020

 

 

1 REPLY 1
BrandonB
Alteryx
Alteryx

I would take the entire list of calendar dates that you expect, and the entire list of UserIDs, and append one to the other. This creates a master list of sorts which is the entire list of expected combinations. Then you can join it back to the UserIDs and Log Dates table on both the UserID and log date. The L or R on the side of the master list will show the combinations that do not exist in your main data set which I believe is what you are looking for. 

Labels