Alteryx Designer Desktop Discussions

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

Recognize values with multiple delimiters and convert to values with standard UOMs

asanjuan
5 - Atom

Hello, I'm working to convert different versions of units of measures (UOM) from various customer files. I see a lot of garbage that need to be cleansed and converted to Each (EA), Pack (PK) and/or Case (CA). Text to Column tool looks inadequate but I'm not familiar with other parsing tool or how it would need to be written if using a formula. Also, whatever tool is used will need to be smart to anticipate unforeseen characters, delimiters and the occasional misspellings but still convert them to EA, PK and CA. Appreciate the help!

 

Sample scenarios below:

Convert Old UOMCase per PackTo New UOMNeed to convert UOM to calculate deviation later in the workflow
CS12/CSCACS = CA
Eaches1 EAEAEaches = EA 
PK1.3M/PKCAHow do I deal with the M (or T), million or thousand and other roman numerals, etc.?
CS PK12/CS, 24/PKPKWhat do I do with 2 measures with multiple delimiters including space and invisible characters?
CA1.9T/CS/PK Combination Roman numerals and multiple delimiters?
EA1 E Acasespace delimiter before, after and in between values

   

4 REPLIES 4
binuacs
20 - Arcturus

@asanjuan sorry I am not following the requirement. if possible can you provide an input file with expected output

Qiu
20 - Arcturus
20 - Arcturus

@asanjuan 
As @binuacs mentioned, we may be a more detailed data to get a closer look.

But I feel it might be a Find and Replace issue here.
We can prepare a matching table for the UoM to be replaced which is easy to maintain also.

0601-asanjuan.PNG 

asanjuan
5 - Atom

Thanks @binuacs, thanks @Qui for your responses. Sorry, for my late reply.  @Qui, your solution gave me part of what I needed. I was trying to avoid creating a reference table, but to your point, I think it's easy enough to maintain in this case.  

Qiu
20 - Arcturus
20 - Arcturus

@asanjuan 
Thank you for the feedback.
I believe you can solve 😀 it and sorry I was only able to provide a start point.

Labels