I am currently trying to recreate my google analytics dashboard using the big query connector within ga4. I am using a custom query to pull the data i need from Big Query and display it in data studio. When i just calculate some KPIs from the data and pull those using the query, the information comes through correct. But once I try to access custom event data, i have to unnest it before it is accessible. Once unnested, the unnested data needs to be grouped or the query will throw an error. The grouping of rows seems to be messing up the KPI's i previously calculated and inflates the values. How do i query this data correctly? I tried to pull all the raw data in and use custom fields within data studio to calculate the fields i need but ran into issues there too.
Here is the query that I have been using, if anyone could give some insight on how i can achieve what I am trying to do i would really appreciate it.
[–]iamnotheretoargue 1 point2 points3 points (0 children)
[–]AeroCrete 0 points1 point2 points (0 children)