Alteryx Designer Desktop Discussions

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

Changing Data Format

DataAnalyst
7 - Meteor

I am trying to find a quick workaround to some manual scrubbing thats being done with the below data.

 

Below are the 2 input files

Input    
STATEID NUMBERID NUMBER 2RateCompany Name
AB322736512-3456781.00%ABC
CD322736659-24523222.50%EFG
EF322736784-11856823.00%HIJ
GH322736865-09457944.00%KLM
IJ322736984-12181584.50%NOP
KL322737084-11856821.00%XYZ
MN322737165-01610932.00%OOO
OP322737284-11856821.00%PPP

 

Input 2 
STATESTATE CODE
AB01
CD02
EF03
GH04
IJ05
KL06
MN07
OP08

 

I am looking at generating the below output. The rate in the input file needs to be formatted to 999v9999 example: 1.00% would show as 0010000.

 

All  data in the ID-NUMBER 2 column will be replaced by 99999999

 

The ID NUMBER field will contain the same data.

 

The 2 columns after RATE needs to be 30 characters long

 

ID NUMBERID- NUMBER 2RATE  STATE CODE
 99999999010000  01
 99999999025000  02
 99999999030000  03
 99999999040000  04
 99999999045000  05
 99999999010000  06
 99999999020000  07
 99999999010000  08

 

Thank you

4 REPLIES 4
jdunkerley79
ACE Emeritus
ACE Emeritus

Have attached a quick go doing what I think you want.

 

I used a MultiField Formula tool to convert 1.00% to 010000. I chose MultiField as it integrates type conversion.

 

A Standard formula tool replaces ID2

 

Finally a join to get state.

 

Not quite sure this was what you meant but let me know

JohnJPS
15 - Aurora

Hi @DataAnalyst,

Just join the tables together on STATE, in order to have "STATE CODE available... and use a Formula tool to (1) replace ID-Number 2 with "999999999" and modify Rate to a string (if not already)... see attached workflow for particulars.  Hope that helps!

 

[ @jdunkerley79 wins by 7 seconds! LOL.]

DataAnalyst
7 - Meteor

This is perfect.

 

I just need to prefix an extra 0 , 0010000

DataAnalyst
7 - Meteor

I tweaked your formula to add an additional 0, it the rate output. Thanks for the help

Labels