Alteryx Designer Desktop Discussions

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

Evergreen Excel Dataset

KLEITH21
6 - Meteoroid

Hello,

 

I receive monthly data and am looking for the best solution to keeping a continuous and evergreen EXCEL workbook. The table would look something like this, with a new column of data to the right of the UID each new month the workflow is run:

 

UIDJan Data
1x
2x

 

UIDJan DataFeb Data
1xx
2xx

 

UIDJan DataFeb DataMar Data
1xxx
2xxx

 

...and so on...

I can only seem to replace and NOT preserve the Jan Data column when I attempt to Join Feb data. Any suggestions?

3 REPLIES 3
amruthas2
8 - Asteroid

Hi @KLEITH21 

Consideration -
Output File has just UID & Jan Data for 'Jan', UID - Feb Data for 'Feb' and so on

Every month,

1. add new month table to alteryx

2. build connection to Exisitng 'Union' from new table

3. add that year field as Sum in 'Sumarization' function

 

amruthas2_0-1645250290212.png

 

Please let me know if this helps.

danilang
19 - Altair
19 - Altair

Hi @KLEITH21 

 

Here's a dynamic method that will allow you run the workflow monthly without any changes to the workflow(after the initial run).

 

danilang_0-1645290945017.png

 

The workflow reads the data from the latest excel file((bottom input) and uses a dynamic rename to change the name of the new data column to the file name which I've set to the month name.  This data is joined to the data in the existing evergreen file to add a new column in the last position.

 

The first time you run this, disable the container called "Enable on subsequent runs" and enable the the container called "Enable on first run only".   Run this with your first file to create the initial Evergreen file.  Once you've done this, disable the "Enable on first run" container and enable the other container.   From now on, run this as an analytic app and use the file browse tool to select the next monthly file.  The data column from new file will be added to end of the columns with the new month name. 

 

Here's a sample of running this for the first 3 months.  

Month 1(initial run)

danilang_1-1645291795683.png

Month 2 (as analytic app)

danilang_2-1645291873197.png

Month 3

danilang_3-1645291922083.png

 

I use the file name as the column header for simplicity.  You can either rename the monthly files before you run the workflow or modify the column logic to work with the data that you have. 

 

Attached is the workflow and the 3 sample files that I'm using

 

Dan

 

 

 

 

  

KLEITH21
6 - Meteoroid

Each month I need to take the running average of the last 3 months. Now that you see my resulting schema, is it possible to run a formula across "Last N" columns or would I have to transpose this data? If so the Transpose tool looks static/manual and not dynamic. Any suggestions? @danilang @amruthas2 

Labels