Hey @AmAm,
This could probably be made into a macro but this is the easies say I found of achieving this:
Here is an alternative that takes advantage of Cross Tab and Field Sort and Dynamic Rename....Almost always more than one way to solve a problem.
I apologize that I could not upload the flow, there seems to be some issue today doing that, maybe a new security policy here...
ah nice @fharper, couldn't figure out how to do that with the cross tab! Much better solution by the looks of it :D
@AmAm , I think the solution @IraWatt provided or my own would be good solutions but I see you have not flagged either. it is helpful to all if you would mark someone's contribution as a solution if it satisfies your needs and if not maybe provide more context so someone can help you further. Everyone searches the community for solutions at times and many seek to help provide solutions and that only works when the original thread owner identifies a response as a solution.