Thanks @georgecollier

We create a record every hour with the cumulative totals throughout the day. We use this to provide more granular analytics data for clients and already receive some of the data from Meta as cumulative totals.

Thinking further on this, a not-so-elegant workaround is to create another Data Type, sales_data_totals, and create a single record for each day with the totals. This will negate the need to use a Group By, and we can just run SUM / AVERAGE on the date range.

Again, I appreciate the insights and help as we work through options.

-T