With Pivot Tables I will show you a cool trick on using what we call as flags. For example, we have a defect flag that marks if on that day we had a defect, then we can immediately summarize that data using Pivot Tables.
Our main methodology will be using the Product in Pivot Table. What this does is it will multiply all the values together.
Here is our data set. Notice that I have added a Defects column. If there is a defect that day, we simply mark it as 1. This will be crucial once we use the Product function later.
STEP 1: This is our Pivot Table setup. Drag Defects to the Values area:
STEP 2: It will default as Sum of DEFECTS. Click on the arrow and select Value Field Settings
Select Product and click OK.
STEP 3: Now what Excel has done is for that specific duration, it has multiplied all the Defect values. So if any row for that specific duration has a 1, then the result in this Pivot Table is a 1 as well.
We love the ones that show zero because that means there are no defects! For example, would be for Bottles during the month of September 2014. Double click on it to see more details!
You can see that in the data breakdown for September 2014, there are no defects! This is why the Product result is 0.
Now try double-clicking on Ice Cubes during the month of March 2013:
You can see it has defects, so which is why the Product result when you multiply them together is 1.
Make sure to download our FREE PDF on the 333 Excel keyboard Shortcuts here: