Hi, can someone please help me: I have no idea to realize it.
I want to have a new generated row and a re-clustering (gategory) for the following case
start point:
id company currency amount running sum category
1 A GBP -500 -500 A
2 B GBP 600 100 A
possible results;
id company currency amount running sum category
1 A GBP -500 -500 B (former A)
2a B GBP 500 0 B (new generated)
2 b B GBP 100 100 A
id company currency amount running sum category
1 A GBP -20 -20 A
2 B GBP 50 30 A
3 C GBP 150 180 A
id company currency amount running sum category
1 A GBP -20 -20 B
2a B GBP 20 0 B
2b B GBP 30 30 A
3 C GBP 150 180 A
Categories can be allocated later like for column "category": rename to B if you find running sum 0 and if so then row -1 will be cagtegory B as well. But how to handle this?
Thank you very much for any ideas !!