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

Alteryx Designer Desktop Discussions

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

Data Validation

vijaylnyadav
8 - Asteroid
Column1Column2Column 3Column 4
XYZ1XYZ123401
ABC2ABC432204
MNO3MNO234106

 

Consider a sample data,

Here, i want to compare column3 & column4 with Column1 & column2

 

For Eg,

number in column 2 should match with number with column 4 condition is that string in column1 should match with first 3 letter in Column3.

 

If ABC = 2 then ABC4322 should be equal to 2 (not 4) considering the relation with ABC = 2.

 

Please suggest some solutions

6 REPLIES 6
PhilipMannering
16 - Nebula
16 - Nebula
atcodedog05
22 - Nova
22 - Nova

Hi @vijaylnyadav 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1606397888487.png

Workflow:

atcodedog05_1-1606397918477.png

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

vijaylnyadav
8 - Asteroid
Column1Column2Column 3Column 4
XYZ1XYZ123401
ABC2MNO234104
MNO3ABC234106

 

Consider a sample data,

Here, i want to compare a specific data not the whole column.

 

For Eg,

If ABC = 2 then ABC4322 should be equal to 2 (not 6) considering the relation with ABC = 2 and if MNO = 3 then MNO2341 should be equal to 3 (not 4) without sorting the columns.

 

Please suggest some solutions

AngelosPachis
16 - Nebula

Hi @vijaylnyadav 

 

You can do that with a Find & Replace tool, as shown below:

 

Screenshot 2020-11-26 135223.jpg

 

Your output would look like this

 

Screenshot 2020-11-26 135316.jpg

atcodedog05
22 - Nova
22 - Nova

Hi @vijaylnyadav 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1606398852486.png

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @vijaylnyadav 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any issues 🙂

Labels