Use Tableau's Google BigQuery (JDBC) connector, enter the Billing Project ID before you sign in, and keep a live connection with a date filter on every sheet. The JDBC connector runs standard SQL only, which suits the table etlmcp writes: it is partitioned by day on date, so a filter on that column limits how much data each query reads. If you sign in with a service account and plan to publish, save that account's credentials on Tableau Server or Tableau Cloud first, or the publish fails. The BigQuery destination is coming: this page describes the table it writes when the destination is available, and the Tableau side, which you can prepare now.
Pick the JDBC connector
Tableau lists two BigQuery connectors. The current one, Google BigQuery (JDBC), uses the Simba JDBC driver and supports standard SQL only. The legacy connector talks to the REST API and reads both legacy and standard SQL. A workbook cannot mix the two SQL dialects, and Tableau notes that standard SQL is what brings level of detail expressions and billing project selection.
Set the billing project
Every BigQuery query is billed to a project, and the JDBC connector asks for its ID as the Billing Project ID before you connect. Use a project where the account you sign in with can run jobs. It does not have to be the project that holds the etlmcp dataset: after sign-in you pick the Project, Dataset and Table on the data source page.
Two advanced options matter here:
- Enumerate All Projects is on by default and fills the Project list. If you clear it to go straight to one project, you must type that project's ID; an empty one makes the connection fail.
- Enable Storage API reads results through the BigQuery Storage Read API, which is faster on large results but has its own pricing and needs the
roles/bigquery.readSessionUserrole. It is off by default. Tableau advises against turning it on together with Enable Large Result Dataset.
Sign in and publish
Tableau accepts two sign-ins:
- OAuth. Sign in with your Google account in the browser, accept access, and close the browser window.
- Service account. Choose the account's JSON key file. Create service-account connections in Tableau Desktop.
Before you publish a workbook or data source that uses a service account, sign in to Tableau Server or Tableau Cloud and save the service account's credentials in your account settings. Skip that and the publish ends with an invalid-credentials error. The same holds for Tableau Prep flows: the credentials in a flow's Input step must match the ones saved on the server.
Web authoring has one more limit: a workbook edited or published on the web cannot use more than one BigQuery account. Tableau Desktop can. If one workbook joins the etlmcp table with data that only another Google account can see, build it in Desktop or give one account access to both.
Live connection, not extract
Tableau recommends a live connection for BigQuery. When the destination is available, a live connection shows each etlmcp run as soon as it finishes. Each run will delete its own pipeline's rows for the run's dates and insert the new ones in one BigQuery transaction, so a dashboard that refreshes mid-run sees either the old rows or the new ones, never a mix. A run that fails partway will leave the table as it was.
A live connection costs the bytes each query scans, and BigQuery does not count pruned partitions. Put a relative date filter on date in each data source or as a context filter. In custom SQL, compare date with constants and keep the column alone on its side: wrapping it in some functions, such as FORMAT_DATE, stops BigQuery from pruning.
Partition filters
A BigQuery table can be set to require a partition filter. On such a table, Tableau's queries fail unless every one filters on the partitioning column, and the error says the table cannot be queried without a filter usable for partition elimination. The rule reaches views built on the table too.
When the destination is available, etlmcp will create its table partitioned by day on date and clustered on _etlmcp_pipeline_id, without turning on the partition filter requirement. Queries without a date filter will run, but they scan every day you have. If your team turns the requirement on afterwards, add a date filter to every data source and custom SQL query first.
The table Tableau sees
When the destination is available, etlmcp creates the table itself, with these types:
| Columns | BigQuery type | In Tableau |
|---|---|---|
date |
DATE |
a date dimension with no time |
impressions, clicks, cost, conversions, conversion_value, ctr, cpc, cpm, cpa |
FLOAT64 |
measures |
network, account_id, account_name, campaign_id, campaign_name, adgroup_id, adgroup_name, ad_id, ad_name, currency |
STRING |
dimensions; keep IDs as strings |
_etlmcp_pipeline_id |
STRING |
the pipeline that wrote the row |
Extra fields from a connector arrive as columns whose names start with extra_, because BigQuery names allow only letters, digits and underscores: extra.utm source becomes extra_utm_source. They are FLOAT64 when etlmcp knows the field holds numbers (a platform's catalogued metric fields), and strings otherwise; the type is set once, when the column is created.
One table can hold rows from several pipelines. Filter on _etlmcp_pipeline_id, or use custom SQL that does it and filters the dates:
SELECT date, network, account_id, campaign_id, campaign_name,
impressions, clicks, cost, conversions, conversion_value, currency
FROM `your-project.your_dataset.your_table`
WHERE _etlmcp_pipeline_id = 'your-pipeline-id'
AND date >= DATE_SUB(CURRENT_DATE(), INTERVAL 180 DAY)
Rows from different ad accounts can carry different currencies in currency. Keep that column in every view that sums cost, or filter to one currency. The destinations overview shows which destinations work today.