Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Transform data to binary values

Carolyne
8 - Asteroid

Hi: How would I transform my data from:

 

ReadmitsMemberID Sum Allowable AmountAge BandsDRG Desc
015075-84Headache
015075-84Headache
123085+Chest Pains
123085+Chest Pains
131065-74Cough
14565-74

Fever

 

To 

 

ReadmitsMemberID Allowable AmountAge Bands_65-74Age Bands_75-84Age Bands_85+**bleep**e Bands_<65HeadacheChest PainsCoughFever
015001001000
123000100100
031010000010
04510000001

 

 

Thanks.

 

2 REPLIES 2
CharlieS
17 - Castor
17 - Castor

Check out the example solution attached and let me know if that works for you. The only downfall is that it doesn't create the "<65" column since that was unknown to the input data.

 

20190402-StringDummies.png

 

 

 

 

 

 

 

- RecordID's keep things organized

- Dynamic Select tools sort out what need to be transformed. 

- Transposing allows unique name-value pairs to be identified.

- Cross Tab on these values will create the complete data frame

- Multi Field Formula fills in nulls with 0s.

- RecordID is used to join back to the numeric fields. 

 

 

ponraj
13 - Pulsar

Attaching a sample workflow.  Hope this is helpful. 

 

Transform data to binary values.PNG

Labels
Top Solution Authors