Alteryx Designer Desktop Discussions

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

Left, Right, and Full Outer Joins (Customer Gain, Loss analysis) with Formula

Ind4DT
5 - Atom

Hi Alteryx community!

 

I have been wrecking my brain over this, and have tried Googling/YouTubing but having a really hard time articulating this problem. 

 

Very comfortable with this analysis comparing 2-10 reports/tables/inputs, but not so much with 200+ reports stacked together:

 

Input
Customer IDReport Date
1119/1/2020
2229/1/2020
3339/1/2020
4449/1/2020
  
22210/1/2020
33310/1/2020
44410/1/2020
55510/1/2020
66610/1/2020
  
11111/1/2020
22211/1/2020
33311/1/2020

 

Output
 Report DateCommonDroppedGained
Row 09/1/2020---
Row 110/1/2020312
Row 211/1/2020231

 

Commentary: 

Row 1: We have 3 in common with prior row (222/333/444), 1 dropped (111), 2 gained (555/666)
Row 2: We have 2 in common with prior row (222/333), 3 dropped (444/555/666), 1 gained (111)

 

Prefer not to overcomplicate with an iterative/macro approach, but any ideas welcome. Thank you!

2 REPLIES 2
Greg_Murray
12 - Quasar

Hi @Ind4DT,

 

My output differs from yours a bit but I think it is on the right track

Greg_Murray_0-1603375275333.png

 

hope this helps,

Greg

Ind4DT
5 - Atom

Looks great, thank you!

Labels