I have a table like this:
| List | Apple red | Apple yellow | Banana red | Banana yellow |
| a | 1 | 11 | 21 | 31 |
| b | 2 | 12 | 22 | 32 |
| c | 3 | 13 | 23 | 33 |
I would like to stack the data with multiple series (here is apple and banana), but only want 1 label for all series (here is red and yellow). I also want to keep the left of the title (here is apple and banana). The output is like:
| List | Apple | Banana | group |
| a | 1 | 21 | red |
| a | 11 | 31 | yellow |
| b | 2 | 22 | red |
| b | 12 | 32 | yellow |
| c | 3 | 23 | red |
| c | 13 | 33 | yellow |
I tried stack function but I think this needs some special script. Thank you so much!