add support for the summary to group by both case and time