I am running a batch macro in my Alteryx workflow which gives 1 row as an output with different set of fields in each iteration. I need to append all these rows together by creating a new column, if required, after each iteration. Those rows which do not have values for the corresponding column should be replaced by 0.
Any idea how to do it?
MACRO OUTPUT:
Iteration1
| Name | id | course1 | course3 |
| Kim | 2344 | 12 | 34 |
Iteration2
| Name | id | course2 | course3 |
| Mia | 3445 | 23 | 44 |
Iteration3
After each iteration i need to append the output to a final output structure as below
Final output
| Name | id | course1 | course2 | course3 |
| Kim | 2344 | 12 | 0 | 34 |
| Mia | 3445 | 0 | 23 | 44 |
| Joe | 3222 | 35 | 0 | 0 |