Creates pivot table with position and data source
Removed set source and reference for pivot table
fix merge conflict