Alteryx Designer Desktop Discussions

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

How to append new data to existing formatted Excel tables, so the table can extend?

yxie12
6 - Meteoroid

Hi all, I tried to set the Output Options to "Append To Existing Sheet", and it did append new data to the existing excel table, it's just that the new data was not included in the excel table, and no formatting or filters either.

 

So anyone knows how can we do it? Thanks in advance!!

 

My Output:

yilin-x_0-1607095679117.png

 

My expected output:

 

yilin-x_1-1607095739422.png

 

 

5 REPLIES 5
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @yxie12,

 

I don't believe it would be possible to append to the existing table (would love to be proved wrong!), however you could import the existing table, union to the new data (to append), use a table tool to create the reporting snippet (table) and write out to a excel file using a render tool. In this example i'm appending 5 new records to my existing 30 record table.

 

Workflow:

Jonathan-Sherman_0-1607096336363.png

 

 

Excel Output:

Jonathan-Sherman_1-1607096374106.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

 

atcodedog05
22 - Nova
22 - Nova

Hi @yxie12 

 

I am assuming you are using below config in your output tool.

atcodedog05_0-1607156780708.png

One thing you can do it what @Jonathan-Sherman you can read master data and new data. And append new data to master data.

 

Another trick is, this is bit of an excel hack. You can extended the range of the table to a large range(i have taken 10000 you can set a larger range depending on your data). 

atcodedog05_1-1607156908577.png

So that when alteryx writes it will be in the format.

atcodedog05_2-1607157016048.png

 

A slight drawback would be filter will show blank as an option. But shouldnt be a major issue.

 

Hope this helps 🙂

yxie12
6 - Meteoroid

Hi Jonathan,

 

Thanks for your answer. In the end, I found a way that has a similar logic to @atcodedog05 's. Basically, I append the new data to the existing table using the config like this:

 

yilin-x_0-1607652560721.png

And then I created an event that will activate the vb script that calls the embedded macros in the excel to extend the range of the current table:

 

Event config:

yilin-x_1-1607652770087.png

 

VB script:

yilin-x_2-1607652893345.png

 

macros in excel:

yilin-x_3-1607652991957.png

 

Thanks,

yilin

 

 

yxie12
6 - Meteoroid

Thanks, your solution inspired me to create one that fits my needs better!

atcodedog05
22 - Nova
22 - Nova

Hi @yxie12 

 

Glad to hear my approach helped to build a solution.

 

And Wow, your solution is really a great hack for solving the requirement 😎

 

You should definitely mark your approach also as solution. It will be helpful for others to know how it could have solved 🙂

 

Happy to help 🙂

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any issues 🙂

 

Labels