How to build a pivot table to find the story in data