Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Join and replace

Nastya
8 - Asteroid

Hello everyone!

I have the following problem:

The target is to match two tables. In the output the second every point in route must be replaced by Hours/ Times. Every point has unique Hours/ Times only within the route (so the same point can have different Hours/ Times in different routes)

Table 1 

RoutePointHours/ Times 
388-3256-3883881,5
388-3256-38832562
371-3883714
371-3883885

 

Table 2

Route
388-3256-388
371-388

 

Output

Route_h/t
1,5-2-1,5
4-5

 

Thank you very so much for any help!

3 REPLIES 3
DavidP
17 - Castor
17 - Castor

There must be an easier way, but this works

 

join and replace.png

BenMoss
ACE Emeritus
ACE Emeritus

Here's perhaps a more simple solution that to that offered by @DavidP, but we all do things in a different way!

 

 

DavidP
17 - Castor
17 - Castor

Great solution @BenMoss. Using Concat in the Summarize tool is very neat and definitely something I'll be using all the time now! How did I not know that? This opens up so many doors...

Labels