Hey all,
I am looking for any support on a workflow calculating sub totals and outputting separate excel files by country.
My input is an excel file which is supposed to be separated by country. In addition, the output excel file is supposed to contain sub totals in the last row. I hope this image illustrates my workflow I am looking for:

Approach:
1. Calculate sub totals for each country
2. Output separate excel files for each country expanded by a final row containing the sub totals
Problem:
- Calculation of sub totals works fine BUT finally it generates two separate files for each country. 1st file contains dataset (e.g. "China") and the 2nd file only contains the sub totals (e.g. "China Total").
I know that this problem arises because my title for the sub totals are called e.g. "China Total" and listed in the column "Country". So, Alteryx recognizes "China" and "China Total" as different countries and generates separate output excel files.
Actually, the files "China" and "China Total" are supposed to be in one file.
Please find my workflow and a sample file in the attachment.
I am thankful for any support!