Ahh, that makes sense. I see now that you originally said date range:)
So instead of filtering the query, you could use case statements for the max and average for Date 1 and Date 2. For example, assume 'measure' is what you want to aggregate (min,av...
So instead of filtering the query, you could use case statements for the max and average for Date 1 and Date 2. For example, assume 'measure' is what you want to aggregate (min,av...