Alteryx Designer Desktop Discussions

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

Remove unnecessary characters from record

kushalb
7 - Meteor

Hi All,

 

My problem goes like in Abbreviation column there is unnecessary ',' at the end of records

buit we only need ',' in between which is also there so that is not a concern but only at the end it should not be there

so how to remove that from  Abbreviation column?

 

No_1No_2UIDAbbreviation
11334464441009HPUSNL,
11334464470405HPCAON,
11334464470405HPEUON,
11334464470405HPUSON,
1180235 HPCAON,
121245725752629HPUSCA, ON
1239338 HPCACA,
1263933 HPCAAB,
1354502 HPCACA,BC,ON,QC,
3 REPLIES 3
binuacs
20 - Arcturus

@kushalb One way of doing this with the TrimRight() formula

 

binuacs_0-1666093893494.png

 

Sebastiaandb
12 - Quasar

Hi @kushalb ,

 

Try this one :-) 

 

Sebastiaandb_0-1666094045458.png

 

REGEX_Replace([Abbreviation],"(.*)(,$)","$1")

 

Greetings,

 

Sebastiaan!

 

bkurt
8 - Asteroid

Formula: IF Right([Abbreviation], 1)="," THEN [Abbreviation]-Right([Abbreviation, 1) ELSE [Abbreviation] ENDIF

Labels