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

Alteryx formula help

SCK
8 - Asteroid

Hi all,

 

I need help to eliminate the sign '-' only from the end of the string and not between. I have the following dataset.

 

Input

 

01-1000-2000-

02-200-3000

01-10003-689-

 

Desired output

 

01-1000-2000

02-200-3000

01-10003-689

 

Please help.

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @SCK 

 

The formula you need is

TrimRight([Field1],"-")

 

Output:

atcodedog05_0-1603275784765.png

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

TheOC
16 - Nebula
16 - Nebula

hi @SCK 

a perfect usecase for the TrimRight function:

TheOC_0-1603275726315.png



hope this helps!

Cheers,
TheOC
Connect with me:
LinkedIn Bulien
SCK
8 - Asteroid

Both solutions worked. Thank you so much.

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @SCK 

 

Cheers and Happy Analyzing 😀

Labels
Top Solution Authors