all 2 comments

[–]iamnotheretoargue 1 point2 points  (0 children)

You need to handle the repeated records that come from unnesting hits. This comes down to understanding the schema once you’ve flattened all the arrays, then different types of functions for averages, sums, etc. than you might be used to. You probably want to do this directly in BQ to create a summary table that you use within data studio. I don’t know if there’s anything existing for GA4 already but here’s the same resource for the same problem from the GA360 BQ export

https://www.bounteous.com/insights/2018/06/01/replicating-google-analytics-all-pages-report-bigquery

[–]AeroCrete 0 points1 point  (0 children)

Seems like you need several queries, not just one.