Conversion of column values to column name

Hi @lucky7

Input:

Output:

Check the below workflow:
Sequence6.xaml (8.5 KB)

Hope it helps!!