preparation of the pivot table for Excel