1. How to output running sums counts of multiple types with additional criterion on a separate column

    How to output running sums counts of multiple types with additional criterion on a separate column