Free Trial

Alteryx Designer Desktop Discussions

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

Run part of a workflow in a loop based on a value of a column (in a loop)

RadoslawCh
5 - Atom

I'm building a pdf report using Alteryx and am struggling to achieve the intended result, perhaps someone could advise as to how this could be achieved?

 

The data is structured in such a way (just for illustration, the data is in fact more complex)

Note: it is not know how many cities per person there could be

 

Person IDCountryCityCity indexColor

1

PolandWarsaw1Yellow
2GermanyBerlin1Red
2GermanyFrankfurt2Blue
3FranceParis1Black


The output will be a PDF for each person ID with a table for each City (title being the city name) , so if 2 cities per person than 2 tables one after another
e.g.

Person 1 it would be:

Title: Warsaw

Person IDColor
1Yellow

 

For Person 2 it would be:


Title: Berlin

Person IDColor
2Red

 

Title: Frankfurt

Person IDColor
2Blue
4 REPLIES 4
alexnajm
17 - Castor
17 - Castor

Since you are saying PDF, I assume you are using the Reporting tools! In your Reporting tools (presumably a Table tool), you should just need to Group By the City and Person to get the individual tables, and then Layout the tables with some Report Text tools to create the headers

 

Can you attach a sample workflow showing your current logic?

Raj
16 - Nebula

@RadoslawCh 
find the workflow attached
hope this helps.

RadoslawCh
5 - Atom

Thank you for help guys, one final caveat thought: I need the layout column for each ID to be merged (so total 3 records, not 4) How can this be achieved?

 

 

alexnajm
17 - Castor
17 - Castor

One additional Layout tool to group on the Person ID and vertically orient your layouts will accomplish your final goal

Labels
Top Solution Authors