My requirement is to have Report generated similar to what Excel performs over set of data containing multiple groups in the rows as well as columns and use the 'Reporting' functionality of Alteryx to deliver the output in say PDF format.
Here is my current data set -
| State | Demography | Grade | Cost | Qty |
| Telangana | Low-income | Average | 180 | 20 |
| Telangana | High-income | Good | 150 | 15 |
| Telangana | High-income | Above Average | 140 | 90 |
| Karnataka | Mid-income | Average | 130 | 30 |
| Karnataka | High-income | Above Average | 125 | 80 |
| Karnataka | High-income | Average | 190 | 60 |
| Karnataka | Low-income | Good | 60 | 35 |
| Kerala | Low-income | Good | 90 | 75 |
| Kerala | Low-income | Average | 45 | 40 |
| Kerala | High-income | Above Average | 110 | 15 |
| Delhi | Mid-income | Good | 130 | 20 |
The output that I am looking for is similar to below -

Additionally at the end of each subgroup, I would need additional row for the subgroups say - Delhi - Total; Karnataka - Total ; Kerala - Total etc.
How can this be achieved? I did lot of searching, I could see some posts linking to getting subgroup in the top - link. However, it doesn't have the same requirement as mine. Any help would be highly appreciated.