How can I add a virtual aggregate function to count based on the timestamp of the record? I tried Count(Case when Date between DateAdd(day,-7,GetDate()) and GetDate() then 1 else 0 end) and it aggregates, but it duplicates the total in the Total aggregate field without date restrictions.
↧