Request a demo
Use case

Use case: dbt models and a dashboard refresh on one schedule

A worked example for analytics engineers: build and test dbt models with InsightDataFlow's dbt nodes, then refresh the Tableau workbook that reads them, so the dashboard never shows half-built numbers.

November 2, 2026 · 5 min read · All articles

Dashboards break in a predictable way: the models rebuild at 05:00, the BI extract refreshes at 05:30, and one Monday the models take 40 minutes. The dashboard refreshes against half-built tables, and the first person to notice is a regional manager. The fix is not a later refresh time; it is putting the refresh after the build and the tests, in one pipeline.

Example · a made-up logistics company

Northbeam's weekly depot KPIs

Northbeam Logistics' analytics engineers (a fictional team) maintain a dbt project with a depot_kpis model family and a Tableau workbook that the depot managers open on Monday mornings. They want the models built and tested, and the workbook refreshed, in that order, every Monday at 05:00.

The pipeline

InsightDataFlow has a node per dbt stage, each with the project path, the target, threads and selectors:

  • DBT_SEED loads seed CSVs (reference data such as depots and regions) into the target database.
  • DBT_RUN builds the selected models, here depot_kpis+ (the model and everything downstream of it).
  • DBT_TEST runs the tests for the same selection, with a fail-fast option.
  • DBT_DOCS (optional) regenerates the documentation site.

There is also a single DBT node for teams that prefer one step with the full dbt feature set. After the tests, a TABLEAU node works with Tableau Server or Cloud: the workbook id and an action, here a refresh.

The Workflows list showing depot_kpis_weekly with source DB, catalog logistics, category reporting, priority P3 and a weekly Monday schedule, next to two other made-up workflows.
The weekly depot KPI workflow in the list (our test instance held a shorter draft: run and refresh only), next to the nightly and daily pipelines. All three are made up.

In the list it is category reporting, priority P3, schedule 0 5 * * 1 (Mondays at 05:00). The generated DAG has one task per node in a straight line, so the Tableau task cannot start until DBT_TEST succeeds.

Selectors are the contract. The same selector on DBT_RUN and DBT_TEST means you test what you built. If you widen one, widen the other; a refresh gated on tests that did not cover the new model is a gate in name only.

Fill in the defaults deliberately

The dbt stage nodes declare sensible-looking defaults that are easy to leave in place by accident:

ParameterDefaultWhat to set
Location namerequiredThe warehouse data location. Credentials come from the data location, not from Airflow connections.
Project pathrequiredA directory containing dbt_project.yml, present where the pipeline runs.
Database typemysqlYour warehouse's type, on every dbt node.
TargetdevThe production target, in the production deploy.
Threads (seed, run)4What your warehouse tolerates at 05:00 on a Monday.

A pipeline left on target: dev runs perfectly every week and refreshes the dashboard from development tables. The review of properties.yaml is where this gets caught, so make "which target?" a standing question in it.

What "refreshed" means

The TABLEAU node supports one action, refresh, and needs a workbook id; its Tableau data location holds the server URL, the personal access token's name and secret, and the site. The refresh call asks Tableau to start an extract refresh and returns as soon as Tableau accepts it. It does not wait for the extract to finish. So a green Tableau task means "refresh requested", and a refresh that fails inside Tableau shows up in Tableau's own job history, not in Airflow. Whoever owns the workbook should watch both for the first few Mondays.

One dbt node or four?

Stage nodes (seed, run, test, docs)Single DBT node
In AirflowOne task per stage; a failed test is visibly a test failureOne task; you read its log to see which stage failed
GatingThe refresh can depend on the test task specificallyThe refresh depends on the whole dbt step
ConfigurationProject path, target and selectors repeated on each nodeSet once, with the full dbt feature set
Best forPipelines where the order of build, test and publish is the pointTeams that already run dbt as one command and want it scheduled

For this use case the stage nodes win: the whole reason for the pipeline is that the refresh waits for the tests.

What the team gets

  • No half-built dashboards. A failed test stops the pipeline before the refresh; managers see last week's figures, not wrong ones.
  • One place to look. The order of dbt and BI steps is on one canvas and in one DAG, not split between a dbt scheduler and a BI scheduler.
  • The same review as other pipelines. A selector or schedule change is a diff in properties.yaml.
Example · the first failure

A test fails on a Monday

A new depot is added to the seed file with a region code that does not exist. DBT_TEST fails on a relationships test, the Tableau task never starts, and the on-call engineer sees exactly which task failed. The depot managers open a dashboard that is a week old but correct. An illustration on made-up data.

Questions analytics engineers ask

Can we keep our existing dbt project?

Yes. The stage nodes point at an existing project directory; InsightDataFlow does not take the project over. Your models, tests and seeds stay in your repository.

Can we test the dbt steps before deploying?

The Test tab on a stage node runs dbt debug and then the stage's own command, and returns dbt's output. It runs from the InsightDataFlow server, so the project path and the warehouse have to be reachable from there for the test to mean anything.

What if the refresh itself fails?

If Tableau rejects the request (a wrong workbook id, an expired token), the Tableau node reports a failure with Tableau's error, and the step should show as failed. Confirm that on a deliberate bad workbook id in development once. If Tableau accepts the request and the extract fails later, see above: that is in Tableau's job history.

Setting it up

  1. Register the warehouse and Tableau as data locations.
  2. Draw Start → DBT_SEED → DBT_RUN → DBT_TEST → TABLEAU → End, and set the same project path and target on the dbt nodes.
  3. Use the same selector on run and test; turn on fail-fast for the tests.
  4. Set the workbook id and the refresh action on the Tableau node.
  5. Generate, read the properties file, deploy to development, trigger once, then deploy to production.

Next: a practical guide to moving hand-written DAGs into the designer.

Draw one of your pipelines with us

Bring a pipeline you run today, hand-written or scheduled somewhere else. We will draw it in the designer, generate the DAG and walk through deploying it to your Airflow.

Request a demo