Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Create a variance table bw old and new records

Inactive User
Not applicable

Hello community, i'm looking to create a variance/delta sheet between the old and new dataset.

 

I've used the join tool but have not successfully align the employee+old+new value in the same row.

 

Appreciate the help in advance!

 

Table 1  
EmployeeAttributeOld Value
A1abc
A2abc
A3abc
A4abc
B1abc
B2abc
B3abc

 

Table 2  
EmployeeAttributeNew Value
A1abc
A2defg
A3defg
C1defg
C2defg
C3defg

 

Variance   
EmployeeAttributeOld ValueNew Value
A2abcdefg
A3abcdefg
A4abc 
B1abc 
B2abc 
B3abc 
C1 defg
C2 defg
C3 defg
7 REPLIES 7
Felipe_Ribeir0
16 - Nebula

Hi @Inactive User 

 

One way of doing this

 

Felipe_Ribeir0_0-1666031804754.png

 

 

Inactive User
Not applicable

@Felipe_Ribeir0, i forgot to mention when the old = new value then it shouldn't appear in the variance table. Your solution doesn't exclude the 'no change' values.

Felipe_Ribeir0
16 - Nebula

@Inactive User  

 

Check this new version.

 

Felipe_Ribeir0_0-1666032891331.png

 

Inactive User
Not applicable

For some reason, this doesn't work on my larger dataset. I keep getting separate rows between the old and the new values even joining all L-J-R.

 

Variance   
EmployeeAttributeOld ValueNew Value
A2abc 
A2 defg
A3abc 
A3 defg
A4abc 
binuacs
21 - Polaris

@Inactive User One way of doing this with the join and summarize tool

binuacs_0-1666040328641.png

 

Felipe_Ribeir0
16 - Nebula

@Inactive User 

 

Could you share the 2 inputs that generated this last table that you shared? Something is strange since the values for employee and attributes are the same on both tables, it is better to understand what is it before proceed.

 

Maybe you have spaces in the column employee for one of the tables? If this is the case, check using the attached wf.

Felipe_Ribeir0
16 - Nebula

Hi @Inactive User 

 

It worked?

Labels
Top Solution Authors