Posts

Showing posts with the label google-bigquery

Connecting Column Based Time Partitioned BigQuery Table In Data Studio

Image
Clash Royale CLAN TAG #URR8PPP Connecting Column Based Time Partitioned BigQuery Table In Data Studio We have a real-time streaming column based time partitioned table in the big-query (with no _partitiontime pseudo-column) from which we wanted to build reports using Google data studio. _partitiontime When selecting the time-partitioned tables in the big query connector, it shows the following: When Use _PARTITIONTIME as time dimension is not checked: Use _PARTITIONTIME as time dimension The time-based query generated by data studio does a full-scan on big query table increasing our query costs. The same query auto-generated from data studio but using partitioning field manually in the WebUI as follows: In the big query data connector, when Use _PARTITIONTIME as time dimension is checked Use _PARTITIONTIME as time dimension It returns the following error for building charts: As of now, the reports are built using custom queries & views for limited timeframes. I understand the da...

Referencing null in Google BigQuery

Image
Clash Royale CLAN TAG #URR8PPP Referencing null in Google BigQuery I'm not sure how to reference the null value I'm seeing below. I believe this null value was generated as a result of a LEFT JOIN but now I want to replace this String and have no way of referencing it 1 Answer 1 to reference this NULL value in mobile_type field you can use WHERE mobile_type IS NULL or if this is result of LEFT JOIN - you can modify your respective SELECT - instead of something like SELECT mobile_type - you can use SELECT IFNULL(mobile_type, 'none') (for standard sql) SELECT mobile_type SELECT IFNULL(mobile_type, 'none') By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Firebase Highly Active Users With Purchase Count

Image
Clash Royale CLAN TAG #URR8PPP Firebase Highly Active Users With Purchase Count Question: I found this example, which allows me to get all the user_ids, but with a very filtered approach. I then did a self-join just to supplement these Highly Active Users with their purchases (without success so far). Perhaps there is an easier approach, but my idea is to not only add a purchase-column, but also other conversion-events later: i.e. session_start, user_login, download_video, etc. Any contributions are much appreciated! #STANDARD_SQL SELECT DISTINCT T.user_id, T.event_params.key, SUM(T.event_params.value.int_value), COUNT(Z.event_name) FROM `bigquery-table.analytics_xxxx.events_*` AS T, T.event_params LEFT JOIN `bigquery-table.analytics_xxxx.events_*` AS Z, Z.event_params ON T.user_pseudo_id = Z.user_pseudo_id WHERE T.event_name = 'user_engagement' AND Z.event_name = 'in_app_purchase...

Google Cloud: matrix multiplication with Bigquery or some other service?

Image
Clash Royale CLAN TAG #URR8PPP Google Cloud: matrix multiplication with Bigquery or some other service? I am using Google Analytics and processing the data with Bigquery, I need to do a matrix multiplication. What is the most feasible way of implementing matrix multiplication in Google Cloud? Can it be done directly in Bigquery? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.