I've a dataset that is variable in size. I want to loop through it and have an output unioned on one excel sheet.
The dataset may vary between 17-204 "groups" each is uniquely identited as I assign a recordID. (I first group them using summarize tool)
Each group also has a variable number of rows (between 9-14) but that isn't an issue as I created a macro that is able to process this and create a desired output.
My problem is that currently I can only do this for 1 "group". I looked at batch and iterative macros but I'm not able to come up with a solution.
What I want to do is to loop through first group, apply my macro, then loop through second group apply macro again and union the results. Continue this process until the last group.
My thoughts were around for loop as I can easily specify the limit of iteration (count records of groups) but I struggle to develop a solution.
If any more info is required, please let me know. I appreciate any help
I attached a sample workflow. At that stage I would like to apply my macro to run through #1 group, then loop through and run through #2 group and union the results with those from the first group and finally run the macro on #3 group and union those results with the previous two to create a final output.
Thanks