Hi.
I have a scenario for which I have been thinking from a lot time but couldn't figure out how it can be done.
My input looks like
| col1 | col2 | col3 | col4 | col5 |
| a | | | 1 | 2 |
| b | 3 | 4 | | |
| c | | | | |
| d | 5 | 6 | 7 | 8 |
My output should look like
I can figure out a way where either of col2, col3 or col4 col5 are populated, i can use if else to get output. I am not understanding the scenario of splitting col1 where all col2,3,4,5 are populated so I have to split them in 2 different rows. Here, col2 and col3 and one set like cost and quantity for one scenario and col4 and col5 are cost and quantity of different scenario so theyll have values together or will be 0 together. Is there a way to generate the rows completely and split these 2 different scenarios?