Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

matching by sting

Borisham
8 - Asteroid

Hello,

 

I have 2 excel file with

 

file 1

color_name 
Blue my baloon b 
blue & a 
Blue a 

 

file 2

color_namecolor_name
blue blue1234566
blue c1234577
  
  

 

I would like to use the only first digit of the color_id(12345) and the name(blue) and match all the record from the file 1 by name(blue) and present all by the first 5 letter(12345) . would like to get this please:

 

color_namecolor_id
Blue my baloon b12345
blue & a12345
Blue a12345

 

Thanks

7 REPLIES 7
AngelosPachis
16 - Nebula

Hi @Borisham ,

 

This is the most dynamic solution I can think of. You break down the colour_name column from file 2 in individual words and then look if those are present in your file 1 input.

 

Workflow

 

Screenshot 2020-10-27 140754.jpg

 

Output

 

Screenshot 2020-10-27 140744.jpg

 

Give it a try and let me know, I hope that helps.

 

Regards,

 

Angelos

randreag
11 - Bolide

Hi @Borisham 

 

You can accomplish this using a formula to get the name and the number using a substring. Before try to put all in uppercase or lowercase in order that match. Then you can use the join.

 

If the color is not always at the begining of the word, you can use a findstring to put the color you are looking for 

 

I hope it helps

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @Borisham 

 

Here is a workflow for the task.

Inputs: File tables given by you.

Output:

atcodedog05_0-1603808783903.png

Workflow:

atcodedog05_1-1603808803167.png

Hope this helps 🙂


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

 

Borisham
8 - Asteroid

@atcodedog05Thanks

 

This is one case the the color_name is just 4 letter(blue), but there are some other cases is more than 4(blue) and it's not just blue.

 

Is there an option to match all the there that that match 80% ?

atcodedog05
22 - Nova
22 - Nova

Hi @Borisham 

 

Here is a workflow:

 

Inputs:

atcodedog05_0-1603815139707.png

atcodedog05_1-1603815152391.png

Output:

atcodedog05_2-1603815175599.png

atcodedog05_3-1603815230261.png

So basically it finds the color by finding the common words between entries having same first 5 digit IDs

 

Workflow:

atcodedog05_4-1603815307277.png

 

Hope this helps 🙂


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

Borisham
8 - Asteroid
11101blue sky
11001Blue Sky globla
2220201Sky sport
2220201Sky sport WLS

 

I would like to achive:

I would like to see the most common color_name for each id, and achive this:

 

11101blue sky
2220201Sky sport
atcodedog05
22 - Nova
22 - Nova

It seems to get more complicated huh 😅

 

2 words is going be a challenge.

Labels