When attempting to run the query below in the query editor, receive this error: "SELECT list expression references h.eventinfo.eventlabel which is neither grouped nor aggregated at [5:3]." Attempting to get a count of 'fullvisitorid' who performed the event actions listed in the where clause, but have yet to get this query running.
SELECT
'iOS' as app_source,
h.eventInfo.eventCategory,
h.eventinfo.eventaction,
h.eventinfo.eventlabel,
COUNT(1) events,
COUNT(DISTINCT CONCAT(fullvisitorid, CAST(visitstarttime AS string))) uniqueEvents
FROM
`xxxxxxxx-xxxx.xxxxxxxx.ga_sessions_*` t,
UNNEST(hits) h
WHERE
h.type='EVENT'
and (h.eventInfo.eventCategory = 'Live' and h.eventInfo.eventLabel = 'Team Chat')
or (h.eventInfo.eventCategory = 'Messages' and h.eventInfo.eventLabel = 'Direct Message')
and date >= "20190801"
GROUP BY
1,2,3
ORDER BY
events DESC