Hi
I am looking to add additional rows that show the sum amount by shortnames.
Input (file attached)

For each shortname that shares the same Code, I would like to add an additional row right below to show the sum amount of Volume and Amount.
From there, I would like the workflow to be able to generate separate output files based on shortnames following the format below:
Output file 1:

Output file 2:

Any help is much appreciated!