Power BI Dataflows (Public Preview)

Overview

Power BI dataflows are reusable, cloud-hosted Power Query (M) transformations that run on a schedule to prepare data, which reports and semantic models then build on. Monte Carlo can ingest your dataflows so you can monitor them and see a dataflow's refresh history, whether its last refresh succeeded, get alerted when a refresh fails, and most importantly trace lineage through the dataflow so a report's dependency on an upstream warehouse table is seen.

The Dataflows integration is layered onto your existing Monte Carlo Power BI connection, reusing the same service principal and credentials end-to-end. No new connection or credentials are required, you enable dataflow collection on the Power BI integration you already have.

The same integration can also collect semantic model refreshes as jobs. This is in private preview: see Semantic model refreshes (Private Preview).

Feature Support

CategoryCapabilitySupport
RunsRefresh (run) history✅
RunsRefresh failure alerts✅
RunsWebhook-triggered (near–real-time) failure collection✅
LineageTable → table (Gen2 with a data destination)✅
LineageTable → semantic model → report (dataflow as a source)✅
LineageColumn-level lineage❌

Dataflow generations

Power BI has three flavors of dataflow, and Monte Carlo discovers them from two different APIs:

GenerationWhere it livesHow Monte Carlo discovers itOutput / data destination
Gen1Power BI (legacy)Power BI admin APIPower BI–managed storage (CDM in Azure Data Lake). No configurable warehouse destination — consumed by semantic models.
Gen2 (standard)Power BI / PremiumPower BI admin APIOptional data destinations — Fabric Lakehouse/Warehouse, Azure SQL, Azure Data Explorer, and more.
Gen2 (CI/CD)Microsoft Fabric (Git-integrated)Fabric APISame Gen2 data destinations as above.

A few things worth knowing:

  • Gen1 and standard Gen2 are collected together via the Power BI admin API; CI/CD Gen2 is collected via the Fabric API.
  • Gen2 dataflows can write to a data destination (a Lakehouse, Warehouse, Azure SQL table, etc.); Gen1 dataflows cannot — they persist to Power BI's internal storage and are consumed by semantic models. This difference is what drives the two lineage shapes below.
  • If a service principal can't reach the Fabric API (for example, the Fabric tenant setting below is off), Monte Carlo still collects Gen1 and standard-Gen2 dataflows from the Power BI admin API — you simply won't get CI/CD Gen2 dataflows until Fabric access is granted.

What Monte Carlo Ingests

Dataflows

Each dataflow is collected as one asset. For each, Monte Carlo captures:

  • Definition — the dataflow's Power Query (M) document and query metadata, used to derive lineage
  • Transformation queries — the named queries the dataflow runs (destination-helper queries are excluded)
  • Workspace — the Power BI workspace / Fabric workspace the dataflow belongs to

Refresh runs

Monte Carlo collects the dataflow's refresh (transaction) history: status (success, failed, cancelled, in progress, queued, skipped), start and completion times, and how the refresh was triggered (schedule, manual, or API).

Lineage

A dataflow sits between your source tables and the Power BI assets that consume it. Monte Carlo resolves lineage in two shapes, depending on how the dataflow is used:

1. Table → Table (Gen2 with a data destination)

When a Gen2 dataflow writes to a data destination that Monte Carlo already monitors (for example a Snowflake, BigQuery, Databricks, or Redshift table), Monte Carlo derives a source table → destination table edge and attributes it to the dataflow, so you can see the dataflow was the job that produced the destination table.

2. Table → semantic model → report (dataflow as a source)

When a dataflow (Gen1, or Gen2 without a monitored warehouse destination) is used as the source of a semantic model that in turn feeds a report, Monte Carlo folds the dataflow's resolved source tables into the semantic model's upstream tables, completing the chain source table → semantic model → report. This is what lets you trace a Power BI report all the way back to the warehouse table behind a Gen1 dataflow.

Key points for both shapes:

  • A referenced table must be monitored by Monte Carlo for the edge to land on it.
  • Table-level only. Column-level lineage is not produced.
  • Lineage can take up to 24 hours to appear due to batching.

Prerequisites

  • An existing Monte Carlo Power BI connection (see Power BI). Dataflow collection reuses that connection's service principal — you do not create a new one.
  • The service principal permissions below.

Required permissions

Dataflow collection uses read-only APIs only. The service principal needs no additional Azure AD API permissions beyond what your Power BI connection already uses — access is governed by tenant settings and workspace membership, not by admin-consent API permissions.

For Gen1 and standard Gen2 (Power BI admin API) — already satisfied by your existing Power BI connection:

  • The service principal must be in the security group enabled for "Allow service principals to use read-only Power BI admin APIs" in the Power BI/Fabric admin portal. This is the same setting your Power BI report collection already requires, and it covers dataflow discovery, definitions, and refresh history.

