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

Output Query

clarrock
8 - Asteroid

Hi,

 

Trying to make each class and ID separate with numbers with the brackets inside the columns 1 2 and 3. This is my output that i'm trying to reach at : 

 

IDClass123
56893abc107055660008206108730048N/A
56893DCFN/AN/AN/A
56893CuiN/AN/AN/A
56893Car-N/AN/AN/A
26895UDFN/AN/AN/A
26895PDFN/AN/AN/A
26895CARN/AN/AN/A
2556UDFNO-0115488N/AUB-chr
123UDFNO-0391098N/AN/A
123GDCNO-0391098N/AN/A
123abc107055660008N/AN/A
123DCFN/AN/AN/A

 

Heres my input : Is this possible

ID123
56893abc(PVI:107055660008,CVI:107055660008),DCF(N/A),Cui(N/A),Car-(N/A)abc(PVI:206108730048,CVI:206108730048),DCF(N/A),Cui(N/A),Car-(N/A)abc(N/A),DCF(N/A),Cui(N/A),Car-(N/A)
26895UDF(N/A),PDF(N/A),CAR(N/A),UDF(N/A),PDF(N/A),CAR(N/A),UDF(N/A),PDF(N/A),CAR(N/A),
2556UDF(PCVI:NO-0115488)UDF(N/A)UDF(PCVI:UB-chr)
123UDF(PVI:NO-0391098),GDC(PVI:NO-0391098),abc(PVI:107055660008),DCF(N/A)UDF(N/A),GDC(N/A),abc(N/A),DCF(N/A)UDF(N/A),GDC(N/A),abc(N/A),DCF(N/A)
2 REPLIES 2
jamielaird
14 - Magnetar

Hi @clarrock ,

 

Here's an approach that gets the result you are looking for:

 

Spoiler
jamielaird_0-1624621987383.png

 

 You might want to do a bit more work with the Regex if you want to make this able to handle a wider range of values.

clarrock
8 - Asteroid

@jamielaird this was really helpful 🙂 , but i'm facing a certain problem - the Class CVI is being included in the output sadly, is there a way to do add record 2 "CVI:107055660008" that value back into record 1 "abc(PVI:107055660008" so it becomes "abc(PVI:107055660008 CVI:107055660008)"

and this would happen if it sees CVI in the first 3 letters of Value ie adding back to previous record

 

When using the formula tool Class = Left([Value],3) it takes only 3 letters out. Is it possible to have like a logic if its "abc(" then its splits the class

because some of input values include "team-qwe(PVI:107000)"

 

Please help

Labels