I have a input file like below format and need to convert Lvl column(values 0,1,2) to columns AV,SA,Component and [part no] having Ref as a value , as shown in output.