Alteryx Designer Desktop Discussions

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

Help with multi join and transposing data please!

Sfava
6 - Meteoroid

Hello community, I need a little help please. I have 40-50 files each day that need to be mass imported (the # varies), amalgamated and transposed. I thought this would be relatively simple but am encountering a few issues.

 

Specifics:  Each sheet has the same number of rows (87 with exact name match across files) and same 3 key columns (Filed ID, Screen and Label). The other columns represent new bookings and the quantity will vary file to file.

 

The first issue is the multi join ends up with the 3 key columns duplicated several times. If it was always the same number of files I could use the Sort function to just deselect them but the number varies every day... I really just need the first 3. I tried importing all with a wildcard (my preference) but that turned out even worse...

Sfava_0-1645093008980.png

 

The second problem is transposing the results so that Field ID, Label and bookings become the rows

Sfava_1-1645093216644.png

I'm attaching sample data and the results I'm expecting.

 

This is what my flow currently looks like: 

Sfava_0-1645095274135.png

 

 

Any help would be much appreciated. 

 

Thank you very much

 

Shauna

 

3 REPLIES 3
Qiu
20 - Arcturus
20 - Arcturus

@Sfava 
I prepared a batch macro for this purpose.

Tthe label naming needs some adjustment based on your requirement.

0217-Sfava-01.PNG0217-Sfava-02.PNG

Sfava
6 - Meteoroid

@Qiu Thank you so much for the quick response.

 

I can't say I fully understand what's happening in the first part of the macro but when I brought in new files it worked!

 

One question on the macro, when I run it on it's own I get the following message not matter how many times I choose the same file that's on my desktop. Should I be concerned?

 

Sfava_0-1645104100166.png

Thank you again so much for the help!

 

 

Qiu
20 - Arcturus
20 - Arcturus

@Sfava 
There is a configuration for the template of Dynamic Input.
Please modify the path and file to your own. 

0217-Sfava-r1.PNG

Labels