In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Data extraction

RajatRehria
8 - Asteroid

Hi all,

 

I have extracted data from a pdf and so all data came in single column like name of the fund and amount, i want to remove the commas ( , ) from the all the numeric values but when i am doing the formula also removing commas from the fund name, any way like formulas to put so the commas get removed from from numeric values only and not from the Fund names (texts) 

 

Example:

 

Input:

ABC Fund, Limited, LP     425,447,100

XYZ Fund, Limited Partnership, LA    525,447,120

 

Desired output:

ABC Fund, Limited, LP     425447100

XYZ Fund, Limited Partnership, LA    525447120

6 REPLIES 6
binu_acs
21 - Polaris

@RajatRehria One way of doing this

image.png

Prometheus
12 - Quasar

@RajatRehria Any time I want to identify patterns so I can leave certain characters in the data and get rid of other characters, I go to www.regex101.com. It's super helpful and intuitive and helped me tremendously in my RegEx journey.

Amol_Telore
11 - Bolide

Hey @RajatRehria 

 

Another way of doing this, using regex..

Regex: (.*?)(?:(?<=\d),(?=\d))

 

Capture.PNG

RajatRehria
8 - Asteroid

hi @binu_acs i am trying to apply the formula using IF formula under Else condition nut i am facing an error, can u pls help?

Screenshot.png

Amol_Telore
11 - Bolide

@RajatRehria In the second last line in expression, before field name "Data", you missed a square bracket. like [Data]

RajatRehria
8 - Asteroid

Oh many thanks @Amol_Telore for correcting and many thanks @binu_acs u too for this solution

Labels
Top Solution Authors