Alteryx Designer Desktop Discussions

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

Multiple Tables in one Excel sheet (mixed layouts)

TonyA
Alteryx Alumni (Retired)

I'm working on an interesting requirement for formatted Excel worksheets. The sheets need to contain multiple independent tables. In some cases, the tables are arranged horizontally, in others vertically, and some have a mix of both. I've been trying to get this working in the layout tool, but I can't get any horizontal spacing between tables. I've found some info on Community about arranging tables vertically, so my immediate need is to put two tables side by side separated by some white space.

I have been able to build this without reporting tools by treating the column names as data, inserting null rows above the tables, null columns between them, and using surrogate column names that I ignore when writing the data to the file. This works for the layout, but leaves me with default column widths and the numbers all squished together. The formatting is important, so I think I need to use reporting tools. I have seen one attempt to use a single table tool for both data sets with empty columns between the two sets. The problem with that is that we may have columns in each data set with the same name. In that case, we could have a set of dummy field names and treat the actual headers as data, but then we'd need to hide the dummy names.

I'm including the workflow I built without reporting tools just to give you some idea of what I'm trying to do. I'd appreciate any suggestions on how to build this with formatted columns and, if possible, how to extend this to a more complex layout.

4 REPLIES 4
MichalM
Alteryx
Alteryx

@TonyA 

 

Would something like this work?

 

horizontal-tables.png

 

If so, you can achieve it by introducing a dummy empty table, change the formatting to all white and fitting it in-between the two existing ones. Example attached.

 

horizontal-tables-wf.png

TonyA
Alteryx Alumni (Retired)

Thanks, @MichalM. This could definitely be part of the solution. I do also need to look at the vertical padding as well.

TonyA
Alteryx Alumni (Retired)

Here's what I've come up with so far. I've based in on @MichalM 's solution and used the Report Text tool to add rows above the tables. I think this can be extended to include tables stacked vertically but that will have to wait for later. I'm not 100% thrilled with this result -- I would prefer not to have to create cells with hidden data to get the horizontal spacing and would like to avoid sets of merged cells to align tables with different numbers of rows. Please share any ideas for improving this. Thanks!

 

TonyA
Alteryx Alumni (Retired)

This problem can now be better resolved for unformatted tables using the write to region that was introduced in Designer a little over a year ago. You just need to write the two tables to the same sheet with different regions specified using the blocking tool. This will take care of columns in the two tables having the same name because they are now different data sets in the workflow. Still haven't found a better way to do this with formatted tables.

Labels