Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Adjusting Order of Text Within A String?

srterrill1
5 - Atom

Hello,

 

I run an Excel-based workflow each week. The source data is from a third party vendor, and I have no ability to change the schema.

 

There is a field "Distribution Platforms." The field contains various "Platform" string values separated by a vertical bar. The number of Platforms may differ from record to record and week to week.

 

My client would like the output to be adjusted so that my company's platform, "Platform 3," is always listed first. Is there a way to "cut and paste" this part of the string to always appear in the beginning? In cases where "Platform 3" does not exist, the string can be left "as is."

 

Is there a way to achieve this in Alteryx? Thanks for any guidance you can offer, example below and attached.

 

Thanks, srt

 

 

 

Field: Distribution Platforms 
Existing FormatDesired Format
Platform 1 | Platform 2 | Platform 3 | Platform 4Platform 3 | Platform 1 | Platform 2 | Platform 4
Platform 1 | Platform 3Platform 3 | Platform 1
Platform 1 | Platform 2 | Platform 3 | Platform 4 | Platform 5 | Platform 6 | Platform 7Platform 3 | Platform 1 | Platform 2 | Platform 4 | Platform 5 | Platform 6 | Platform 7
Platform 2 | Platform 3 | Platform 4 | Platform 5Platform 3 | Platform 2 | Platform 4 | Platform 5
Platform 3Platform 3
Platform 2Platform 2
2 REPLIES 2
binuacs
21 - Polaris
srterrill1
5 - Atom

Wonderful, thanks @binuacs!

Labels
Top Solution Authors