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.

Transpose Column

ctackett
7 - Meteor

I don't understand exactly what I'm missing as this seems easy enough.

 

I'm trying to make the Zone values into their own columns and have the Counts under that..

 

I'm using the Transpose Tool but every combo isn't giving me the results I need. 

 

Current Data

CountsZoneMDT 
25

Zone1

2023-07-31 01:00:00 
39Zone22023-07-31 02:00:00 
45Zone22023-07-31 03:00:00 
564Zone12023-07-31 04:00:00 
65Zone22023-07-31 05:00:00 
85Zone12023-07-31 06:00:00 
65Zone22023-07-31 07:00:00 

 

Goal

Zone1Zone2MDT
25

0

2023-07-31 01:00:00
0392023-07-31 02:00:00
0452023-07-31 03:00:00
56402023-07-31 04:00:00
0652023-07-31 05:00:00
8502023-07-31 06:00:00
0652023-07-31 07:00:00

 

5 REPLIES 5
SPetrie
13 - Pulsar

You want cross tab, not transpose.

Group on MDT, set Zone as Column Headers and Counts with Sum as the values and you should get your desired output. Just need to store and move the columns a bit.

 

binuacs
21 - Polaris

@ctackett similar to @SPetrie suggestion

image.png

Jeff_Neklason
8 - Asteroid
8 - Asteroid

I always feel like the Imputation tool is under valued. This is a excellent simple use case. 

Qiu
21 - Polaris
21 - Polaris

@binuacs 

I rarely use the Imputation tool and always tends to use the Cleansing tool

Thanks for showing a good use case of the Imputation tool. 😁

caltang
17 - Castor
17 - Castor

 Or you can try something like this:

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels
Top Solution Authors