BigQuery
BigQuery is Google's fully managed, serverless data warehouse that lets you analyze massive datasets using standard SQL. With Coupler.io, you can run custom SQL queries against your BigQuery datasets and automatically push results to Google Sheets, Excel, BigQuery itself, or AI destinations like Claude and ChatGPT.
Why connect BigQuery to Coupler.io?
Automate reporting — Run scheduled queries and sync results directly to Google Sheets without manual downloads
Custom SQL queries — Write any SQL query to extract, transform, and filter exactly the data you need
Real-time insights — Keep dashboards and reports fresh with automated data flows
Multiple destinations — Send results to Google Sheets, Excel, BigQuery, Looker Studio, or AI platforms like ChatGPT and Gemini
Prerequisites
Before connecting BigQuery, you'll need:
A Google Cloud Platform (GCP) project with BigQuery enabled
A Service Account with the following roles assigned:
BigQuery Data Viewer — to read data from datasets
BigQuery Job User — to run queries
A JSON key file for your Service Account (downloaded from GCP)
Access to at least one BigQuery dataset
Quick start
How to connect
Create a new data flow. In Coupler.io, click "Create" and select BigQuery as your source.
Upload your Service Account JSON key. Click "Connect" and select your .json key file from GCP. This grants Coupler.io permission to run queries on your behalf. If you don't have a key yet, follow the GCP setup guide to create one.
Enter your SQL query. In the "SQL query" field, write a standard SQL query to fetch the data you need. For example: SELECT order_id, customer_name, order_date FROM your_dataset.orders WHERE order_date >= CURRENT_DATE()
Choose your destination. Select where you want the data to go — Google Sheets, Excel, another BigQuery table, or an AI destination like Claude or ChatGPT.
Run the data flow. Click "Run" to execute your query and send the results to your destination. A successful manual run is required before you can schedule the data flow.
Common use cases
Weekly reporting
Query sales data from the last 7 days and push to a Google Sheet for team review
Data transformation
Use SQL to aggregate metrics, join multiple tables, and clean data before exporting
Real-time dashboards
Feed filtered BigQuery results into Looker Studio or Google Sheets for live dashboards
Data backup
Export BigQuery tables to Google Sheets for archival or sharing with non-technical users
AI-powered analysis
Send query results to ChatGPT or Claude for automated insights and summaries
BigQuery data overview
With BigQuery as a source in Coupler.io, you have complete flexibility to query any data in your BigQuery datasets using standard SQL. Unlike pre-built data sources with fixed entities, BigQuery lets you write custom queries to extract exactly what you need.
How BigQuery works in Coupler.io
You provide a SQL query, and Coupler.io runs it against your BigQuery datasets and returns the results. The data structure depends entirely on your SQL — you control which tables, columns, and rows are included.
Example queries
Basic table export:
Filtered and aggregated data:
Joining multiple tables:
Common metric combinations
Here are patterns you might combine in a single query:
Sales metrics — Order count, revenue, average order value, customer acquisition cost
Inventory metrics — Stock levels by warehouse, reorder points, turnover rates
Performance metrics — Page views, conversion rates, user retention, churn rate
Financial metrics — Gross profit, COGS, margin percentage, cash flow
Use cases by role
Campaign performance reporting — Query your marketing database to pull conversion rates, cost per acquisition, and ROI by campaign. Export daily or weekly summaries to Google Sheets for stakeholder reviews.
Audience segmentation — Use SQL to segment customers by behavior, demographics, or purchase history, then sync the results to a sheet for email list management or ad audience uploads.
Attribution tracking — Join customer interactions across multiple tables (web events, email opens, social clicks) to build attribution reports that feed into Looker Studio dashboards.
Budget vs. actual reporting — Query budget data and actual spend from separate BigQuery tables, join them, and automatically export variance reports to Google Sheets each month.
Consolidated P&L statements — Aggregate revenue, COGS, and operating expenses across business units using GROUP BY, then push to a master financial sheet.
Cash flow forecasting — Pull historical payment and receivables data, calculate aging buckets with CASE statements, and export to a rolling forecast sheet.
Pipeline tracking — Query deal data by stage and rep, calculate win rates and average deal size, and sync weekly to a sheet for sales leaders.
Territory performance — Join sales rep, account, and revenue data to build territory P&L reports; export to Looker Studio for real-time visibility.
Quota vs. actual — Pull YTD sales by rep against quota targets, calculate attainment %, and automatically email summaries via ChatGPT-generated insights.
Platform-specific notes
SQL dialect — BigQuery uses standard SQL with some Google-specific functions. View the full reference.
Project and dataset references — Always include your project ID and dataset name in table references:
project_id.dataset_name.table_nameQuery limits — Large queries may take time to run. Consider using
LIMITclauses during testing and filtering by date ranges in production queries.Permissions — Your Service Account must have read access to all datasets referenced in your query. If a query fails with "Access Denied", verify the Service Account has the BigQuery Data Viewer role on that dataset.
Billing — BigQuery charges for bytes scanned. Optimize queries by selecting only needed columns and filtering early to reduce costs.
Nested data — BigQuery supports nested/repeated fields. You may need to use
UNNEST()to flatten arrays in your queries.
BigQuery common issues
Connection issues
Missing data
Permission errors
Data discrepancies
Rate limits
BigQuery FAQ
Last updated
Was this helpful?