Additionally, for CI/CD Gen2 (Fabric API):

  • Enable the "Service principals can call Fabric public APIs" tenant setting (Fabric admin portal → Developer settings), scoped to the same security group.
  • The service principal needs access to the Fabric workspaces containing the dataflows — the same workspace membership you already grant it for report collection.

Setup

You enable Dataflows collection on your existing Power BI integration — it reuses the same connection and credentials.

Go to Integrations → Add → Orchestration → Power BI Dataflows, choose your existing Power BI integration, and confirm. Once enabled, Monte Carlo begins collecting dataflows and their refresh history on the regular collection schedule.

Real-Time Refresh Failure Alerts (Power Automate)

By default Monte Carlo collects refresh history on a polling schedule. If you want a failed refresh to surface in Monte Carlo within seconds to minutes instead of on the next collection cycle, you can have Power BI notify Monte Carlo the moment a refresh fails, using a Power Automate flow that calls Monte Carlo's collection webhook.

You create one flow per dataflow you want to monitor in near real time.

🚧

Power Automate Premium is required

The flow's HTTP action is a premium Power Automate connector, so the flow owner needs a Power Automate Premium (per-user or per-flow) license. If you don't have Premium, dataflow refresh failures still surface through Monte Carlo's regular polling — you just don't get the near–real-time path.

1. Get your Monte Carlo webhook URL and integration token

On the Power BI Dataflows setup page in Monte Carlo, copy your unique webhook URL and generate an integration key. Save the key's ID and secret — the flow sends them as the x-mcd-id and x-mcd-token headers.

2. Create the Power Automate flow

Create an automated cloud flow with the following:

Trigger — "When a dataflow refresh completes" (Power BI connector). Set its parameters to the group (workspace) and the dataflow you want to monitor.

Only run on failures. On the trigger, open Settings → Trigger conditions and add:

@equals(triggerOutputs()?['body/status'], 'Failed')

This makes the flow fire only when that dataflow's refresh fails, so you're not calling the webhook on every successful refresh.

Action — "HTTP" (premium). Configure it as:

FieldValue
MethodPOST
URIyour Monte Carlo webhook URL, with this appended: ?job_source_id=@{slice(triggerOutputs()?['body/dataflowId'],0,36)}
Headersx-mcd-id: your integration key ID · x-mcd-token: your integration key secret
Body(empty)

The slice(...,0,36) trims the trigger's dataflowId to the 36-character dataflow GUID, which is exactly the job_source_id Monte Carlo uses to identify the dataflow. On failure, the webhook triggers an on-demand collection of that dataflow's latest refresh, and Monte Carlo raises the alert.

3. Save and turn the flow on

Save the flow and make sure it is enabled (turned on) — a saved-but-off flow won't send anything. Repeat for each dataflow you want covered in near real time.

Semantic model refreshes (Private Preview)

📘

Private preview

Semantic model refresh collection is in private preview. Monte Carlo turns it on for your account on request. Contact your Monte Carlo representative to ask for it.

Monte Carlo can collect the refreshes of your Power BI semantic models as jobs, alongside your dataflows. Each semantic model that Power BI can refresh (Import or composite) becomes a job, and each of its refreshes becomes a run. DirectQuery and live-connection models have no refreshes, so they aren't collected. Models in personal workspaces (My workspace) aren't collected by default.

Semantic models use the same Power BI Dataflows integration, connection and service principal as your dataflows. There is nothing new to set up in Monte Carlo.

Requirements

  • Power BI Dataflows enabled on your Power BI integration. See Setup.
  • The service principal permissions your Power BI connection already uses. Monte Carlo reads refreshes with the read-only Power BI admin APIs, covered by "Allow service principals to use read-only Power BI admin APIs", and with the workspace refresh history API. See Power BI - Credential Creation Process.
  • A Fabric or Premium capacity, or a workspace role, for runs. Which runs Monte Carlo collects for a model depends on where its workspace runs and on the service principal's role in that workspace:
Model's workspaceService principal's role in the workspaceRuns collected
AnyContributor, Member or AdminEvery refresh in the model's Power BI refresh history (Power BI returns up to the 60 most recent refreshes). Large tenants may get less: see Large tenants
On a Fabric or Premium capacityViewer, or not added to the workspaceThe model's latest refresh, checked every hour
Shared capacity (Pro)Viewer, or not added to the workspaceNone. The model appears as a job without runs

Power BI only returns a model's refresh history to callers with write permission on the model, so reading it needs the Contributor role or higher. Contributor is a write role in Power BI, but Monte Carlo only calls read APIs. To get every refresh for models on a capacity, or any runs for models in Pro workspaces, add the service principal to those workspaces as a Contributor.

Large tenants

