Skip to content

Tag: aggregation

How to calculate running total (month to date) in SQL Server 2008

I’m trying to calculate a month-to-date total using SQL Server 2008. I’m trying to generate a month-to-date count at the level of activities and representatives. Here are the results I want to generate: From the following tables: ACTIVITIES_FACT table LU_TIME table I’m not sure how to do this: I keep running into problems with multiple-counting or aggregations not being allowed