My data is have multiple entities and I want the output to split into multiple files, one file for per each entity (if there are 10 entities then it should output10 excel files). The tricky part is, in my data transformation I have to add headers at different rows in the data, so I have used union tool, hence headers appeared as exactly as I need, now that the issue is the results for all entities are grouped under headers and I have to output the results to multiple excel files at each entity along with the headers. Please suggest if possible with workaround.
Note below input files are header files, each header is slightly different from each other.
