Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

Convert values in a column into a column heading

nickphall
5 - Atom

Hi,

I'm new to alteryx and have not been able to find a solution looking through previous questions, documentation and need the help of someone that knows what they are doing.

 

I have multiple spreadsheets in a directory and I read them in via a wildcard *

The cells that I'm pulling in look like Fig 1 below. The column headers are in column A and the values/rows are in Column B.

nickphall_1-1621939464759.png

Fig.1

 

With one spreadsheet this is fine, I can flip it / pivot/ Transpose like Fig 2

nickphall_2-1621939533238.png

Fig.2

 

But because I'm bringing in multiple spreadsheets Fig.2 workflow doesn't work. It only reads in one meeting title/meeting date  as each speadsheet is using the same cells

 

I can get it to look like Fig.3 by setting the Input Options like Fig.4

 

nickphall_0-1621939220138.png

Fig.3 

 

nickphall_3-1621939728744.png

Fig.4

 

Now I'm trying to get Fig.3 to look like Fig.5 but really struggling. Can this ben done in Alteryx? 

 

nickphall_4-1621939822791.png

Fig. 5

 

5 REPLIES 5
mceleavey
17 - Castor
17 - Castor

Hi @nickphall ,

 

If I understand the problem correctly this can be done using a grouped record ID as the grouping field:

 

mceleavey_0-1621940437864.png

mceleavey_1-1621940456707.png

 

I've attached the Grouped RecordID tool I built for this. (Save this to your macro folder)

 

Hope this helps.

 

M.

 



Bulien

atcodedog05
22 - Nova
22 - Nova

Hi @nickphall 

 

Here is how you can do it.

atcodedog05_0-1621940787046.png

 

1. Using multi-row formula tool i am starting a new groupID on each row with Meeting date.

2. Using groupID as key crosstabing with field1 as name & field2 as value.

 

Hope this helps 🙂

mceleavey
17 - Castor
17 - Castor

@atcodedog05 ,

 

Seems like you need my Grouped RecordID tool 😉



Bulien

nickphall
5 - Atom

Great, that has worked for me. Thanks for your help.

nickphall
5 - Atom

Thanks for the solution, it looks like I need to upgrade my version of Alteryx first before give it a try

nickphall_0-1621948696924.png

 

Labels