The table I'm working in has 4 columns that I am worried about: Program, direct, df_date and class.
What I need to do is a sum of direct with a group_by program and df_date where class = 'AC'. Simple enough. However, the values I need to pull for the sum need to be a sum of all items on that date and all previous dates.
So sum(direct at Date1) = sum(direct at Date 1)
sum(direct at Date2) = sum(direct at Date 2) + sum(direct at Date 1)
etc.
Any tips would be very helpful.
John
What I need to do is a sum of direct with a group_by program and df_date where class = 'AC'. Simple enough. However, the values I need to pull for the sum need to be a sum of all items on that date and all previous dates.
So sum(direct at Date1) = sum(direct at Date 1)
sum(direct at Date2) = sum(direct at Date 2) + sum(direct at Date 1)
etc.
Any tips would be very helpful.
John