Alteryx Designer Desktop Discussions

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

HELP - Outputting 2 constant fields and 1 dynamic field to different excel tabs

AdamEClark
5 - Atom

Hello,

 

See attached snippet of information (same as the attached excel file):

Account #DescriptionSub1Sub2Sub3Sub4
1010Cash in Bank-Regular0015.5365277.6826
1015Cash in Bank-General00816.22584081.129
1060Petty Cash503.022000805.48144027.407
1070A/R-Trade3221853.82947190.13984.50234922.512
1071Bad Debt Reserve-6105.58-10000793.52453967.623
1074Intercompany AR Offset0-49623.57614.84523074.226
1080A/R-Other1707.625411.89640.83204


I am attempting to output Field 1, Field 2 and then Field 3 to Excel file Tab 1.

Next, I'd like to output Field 1, Field 2, and Field 4 to Excel file Tab 2.

Next, I'd like to output Field 1, Field 2, and Field 5 to Excel file Tab 3.

...and so on for over 50 fields.

 

I am looking for an alternative to running multiple data streams and manually de-selecting the fields in a select tool, and then using an output data tool. I have over 50 fields so am asking whether anyone has a solution that could automate this process. I am thinking possibly a dynamic select tool using a formula but cannot get the formula written correctly.

 

Any help would be appreciated - Thanks!

 

Please 

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus

@AdamEClark,

 

 

At first I over-engineered a response.  I didn't actually do the work, but thought about how a macro could call a BATCH macro to repeat the operation many times.  Then I thought to myself, "MVP".  Minimum Viable Product might be useful.  See this pic:

 

capture.jpg

 

We read the file and TRANSPOSE the data keeping the first two columns plus the NAME, VALUE pairs of the incoming data.  You then add a new "header" constant.  Next you CROSS TAB the data so you get 3 fields + VALUE.

 

capture.jpg

 

Now you can output the data to Excel (sorry) and put the "NAME" data to different sheets.  The one (1) drawback is that the data on every sheet is called, "DATA".

 

Check the workflow out with your real data and see if you like it.

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
MarqueeCrew
20 - Arcturus
20 - Arcturus
p.S. you can call the "data" AMOUNT. That makes more sense.
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
AdamEClark
5 - Atom

Agreed. I updated the field names before outputting as you recommended. Although each excel tab had an extra column in it, I was able to highlight each tab (in excel) and delete the third column. This solved my problem perfectly. Thanks again.

Labels