I am looking for an option in Google sheets where I can automate pivot/ transpose the values in columns to rows. something similar to power pivot in excel.
I have shared a sample and my requirement in the below google sheet link.
Appreciate your help here.


Here's another solution: