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.

Get String based on location

andreahq
7 - Meteor

Hi, I have a routing description and would like to extract the current location based on a location column, but not sure what is the best approach

 

Thank you

 

Input:

andreahq_0-1604686744221.png

 

Output:

andreahq_1-1604686764494.png

 

3 REPLIES 3
Kenda
16 - Nebula
16 - Nebula

Hey @andreahq 

 

In this case, I would recommend first using a Text to Columns tool to first split your data into rows. From there, you can use a Multi-Row Formula tool to create an id for each record within each Location group. Finally, use a Filter to keep only the rows where the Location matches the record id.

 

Kenda_0-1604687072217.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @andreahq 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1604687770899.png

 

Workflow:

atcodedog05_1-1604687783042.png

 

Hope this helps 🙂


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

Qiu
21 - Polaris
21 - Polaris

@andreahq 
A bit different approach for your reference.1107-andreahq.PNG

Labels
Top Solution Authors