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

Compare if Data is entered in the correct column

Jairacha
7 - Meteor

Hi, I've been stuck on this for a while now. 

 

I have 2 tables:

 

Table1:

Country_KeyNameID_1ID_2ID_3ID_4
ADAndorra123   
AEUnited Arab Emirates123   
AGAntigua and Barbuda 123  
ALAlbania   123
AMArmenia   123
AOAngola 123  

 

Table2:

Country_KeyNameID_Mapping
ADAndorraID_1
AEUnited Arab EmiratesID_3
AGAntigua and BarbudaID_2
ALAlbaniaID_4
AMArmeniaID_1
AOAngolaID_2

 

I am trying to see if the IDs (ID_1, ID_2, etc.) are entered in the correct column in Table1 based on the ID_Mapping rules for each Country_Key in Table2. Basically trying to check for e.g. for Country_Key: AD, information is entered in column ID_1 only. Can anyone help me out with this?

 

Thank you!!

2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @Jairacha ,

 

My suggestion would be to use a "Message tool" to throw an error/warning if a values is mistakenly placed in the wrong column.

 

AngelosPachis_0-1612028408948.png

 

 

So now we can see that the values for UAE and Armenia are placed in the wrong columns. The workflow the goes on and re-assigns the values in the appropriate columns, so in the output, the value for UAE is in column 3 and for Armenia in column 1.

 

AngelosPachis_1-1612028488451.png

 

Hope that helps, let me know if you have any questions on the workflow.

 

Regards,

 

Angelos

Jairacha
7 - Meteor

Awesome, Thank you!

Labels
Top Solution Authors