{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["availability","img","partial","faq","faq-item"]},"type":"markdown","userRole":"Users, Editors, and Admins","accountType":"All accounts","plan":"Exclusive to select subscription plans"},"seo":{"title":"Integrate Google BigQuery with Databox","description":"Learn how to connect Google BigQuery to Databox and turn warehouse data into flexible datasets for advanced visualization and reporting.","siteUrl":"https://help.databox.com","llmstxt":{"title":"Databox Knowledge Base","description":"Databox is a business analytics platform that consolidates data in one place, enabling real-time performance tracking and insights by mixing and matching data from various sources for a comprehensive view.","details":{"content":"This knowledge base covers everything from account setup and integrations to building Databoards, creating custom metrics, and using AI-powered features."},"sections":[{"title":"General","includeFiles":["docs/general/*.md","docs/general/visualization-types/*.md","docs/general/templates/*.md"],"excludeFiles":[]},{"title":"AI","includeFiles":["docs/ai/*.md"],"excludeFiles":[]},{"title":"Account Management","includeFiles":["docs/account-management/**/*.md"],"excludeFiles":[]},{"title":"Databoards","includeFiles":["docs/databoards/**/*.md"],"excludeFiles":[]},{"title":"Data Management","includeFiles":["docs/data-management/**/*.md"],"excludeFiles":[]},{"title":"Metrics","includeFiles":["docs/metrics/**/*.md"],"excludeFiles":[]},{"title":"Forecasts","includeFiles":["docs/forecasts/*.md"],"excludeFiles":[]},{"title":"Goals","includeFiles":["docs/goals/*.md"],"excludeFiles":[]},{"title":"Reports","includeFiles":["docs/reports/*.md"],"excludeFiles":[]},{"title":"Notifications","includeFiles":["docs/notifications/*.md"],"excludeFiles":[]},{"title":"Pricing and Billing","includeFiles":["docs/pricing-and-billing/*.md"],"excludeFiles":[]},{"title":"Mobile","includeFiles":["docs/mobile/*.md"],"excludeFiles":[]},{"title":"Support","includeFiles":["docs/support/*.md"],"excludeFiles":[]},{"title":"Integrations","includeFiles":["docs/integrations/**/*.md"],"excludeFiles":[]}],"hide":false,"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"integrate-google-bigquery-with-databox","__idx":0},"children":["Integrate Google BigQuery with Databox"]},{"$$mdtype":"Tag","name":"Availability","attributes":{"users":"users","accounts":"all","plans":"exclusive"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Google BigQuery is a fully managed, serverless data warehouse built to analyze large volumes of structured and semi-structured data at scale. It eliminates infrastructure management by automatically handling storage, performance, and scaling, allowing teams to focus on querying and insights instead of maintenance. BigQuery supports GoogleSQL, real-time analytics, and native integrations across the Google Cloud ecosystem. It is commonly used for centralized data analysis, event tracking, product analytics, and powering business intelligence tools with fast, reliable reporting."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"connection","__idx":1},"children":["Connection"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-1-create-a-service-account","__idx":2},"children":["Step 1: Create a service account"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To allow Databox to securely access your BigQuery data, create a dedicated service account in Google Cloud."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Go to ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.cloud.google.com/iam-admin/serviceaccounts"},"children":["IAM & Admin > Service Accounts."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Create Service Account"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Service account name"]}," (e.g., “Databox Integration”)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Review the auto-generated ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Service account ID"]},". You can edit it if needed."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create and continue"]},"."]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/integrate-google-bigquery-with-databox_1.8f11a9aed24726487ed022dbc3b585397dc13193da4a938b4fe20a845ff5f1bf.4783b0ec.png","alt":"create-service-account","withLightbox":true,"className":"ss-img","style":"margin-bottom: 10px"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/book.396c710ccbe2e191209bad32639f0c66892b631c4f42365133974c893bf45fac.419bb737.svg","alt":"documentation","withLightbox":false,"style":"vertical-align: text-bottom;"},"children":[]}," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.cloud.google.com/iam/docs/service-accounts-create"},"children":["Official Documentation"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-2-grant-permissions","__idx":3},"children":["Step 2: Grant permissions"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Assign the necessary roles so the service account can read data and run queries in BigQuery."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Grant the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["BigQuery Data Viewer"]}," and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["BigQuery User"]}," roles to the new service account."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Grant access to users or groups that need to perform actions as the service account (optional)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"."]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/integrate-google-bigquery-with-databox_2.530fd840de8856fe6d1a096aac71143adc8523e767d03afeb1004d36fd0f83aa.4783b0ec.png","alt":"grant-permission","withLightbox":true,"className":"ss-img","style":"margin-bottom: 10px"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/book.396c710ccbe2e191209bad32639f0c66892b631c4f42365133974c893bf45fac.419bb737.svg","alt":"documentation","withLightbox":false,"style":"vertical-align: text-bottom;"},"children":[]}," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.cloud.google.com/iam/docs/manage-access-service-accounts"},"children":["Official Documentation"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-3-generate-credentials","__idx":4},"children":["Step 3: Generate credentials"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a JSON key file that Databox will use to authenticate the connection."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://console.cloud.google.com/iam-admin/serviceaccounts"},"children":["Service accounts"]}," page, click the service account you just created."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Go to the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Keys"]}," tab."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add key"]}," and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create new key"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Choose ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["JSON"]}," as the key type."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," to download the JSON file"]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/integrate-google-bigquery-with-databox_3.a44a1588edfc92a602e9abf687c50dfa439df139c120872a3176c1f2e0090765.4783b0ec.png","alt":"generate-credentials","withLightbox":true,"className":"ss-img","style":"margin-bottom: 10px"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Store this file securely. You will need its contents in the next step."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/book.396c710ccbe2e191209bad32639f0c66892b631c4f42365133974c893bf45fac.419bb737.svg","alt":"documentation","withLightbox":false,"style":"vertical-align: text-bottom;"},"children":[]}," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.cloud.google.com/iam/docs/keys-create-delete"},"children":["Official Documentation"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-4-enter-your-google-bigquery-connection-details-in-databox","__idx":5},"children":["Step 4: Enter your Google BigQuery connection details in Databox"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Next, add the BigQuery connection in Databox using the credentials you generated."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Name of the data source"]}," (required)  — A label used to identify the BigQuery connection in Databox."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Credential file contents"]}," (required) — The full contents of the JSON key file generated in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#step-3-generate-credentials"},"children":["Step 3"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["SQL Mode"]}," — GoogleSQL is used by default**.** Select the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use Legacy SQL"]}," checkbox only if your queries require Legacy SQL syntax."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Time zone"]}," (required) — The time zone used for interpreting and filtering data points in visualizations."]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/integrate-google-bigquery-with-databox_4.012eb8a3636fae1cb8e2e1b16807591789cca555af8b681f1a76eeaefd1de942.4783b0ec.png","alt":"enter-credentials","withLightbox":true,"className":"ss-img","style":"margin-bottom: 10px"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"datasets","__idx":6},"children":["Datasets"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Google BigQuery integration supports the creation of ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/understanding-datasets"},"children":["datasets"]},", which allow you to define and shape the specific data you want to use for reporting in Databox. Datasets make it easier to focus on the most relevant information, enabling you to filter, visualize, and analyze metrics across projects, teams, and clients without writing complex queries each time."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"steps-to-create-a-dataset","__idx":7},"children":["Steps to create a dataset:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select a dataset"]},": Choose the BigQuery dataset that contains the data you want to work with."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select a table"]},": Pick the appropriate table within that dataset."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select columns"]},": Browse and select the specific columns (fields) from your tables or views to include in your dataset. These columns define the structure and content of your dataset."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"datasets-stored-outside-the-us-region","__idx":8},"children":["Datasets stored outside the US region"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If your BigQuery data is stored outside the default ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["US region"]}," (for example, in the EU region), the dataset list may not populate in the dataset builder. This happens because Databox currently retrieves schema metadata from the US region by default."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["As a workaround, you can create your dataset using a ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#optional-write-sql"},"children":["custom query"]}," instead of selecting a dataset and table from the list. When querying your tables or views, include the appropriate ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["region qualifier"]}," in the project reference."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT catalog_name, schema_name  \nFROM `<project>.region-<region>.INFORMATION_SCHEMA.SCHEMATA`  \nORDER BY schema_name\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replace ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<project>"]}," with your Google Cloud project ID and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<region>"]}," with the region where your dataset is hosted (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eu"]},")."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"optional-write-sql","__idx":9},"children":["Optional: Write SQL"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For more advanced use cases, you can write a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["custom SQL query"]}," instead of selecting columns manually. This allows you to:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Join multiple tables"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Apply filters and aggregations"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Format or transform data before importing it into Databox"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your query must return a valid tabular result to be used as a dataset."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"additional-resources","__idx":10},"children":["Additional resources"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax"},"children":["BigQuery GoogleSQL Query Syntax"]}," — Learn how to write queries using GoogleSQL, including SELECT statements, joins, filtering, grouping, and date functions."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.cloud.google.com/bigquery/docs/reference/legacy-sql"},"children":["BigQuery Legacy SQL Syntax, Functions and Operators"]}," — Reference guide for working with older query formats and understanding available operators and built-in functions."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"resources","__idx":11},"children":["Resources"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For comprehensive details on metrics, data availability, templates, specifications, usage guidelines, and other key information, refer to the resources listed below."]},{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":4,"cardMinWidth":240},"children":[{"$$mdtype":"Tag","name":"IntegrationResources","attributes":{"integrationKey":"google-bigquery","hideMetrics":true},"children":[]}]},{"$$mdtype":"Tag","name":"Faq","attributes":{},"children":[{"$$mdtype":"Tag","name":"FaqItem","attributes":{"question":"What's new with the Google BigQuery integration in 2025?"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In 2025, we introduced ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["dataset support"]}," for Google BigQuery. You can now import raw data from your Google BigQuery account into a reusable ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/create-a-dataset"},"children":["dataset"]}," and build multiple metrics from it using the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/create-a-custom-metric"},"children":["metric builder"]},"— no need to write separate queries for each metric."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This update also removes per-query size limits. Instead, your data usage is governed by Databox's global dataset size limits, giving you more flexibility when working with larger datasets."]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[" "]},{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":4,"cardMinWidth":160},"children":[{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Ask Genie","icon":"genie","to":"https://app.databox.com/genie","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Get instant answers or help with your data using the in-app AI assistant."]}]},{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Talk to an expert","icon":"assistance","to":"https://meetings.hubspot.com/databox-meeting/account-management","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For customers: Get help with your setup, strategy, or making the most of Databox."]}]},{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Book a demo","icon":"eye-open","to":"https://meetings.hubspot.com/databox-meeting/ref-knowledge-base","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["New to Databox? See how it works and get guidance on getting started."]}]},{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Send an email","icon":"help","to":"mailto:help@databox.com","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Reach out to support for help with your account, data, or technical issues."]}]}]}]},"headings":[{"value":"Integrate Google BigQuery with Databox","id":"integrate-google-bigquery-with-databox","depth":1},{"value":"Connection","id":"connection","depth":2},{"value":"Step 1: Create a service account","id":"step-1-create-a-service-account","depth":2},{"value":"Step 2: Grant permissions","id":"step-2-grant-permissions","depth":3},{"value":"Step 3: Generate credentials","id":"step-3-generate-credentials","depth":3},{"value":"Step 4: Enter your Google BigQuery connection details in Databox","id":"step-4-enter-your-google-bigquery-connection-details-in-databox","depth":3},{"value":"Datasets","id":"datasets","depth":2},{"value":"Steps to create a dataset:","id":"steps-to-create-a-dataset","depth":3},{"value":"Datasets stored outside the US region","id":"datasets-stored-outside-the-us-region","depth":4},{"value":"Optional: Write SQL","id":"optional-write-sql","depth":3},{"value":"Additional resources","id":"additional-resources","depth":3},{"value":"Resources","id":"resources","depth":2}],"frontmatter":{"slug":"integrate-google-bigquery-with-databox","seo":{"title":"Integrate Google BigQuery with Databox","description":"Learn how to connect Google BigQuery to Databox and turn warehouse data into flexible datasets for advanced visualization and reporting."},"metadata":{"userRole":"Users, Editors, and Admins","accountType":"All accounts","plan":"Exclusive to select subscription plans"},"keywords":{"includes":["Google BigQuery integration","connect BigQuery to Databox","BigQuery service account","BigQuery JSON key file","BigQuery Data Viewer role","BigQuery credential file","BigQuery IAM permissions","BigQuery dataset Databox","BigQuery custom SQL query","GoogleSQL Legacy SQL","BigQuery EU region not showing","BigQuery region qualifier","BigQuery 2025 update","cloud data warehouse connection"]}},"lastModified":"2026-04-17T19:27:17.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/integrate-google-bigquery-with-databox","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}