Pivot table sum of column involving before and rangesum
We have a pivot table with a date dimension along the top.
We have a row which is populated by a 1 or a 0 by comparing the sum of the service level (either a 1 or 0) to the number of working days in order to only count those working days which are 1 and where there was not a previous value of 0. We want to then find the sum of these 1s and put this in our total column.