Pivot table replication and automation