Reading every model's refresh history every hour can run into Power BI's API rate limits on a tenant with many semantic models. For large tenants, Monte Carlo may turn off full refresh history reading to avoid throttling. Ask your Monte Carlo representative whether it's off for your account. When it's off:

  • Models on a Fabric or Premium capacity get their latest refresh every hour, and no earlier refreshes unless targeted history reads are turned on.
  • Targeted history reads can be turned on. Monte Carlo can turn on targeted history reads for your account. Each hour, these read the refresh history of a limited number of capacity models: models whose count of failed refreshes went up since the last collection, then models whose latest refresh is still queued or in progress. This collects failures and refreshes that the latest refresh alone would miss. It only works for models in workspaces where the service principal is a Contributor or higher. Ask your Monte Carlo representative to turn it on.
  • Models in Pro workspaces appear as jobs without runs, even when the service principal is a Contributor.

What you see

  • Jobs and runs. Each semantic model is listed as a job with the type Power BI Semantic Models. Each run shows its status, its start and end times, and whether it was started by a schedule, manually, or through the API.
  • Why a refresh failed. A failed run shows Power BI's error code and error description, when Power BI returns them.
  • Alerts through job monitors. A job monitor on your Power BI Dataflows integration covers both dataflows and semantic models. All jobs in the integration includes semantic models, including models added later. A failed refresh raises an alert titled Power BI Semantic Model Refresh failure: <model name>. Dataflow failures keep their own titles.
  • Lineage. When a semantic model feeds a report, its refresh job appears on the lineage edge from the semantic model to the report. Lineage can take up to 24 hours to appear.

Limitations

  • Alerts can arrive up to an hour after the failure. Semantic model refreshes are collected every hour, so a failed refresh is picked up on the next hourly collection. The Power Automate flow above starts from a dataflow refresh, so it doesn't cover semantic models.
  • Only the latest refresh, without a workspace role. For a model on a Fabric or Premium capacity whose workspace the service principal isn't a Contributor of, Power BI's admin API returns only the model's latest refresh. If a model refreshes more than once between two hourly collections, only the latest refresh is collected, and the earlier ones, failures included, are missed. Only finished refreshes are collected, so a refresh that is replaced by a newer one before it finishes isn't collected. Adding the service principal to the workspace as a Contributor avoids this when Monte Carlo reads full refresh history. On large tenants where full history reading is off, a Contributor role only reduces it if targeted history reads are turned on for your account. See Large tenants.
  • No runs for models in Pro workspaces without a workspace role. These models appear as jobs without runs, so they never alert. Add the service principal to the workspace as a Contributor to collect their runs. On large tenants where full refresh history reading is off, Pro workspace models have no runs even with the Contributor role.

FAQs

Q: My dataflows appear, but I don't see lineage.

  • The source or destination table isn't monitored by Monte Carlo or we are having trouble parsing the Power Query (M) definition. Reach out to our Support team if you believe this is the case.

Q: I see Gen1 and Gen2 dataflows but not my Fabric (CI/CD) dataflows.

  • The service principal can't reach the Fabric API. Enable the "Service principals can call Fabric public APIs" tenant setting and make sure the service principal has access to those Fabric workspaces. Gen1/standard-Gen2 collection is unaffected.

Q: A refresh failed but Monte Carlo doesn't show why.

  • For Gen1 and standard-Gen2 dataflows, Power BI's admin refresh API doesn't return a failure reason. Open the dataflow's Refresh history in the Power BI service (or Fabric portal) for the detailed error.

Q: A semantic model appears as a job, but it has no runs.

  • The model is in a shared (Pro) workspace and the service principal isn't a Contributor of it. Add the service principal to the workspace as a Contributor. See Requirements.
  • The model is in a shared (Pro) workspace and full refresh history reading is off for your tenant. See Large tenants.
  • The model is on a Fabric or Premium capacity, but it hasn't refreshed in the last 7 days and has no refresh schedule, so Power BI doesn't report it.

Q: A semantic model refresh failed, but Monte Carlo didn't alert.

  • No active job monitor covers the model. Check that a job monitor on your Power BI Dataflows integration includes it.
  • The failure was replaced by a newer refresh before the next hourly collection. Without a Contributor role in the workspace, Monte Carlo only sees each model's latest refresh. See Limitations.
Details and edge cases

Semantic model jobs have no tasks. A dataflow's tasks are its Power Query queries. A semantic model refresh is collected as a single run with no tasks.

Workspace role changes aren't immediate. Monte Carlo reuses its list of semantic models and the service principal's workspaces for several hours between collections, so a new workspace role can take a few hours to change which runs are collected.

The same refresh is never collected twice. A refresh is identified by its Power BI request ID, so a refresh seen in both the latest-refresh snapshot and the refresh history becomes one run.


Did this page help you?