community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

How to put multiple sheets into a single excel file after render?

Meteor

exampleWorkflow.jpg

Hi all, my purpose is to output multiple sheets into a single excel file with complex layout. As shown above, there are lost of tables, text boxes and other elements in each sheet; thus, "group" option is not valid in both Layout tool and Render tool. If the Render tool can work like Output tool to specify sheet name for storing data, this problem would be solved. I have stuck here for a long time. Is there any suggestion to kick this issue out?

Alteryx Certified Partner

Hey @diabolic

 

Sorry I didn't get back to you on this yesterday!

 

Ok here's a possible solution for you...

 

  • After your layout tools add a formula that defines the sheet name
  • Union all of your streams together
  • Add another layout tool using section breaks
  • render output

Rendersheets.png

Meteor

Hi LordNeiLord, I will try your solution tomorrow. Thanks for your kind help.

Meteor

Hi LordNeilord, I have tired your solution on my workflow. It works!!!!!! Your sample solution is really helpful! However I get a small issue (not important at all), when I use Layout -> Vertical with Section Breaks.

 

In your example, the sheet names is the same as the value of "Type". In my workflow, I also add a "Type" field in my each sub-workflow for section break and the value of my "Type" is simple strings like "ASP" and "AVP", but the sheet names are still "sheet1", "sheet2" and etc. in the output file. How can I force Alteryx to use the value of "Type" as sheet names?

Alteryx Certified Partner

@LordNeilLord

I've run your solution and the sheetnames are labelled with the values in the Type field but I have no idea how that happened.   I cannot replicate with my own workflow although I have copied all the same tools as in yours (table, layout, formula, union, layout, render).

Can you explain what you did to output the fieldnames to the values in the Type field?

Thanks!

Alteryx
Alteryx

@Dynamomo @diabolic

 

I've just worked on a similar workflow myself and found that there is a setting in the layout tool which must be invoked:

 

section_name_layout.png

 

 

Did you choose a field for section name (i.e. your sheet name)?

Hello,

 

@diabolic and @LordNeilLord

Diabolic thanks for posting your question, since I had the same exact one for my use case testing for Alteryx. LordNeilLord thanks for answering and also providing your sample workflow.

 

I was able to re-create the workflow to match my criteria, but I still have some problems with truncated data. For some reason even if I make the Render tool "Report Style" as Landscape orientation my data is truncated to almost unreadable extent. 

 

 render tool_Alteryx.PNG


Any ideas how to get the data to not be truncated and to be in the original length?

Alteryx Certified Partner

@Ramirenter - you need to change the paper size to be wider.  You can pick one of the sizes or set a custom size.  

@Dynamomo - Thanks for the suggestion. Works perfectly!

Labels