Filter Multiple Conditions in Multiple Columns to Create Multiple Reports
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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:
Report | Sheet Name | Column 1 | Column 2 | Column 3 | Column 4 | Column 5 | Column 6 | Column 7 | Column 8 | Column 8 | Column 9 | Column 10 | Column 11 | Column 12 | Column 13 |
TPUR | ABC | Branch A; Branch B; Branch C; Branch D; Branch E; Branch F; Branch G | 1 | PHP; USD | CC; CCI; E; EI; EC; ECI; 0; NFC+ | N | N | ||||||||
TPUR | DEF | Branch A; Branch B; Branch C; Branch D; Branch E; Branch G; Branch H | 2 | SSFM | GBP; JPY | CFC-; CFC-I; ES | N | N | |||||||
TPUR | GHI | Branch A; Branch B; Branch C; Branch D; Branch E; Branch F; Branch Z; Branch J | 2 | TP | N | N | |||||||||
TPUR | JKL | Branch A; Branch B; Branch C; Branch D; Branch E; Branch X; Branch Z; Branch J | 3 | TP | N | N | |||||||||
TPUR | MNO | Branch A; Branch B; Branch C; Branch D; Branch E; Branch F; Branch Z; Branch J | 5 | TP | N | N | |||||||||
TPUR | PQR | Branch M; Branch N; Branch O; Branch P; Branch Q; Branch R; Branch S | TP | T+7 | N | N | |||||||||
TPUR | STU | Branch M; Branch N; Branch O; Branch P; Branch Q; Branch R; Branch S; Branch J | Y | ||||||||||||
XYZ Report | AAA | 333 | Branch A; Branch B; Branch C; Branch D; Branch E; Branch F; Branch G | True; False |
- Labels:
- Custom Tools
- Dynamic Processing
- Reporting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@karizze_fitzgeraldine
please add expected output
will be in better position to help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you for all your help, perhaps I was not specific enough. I have found a way to workaround my flow. :)
