Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Comparing 2 inputs with same data and multiple columns

akshatbabbar
5 - Atom

Hi, 

 

I am trying to compare and validate my data following a new ETL process. I have 2 csv-based input files where one is derived from Prod and one from a new ETL process but should contain the same mirrored data. I used join tool to match my columns as the column headers are the same and I got pretty close matches. However, I want to do comparison for each column so I know where I can identify where there is a mismatch and the specific columns where data doesn't validate. 

 

 

 

4 REPLIES 4
cjaneczko
13 - Pulsar

One way to do it is after the join, create a Boolean formula to test the fields from Prod vs Dev. Then filter on any of the False records. Those will show you where the Prod Field doesnt match the Dev field. 

 

 

[Field2]=[Right_Field2]

 

 

image.pngimage.png

akshatbabbar
5 - Atom

Thanks for the quick response back, is there a faster way to do it because I am working with around 50 columns in each dataset.

cjaneczko
13 - Pulsar

Try This. You'll need to update the Prefix on all of the fields with Prod for production and Dev for Development. This only shows record that have variances. Any matches are dropped. 

 

image.pngimage.png

CharlieS
17 - Castor
17 - Castor

Check out this example from my "What the XML?" Inspire presentation called "Table style rules". I use a batch macro to edit the XML of a Table tool to highlight fields in two tables that differ for a nice visual comparison. 
20230815-TableDifferences.JPG

Of course this workflow can be modified to join on a field rather than position, or output to Excel if you prefer (might be better with larger datasets). Let us know if you have any questions!

Labels
Top Solution Authors