Skip to content
Advertisement

Tag: google-bigquery

Count BigQuery event.params based on event.key

I am attempting to count the events filtering on their parameter. For example, suppose that I have the following. Here’s the real one for the inquisitive minds out there. https://i.imgur.com/rPwmR9i.png event_params.key and event_params.value is an array of values. I need to filter out anything in that array that doesn’t match my key. In addition, I need to count each occurrence

BigQuery error “Query returned no results”

Or changing the query to this: And other address like this do not pull up the address or amount: Error message: This query returned no results. Answer Just lower it 🙂 Looks like you accidentally changed your address to UPPERCASE or BQ stored it in LOWER case … anyhow if you lowercase the addresses as shown below you’ll start seeing

Calculate Time spent by users on the platform

I’m trying to calculate the time spent by users on my platform on a weekly basis. I have the following api_request_logs table (*Note: each row is duplicate) I tried this query, however, it doesn’t seems it is outputting correct calculation . Current output: Desired output : What I’m doing wrong or do you have a better idea to do it?

Advertisement