I have complex large size data sets comprizng many months that I arrvied at following subset with one avg. column averaging all months.
Now I want to run by country cumulative % contribution of each material in data set. something like below, (column in bold font is what I wish to achieve)
all other calculated columns are done...
done with sorting and adding running totals with row id function added. Now want to achieve Country wise total and then add Cumulative % field added to it.. Any help appreciated. Since data set is large, avg. execution time is around 30 min... so any experiment require me to wait for 30 min for each attempt... is there a way to execute part of the flow only ?
| Country | Material | Vol | Cum Total | Country Total | Cum % |
| CH | 0006 | 125 | 125 | 199 | 63% |
| CH | 0005 | 49 | 174 | 199 | 87% |
| CH | 0004 | 25 | 199 | 199 | 100% |
| CN | 0009 | 700 | 700 | 1400 | 50% |
| CN | 0008 | 500 | 1200 | 1400 | 86% |
| CN | 0007 | 200 | 1400 | 1400 | 100% |
| US | 0003 | 109 | 109 | 248 | 44% |
| US | 0002 | 89 | 198 | 248 | 80% |
| US | 0001 | 50 | 248 | 248 | 100% |