ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Move into separate sheets for Output

Jenina
8 - Asteroid

Hi Everyone,

 

My output will look like the below, I need to group these balances into different sheets, balance1 on sheet1 and so on. The name of the account will not be specific as it changes daily so it should be dynamic. Any easy way to do this? Thank you!

 

AccountSideCCYAmountRowCount
balance1debitAUD1001
balance1creditAUD-2001
Total  -1001
     
balance2creditUSD-3001
Total  -3001
     
balance3debitEUR5001
balance3creditEUR-1001
Total  4001
3 REPLIES 3
jrlindem
12 - Quasar

@Jenina 

Yes, this is very possible.  Take a look at the example workflow shown below.  The attached file will show you exactly what I'm up to:

jrlindem_0-1766170425512.png

 

What you’re really after though is making sure you have each row associated with the right balance category.  As you stated, this can be dynamic to whatever the account name is.  You just need that “total” line to also be associated, so the multi-row-formula tool helps cast that value onto the next line.

 

Then we use that information to create an output filepath.  The “.\” just puts the output in the same location as where your workflow is saved, but you can specify where you want that with a full path.

 

Then use the formula tool to “build” the entire filepath, dynamically in accordance with each account name.  The output for your example data is three distinct files.

 

Hope this helps!  -Jay

 

jrlindem
12 - Quasar

@Jenina 

In re-reading your question, you wanted separate sheets, not files.  This can be accomplished using the same technique but instead of using the [Account_Name] to separate out the file, you can use it to specify the sheet name instead.

Use this formula:  ".\" + "outputfile.xlsx|||" + [Account_Name]

And change the output to "Create New Sheet" (otherwise it just keeps overwriting your existing file)

Sorry for any confusion, -Jay

Jenina
8 - Asteroid

@jrlindem 

 

This works, thank you!

Labels
Top Solution Authors