I have a dataset like this:
| project id | phase 1 | phase 2 | phase 3 |
|---|---|---|---|
| 112 | 29 | 157 | 213 |
| 113 | 36 | 121 | 23 |
how can I get it transformed to a dataset like this:
| project id | phase | days |
|---|---|---|
| 112 | 1 | 29 |
| 112 | 2 | 157 |
| 112 | 3 | 213 |
| 112 | cumulative | 399 |
| 113 | 1 | 36 |
| 113 | 2 | 121 |
| 113 | 3 | 23 |
| 113 | cumulative | 180 |
thanks!