Alteryx Designer Desktop Discussions

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

Need help to remove punctuation

SCK
8 - Asteroid

Hi All. I need help to remove the sign '-' but only from places where it isn't a part of a number sign. Below is the input and output. Please let me know if anyone can help.

 

Input:

 

Data
-120
-159
-
-
180
-
-
-

-

 

Output

Data
-120
-159
180
8 REPLIES 8
atcodedog05
22 - Nova
22 - Nova

Hi @SCK 

 

You can use filter tool to filter out '-'

atcodedog05_0-1605765559041.png

Data does not equal to '-'

atcodedog05_1-1605765617890.png

Hope this helps 🙂


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

 

Qiu
21 - Polaris
21 - Polaris

@SCK 
use Equal as the criteria to filter.

Capture.PNG

Qiu
21 - Polaris
21 - Polaris

@atcodedog05 
you are fast...😁

SCK
8 - Asteroid

Apologies here goes the revised data. 

 

Input:

 

DataData
-120790
-159-95
-90
-175
180-
-50
--
--60
-

-40

 

Output

 

DataData
-120790
-159-95
 90
 175
180 
 50
 -60
 

-40

atcodedog05
22 - Nova
22 - Nova

Hi @SCK 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1605766662797.png

Workflow:

atcodedog05_1-1605766681086.png

 

Hope this helps 🙂


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

Qiu
21 - Polaris
21 - Polaris

@SCK 

Here you go

1119-SCK.PNG

atcodedog05
22 - Nova
22 - Nova

Hi @SCK 

 

You can have dynamic remove null rows. But that feature only available in the latest releases. So check whether is works.

atcodedog05_0-1605766905306.pngatcodedog05_1-1605766943453.png

 

Hope this helps 🙂

 

T_Willins
14 - Magnetar
14 - Magnetar

You can also do this through a single Multi-Field Formula tool using a REGEX_Replace formula (the "-$" finds a dash with nothing after it)

 

Regex Replace.jpg

 

Labels