Alteryx Designer Desktop Discussions

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

Replacing Characters

MOlinski
7 - Meteor

Hello all,

 

I have data in a column "Cost Center" that I am trying to replace with nothing, so deleting the text. What I am looking to do is find and replace CTV1 with nothing, then A1000 with nothing, and A1001 with nothing. This text is all in the same column.

 

Thank you!

9 REPLIES 9
atcodedog05
22 - Nova
22 - Nova

Hi @MOlinski 

 

You can use formula like this

 

IF [Cost Center] in ("CTV1","A1000","A1001")
THEN Null()
ELSE [Cost Center]
ENDIF

 

If it doesnt work can you please provide sample data.

 

Hope this helps : )

MOlinski
7 - Meteor

I apologize, I should of mentioned that there is no spaces between the data, it is all combined. I can't provide my workflow because it is sensitive data, but I can provide a screen shot of what I am trying to remove. What I would like to do is remove the highlighted from the data below.

 

MOlinski_0-1630600903444.png

 

Thank you!

atcodedog05
22 - Nova
22 - Nova

Hi @MOlinski 

 

Can you the same screenshot data in excel and expected output.

MOlinski
7 - Meteor

Please see below and thank you for the help.

 

Actual DataExpected Output
CTV130095A100130095
CTV160054A100160054
CTV160093A100160093

MOlinski_0-1630601550226.png

 

Thank you,

atcodedog05
22 - Nova
22 - Nova

Hi @MOlinski 

 

I would suggest find and replace for this approach.

 

Workflow:

atcodedog05_0-1630601859377.png

 

Hope this helps : )

MOlinski
7 - Meteor

Sorry, but I'm still not sure I am understanding. There will be thousands and thousands of cost center fields and this data will be changing every time the report is ran. What I did was got rid of all of the sensitive data so please see attached and let me know if that helps. Thank you again!

atcodedog05
22 - Nova
22 - Nova

Hi @MOlinski 

 

Here is how you can do it. Check and let me know does this work for you.

Workflow:

atcodedog05_0-1630603548547.png

 

Hope this helps : )

MOlinski
7 - Meteor

This worked!!! Thank you so much for the help.

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @MOlinski 

Cheers and have a nice day!

Labels