I have the following query which tells me how many documents were retrieved for each customer, but it only works for the "on-demand" customers:
FROM HS_IHE_ATNA_Repository.Aggregation
WHERE EventType IN ('RecordRequest','RecordRequestBreakGlass')
AND LocalDateTime >= '2016-01-01'
AND LocalDateTime < '2017-01-01'
GROUP BY PatientFacility, LEFT(LocalDateTime,7)
All the other PatientFacility's show up as "Documents". In an effort to break those down too, I first parsed the DocumentUniqueId value from the XML contained in the Criteria colu

