I need to generate an excel monthly report which should be presented in different format when there are records (returns), or there are not records (no returns). For instance:
I have generated both files in Alteryx, and wonder if there is a way where the workflow will output only the corresponding file based on records/returns or not records criteria. Therefore, when the workflow is run, it will generate only either the "Returns file" or the "Returns no records" file
Hi @Mari1,
Try this concept i attached. Here you append the count to your records. Then further downstream the filter will only send something to output 1 if there is records (Count != 0) and records will only go to output 2 if there are no records (Count = 0). There is a select tool after the filter to remove the count and field 1 column, so that this doesn't get included in the final output. We need field1 as a dummy record, this allows the flow to run even when there are no records from the input.
I hope this helped you :)
What I have done in the past is use the email to indicate no results found or something like that and when there were results a excel file was in the email. Would that be more efficient, I could walk you through it?
Thank for your response. Ideally, I'd like to end up with only one file filled up. I'm not able to see the configuration of your output file, was that it intended to write on the same file?