Data Table Manipulation

Hi Guys,
I have a data table structure as below

i want to manipulate it and change the structure to as below

Please help me to get the appropriate output.
DataTable_Manipulation.xlsx (11.8 KB)

I have solved my issue by looping through the data table and moving the data to the new DT.