Alteryx Designer Desktop Discussions

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

Breaking out Adjustments By Account into Multiple Columns

WishIKnewHowToCode
8 - Asteroid

Hopefully this is simple enough to answer, I feel so stupid not knowing how to do this. A particular manager wants the data in this format, and I do not know how to do it easily. I have a file with account numbers and adjustment codes, and adjustment amounts. An account can have many different codes.

 

Apologies, to replace my values with dummy values in the dataset I have would just take too long. I think this is simple, and I'm just stupid?

 

The ideal output should look like my below table. Can anyone help me out? 

 

 
AccountAdjustment Code 1Adjustment Code 2Adjustment Code 3Adjustment Code 4Adjustment Code 5Adjustment Code 6Adjustment Code 7Adjustment Code 8
99999900699.800000
111101434000000
222220254.04000000
33330518.59000000
4444400140.1900000
5555550111.88000000
99944399901582.16000000
34324230188.15000000
1241401558.33000000
124214120096.5600000
3453532401568.89000000
546474440452.12000000
45654601626.85000000
4575474501779000000
87696706224000000
08797898700120.0600000
32414100144.6200000
234556201572.92000000
234323301556000000
6643544506986.66000000
65765765067.27000000

 

2 REPLIES 2
DavidSkaife
13 - Pulsar

Hi @WishIKnewHowToCode 

 

The Cross Tab tool is what you need - group by Account, make the Adjustment Code column your new column headers, and the values the values for new columns. aggregating can be sum.

Capture.PNG

 

You'll need to do some column header renaming etc to get it in the exact format, but this should help get it laid out how you want.

 

WishIKnewHowToCode
8 - Asteroid

Lifesaver, thank you. I just fundamentally misunderstood how to use the cross tab tool. I had tried a few times and couldn't realize what I was doing wrong.

Labels
Top Solution Authors