Tableau

Tableau reads from the warehouse Weld syncs into, through a live connection or an extract. This guide shows where Weld puts your data, how to give Tableau read-only access, and how to connect it to BigQuery or Snowflake.

Before you start

  • Your workspace must use your own warehouse. Weld managed BigQuery can't be connected to BI tools, so migrate to your own BigQuery first.
  • Build the tables your reports need as data models in Weld, and point Tableau at those rather than at raw synced tables. Models keep the joins and business logic in one place.

Where your data is

BigQuerySnowflake
Synced tables<destination schema>.<table>, for example hubspot.contactsWELD_LANDING.<destination schema>.<table>
Models<folder>.<model>, for example analytics.customer_growthWELD_MODELS.<folder>.<model>

Click a data source on the Data Sources page to see its Destination schema (1): the BigQuery dataset or Snowflake schema its tables land in. You chose it as the Destination schema name when you added the data source.

  • A model in a subfolder becomes <folder>.<subfolder>__<model>. For a model published as a view, the Schedule tab shows the exact name as Warehouse reference. See Transformation scheduling.
  • WELD_LANDING and WELD_MODELS are the default Snowflake database names. Use your own if you changed them when you set up the warehouse.
  • Every synced table has a _weld_synced column with the time Weld last wrote the row. See Weld managed fields.

Create read-only access

Give Tableau its own identity with read access only. Don't reuse the service account or user Weld syncs with: Weld's needs write access, and sharing it makes it hard to tell Weld's queries from your reports'.

BigQuery

In the Google Cloud console, open IAM & Admin > Service Accounts and create a service account for Tableau. Give it these roles on the project Weld syncs into:

  • BigQuery Data Viewer, to read tables and views.
  • BigQuery Job User, to run queries.

Then open the service account's Keys tab, click Add key > Create new key, choose JSON and keep the downloaded file for the connection below.

To limit access to some datasets, grant BigQuery Data Viewer on those datasets instead of the project. Include every dataset a model reads from if the model is published as a view, because BigQuery checks access to the tables behind a view.

Snowflake

Run this as a user with the SECURITYADMIN role, replacing COMPUTE_WH with your warehouse:

create role if not exists BI_READER;
grant usage on warehouse COMPUTE_WH to role BI_READER;

grant usage on database WELD_MODELS to role BI_READER;
grant usage on all schemas in database WELD_MODELS to role BI_READER;
grant usage on future schemas in database WELD_MODELS to role BI_READER;
grant select on all tables in database WELD_MODELS to role BI_READER;
grant select on future tables in database WELD_MODELS to role BI_READER;
grant select on all views in database WELD_MODELS to role BI_READER;
grant select on future views in database WELD_MODELS to role BI_READER;

create user if not exists BI_USER default_role = BI_READER default_warehouse = COMPUTE_WH;
grant role BI_READER to user BI_USER;

Then give BI_USER a sign-in method Tableau supports. Repeat the database grants for WELD_LANDING if reports also need the synced tables.

Connect Tableau to BigQuery

  1. In Tableau Desktop, under Connect > To a Server, choose Google BigQuery.
  2. Sign in with a Google account that has the read-only roles, or choose to sign in with the service account's JSON file.
  3. Choose the project Weld syncs into, then a dataset. For a model, the dataset is the model's folder.
  4. Drag the tables you need onto the canvas.

To use a service account on Tableau Cloud or Tableau Server, create the connection in Tableau Desktop and publish it.

See Tableau's Google BigQuery guide for all options.

Connect Tableau to Snowflake

Tableau needs the Snowflake ODBC driver. If it's missing, the connection dialog links to the driver download.

  1. In Tableau Desktop, under Connect > To a Server, choose Snowflake.
  2. Enter your account as the server, <account_identifier>.snowflakecomputing.com, and BI_READER as the role.
  3. Sign in as BI_USER.
  4. Choose your warehouse, database WELD_MODELS and a schema, which is the model's folder. Drag the tables you need onto the canvas.

Weld creates Snowflake names in lower case unless you turned on Create tables and columns in upper case, so quote them in SQL: select "id" from "analytics"."customer_growth". See identifier casing. This matters in custom SQL.

See Tableau's Snowflake guide for the authentication options.

Keep dashboards fresh

A dashboard is only as fresh as the slowest of three schedules:

  1. How often the data source syncs in Weld.
  2. How often a model published as a table is rebuilt. Views always read the latest synced data. See Transformation scheduling.
  3. Tableau's extract. A live connection reads the warehouse each time. An extract is only as new as its last refresh.

To refresh models straight after their sources sync, run them together in an orchestration.

Schedule extract refreshes on Tableau Cloud or Tableau Server for after Weld's syncs and models usually finish. On BigQuery, live connections query the warehouse for every view, so publish the models behind busy dashboards as tables.

Troubleshooting

SymptomWhat to check
A dataset or schema isn't listedThe account or role needs read access on it.
Numbers lag behind WeldCheck the three schedules above, then when the extract last refreshed.
A model is missingA model only exists in the warehouse once it's published in Weld. Check its name under Where your data is.
"Access denied" on a view that works in WeldOn BigQuery, the view reads from a dataset Tableau can't see. Grant access to that dataset too.
Snowflake says the table doesn't existWeld's names are lower case unless you turned on upper case. Quote them, and check the database and schema.

Was this page helpful?