How to create pivot table and drag the fields in the boxes

hii,

existing activity…if possible code too