Can someone explain how to query customDimensions in bigquery?
My query works with a simple where clause i.e.
SELECT COUNT(DISTINCT fullVisitorId)
FROM GA_SESSION
WHERE hits.customDimensions.index = 4
AND hits.customDimensions.value = 'variable1'
AND hits.page.pagePath LIKE '%something%';
However now when I try to do an aggregates, or if I try EXACT_COUNT_DISTINCT without a group by, I get an error i.e.
SELECT date, COUNT(DISTINCT fullVisitorId)
FROM GA_SESSION
WHERE hits.customDimensions.index = 4
AND hits.customDimensions.value = 'variable1'
AND hits.page.pagePath LIKE '%something%'
group by date
Error is : Query Failed Error: Cannot query the cross product of repeated fields customDimensions.index and hits.customDimensions.index.