Hi KV Thanks for this. It's wasn't quite what I needed but got me on the right path to working it out. This is how I changed it and it appears to be working how I need with my original data. index=searchdata domain="*edublogs*" | eval distinctCenters=Case(Like(domain,"edublogs%"), centre) | eval distinctUserids=Case(Like(domain,"edublogs%"), userid) | eventstats dc(distinctCenters) as distinctCenters, dc(distinctUserids) as distinctUserids by domain | stats count, sum(bytes) AS totalBytes by domain, distinctCenters, distinctUserids | table domain totalBytes, distinctCenters, distinctUserids deton0
... View more