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.
SOLVED

Multiple replace within a field and sort

aka_ash
8 - Asteroid

Hi,

 

I am looking to do a multiple find\replace of text within a field and then sort the values by alphabetical order.

I thought i could use a replace formula with "AND" statements but couldn't get it to work, hoping someone can advise.

 

I have a sample text replacement table below as well as sample data and desired output below

 

ValueReplacement Value
ABC.ZX.QWEZ
ABC.FG.WERFG
ABC.RE.ERTR
ABC.QW.TYUQ
ABC.FD.POIFD
ABC.FC.OIUFC

 

DataReplaced data outputDesired output (Sorted)
ABC.ZX.QWE,ABC.QW.TYU,ABC.FC.OIUZ,Q,FCFC,Q,Z
ABC.FG.WER,ABC.RE.ERT, ABC.FD.POI, ABC.QW.TYUFG,R,FD,QFD,FG,Q,R
ABC.QW.TYUQQ

 

Thanks in advance,

Ash

3 REPLIES 3
paulfound
11 - Bolide

Hi @aka_ash 

 

Think this is what your trying to do.

PaulFound_0-1598516763691.png

 

Let me know how you get on.

aka_ash
8 - Asteroid

This worked for me, thanks @paulfound.

 

Just curious, does the concatenate in the Summarize tool automatically sort alphabetically?

paulfound
11 - Bolide

@aka_ash 

 

No it isn't the summary tool doing the sorting. Its the order of the replacement table in reverse as its joined that dictates the order.

 

Summary doesn't change the order.

 

Paul

Labels