Need to sum values in the column and separate into multiple columns

Have tried, couldn’t get output as above.