Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

Alteryx Designer Desktop Discussions

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

Filter Multiple Conditions in Multiple Columns to Create Multiple Reports

Hi, I hope someone can help me out quick.

 

My report has a thousand or more lines and I'm trying to create multiple output reports all at once based on a template.

So the template has the Report Name, Sheet Name, and the Column Names that Alteryx is supposed to look-up.

Each column has then a list of data to include or exclude on the file. The thing is, this template file is supposed to be dynamic - meaning, the columns may be removed or added with the data list on each column changing as well. For Example:

 
ReportSheet NameColumn 1Column 2Column 3Column 4Column 5Column 6Column 7Column 8Column 8Column 9Column 10Column 11Column 12Column 13
TPURABC   Branch A; Branch B; Branch C; Branch D; Branch E; Branch F; Branch G 1 PHP; USDCC; CCI; E; EI; EC; ECI; 0; NFC+ NN  
TPURDEF   Branch A; Branch B; Branch C; Branch D; Branch E; Branch G; Branch H 2SSFMGBP; JPYCFC-; CFC-I; ES NN  
TPURGHI   Branch A; Branch B; Branch C; Branch D; Branch E; Branch F; Branch Z; Branch J 2TP   NN  
TPURJKL   Branch A; Branch B; Branch C; Branch D; Branch E; Branch X; Branch Z; Branch J 3TP   NN  
TPURMNO   Branch A; Branch B; Branch C; Branch D; Branch E; Branch F; Branch Z; Branch J 5TP   NN  
TPURPQR   Branch M; Branch N; Branch O; Branch P; Branch Q; Branch R; Branch S  TP  T+7NN  
TPURSTU   Branch M; Branch N; Branch O; Branch P; Branch Q; Branch R; Branch S; Branch J       Y  
XYZ ReportAAA 333 Branch A; Branch B; Branch C; Branch D; Branch E; Branch F; Branch G         True; False

 

3 REPLIES 3
Raj
16 - Nebula

@karizze_fitzgeraldine 
please add expected output
will be in better position to help.

KGT
12 - Quasar

I'm not sure if this is being made harder than it is. So, I'll give a simple solution and some guidance if it is actually harder than I think.

 

The easiest method when creating multiple outputs is to create another field with the sheet name and use the output tool with the option down the bottom to replace sheet name with that field. If it's totally separate files, then the column needs to be the filename and still use that option.

 

Now, looking again, I'm guessing that table is actually a template that is used to decide the columns in your data (that's not published).

In this case, you would want to transpose that table and remove nulls, that will give you a list of the columns needed for each type and use that to filter your data (probably transpose the data first for ease). Then assign a new column name to the data using a multi-row such as 1,2,3... (or if you want the other columns but just null() then don't reassign a name. Then crosstab that back and use the output as above.

Thank you for all your help, perhaps I was not specific enough. I have found a way to workaround my flow.  :)

Labels
Top Solution Authors