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.
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
21 - Polaris

@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
Top Solution Authors