Skip to content
1 change: 1 addition & 0 deletions docs/how/breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Requirements:
- [#20842](https://github.com/datahub-project/datahub/pull/20842) **(Ingestion / Power BI)** Column-level lineage now follows the same `dataset_type_mapping` filter as table-level lineage, in both `metadata_api_mode` settings. If you narrowed `dataset_type_mapping` to fewer platforms than the default, a Power BI column no longer gets a lineage edge to a column of an upstream table that the mapping excludes; before, the column edge was emitted even though the table edge was not. Duplicate column-level edges, which were emitted once per upstream table of a Power BI table, are also removed. **Action:** none unless you relied on column lineage to platforms you left out of `dataset_type_mapping`; add those platforms to the mapping to keep it. The dropped edges disappear on the next run.
- [#20876](https://github.com/datahub-project/datahub/pull/20876) **(Ingestion / Power BI)** Column-level lineage no longer links a warehouse column to a Power BI _calculated column_ (a column defined by a DAX expression) of the same name, in both `admin_scan` and `workspace_apis` modes; such columns are computed inside the semantic model and the previous edge pointed at a column the warehouse never feeds. For semantic models read through `metadata_api_mode: workspace_apis`, column lineage now follows each column's TMDL `sourceColumn`, so a field renamed in the model points at its real upstream column instead of a same-named one. **Action:** none unless you relied on those edges; the dropped edges disappear on the next run with stateful ingestion.
- [#20884](https://github.com/datahub-project/datahub/pull/20884) **(Ingestion / Power BI)** A semantic-model table (or Dataflow Gen2 entity) that reads a Microsoft Fabric Lakehouse or Warehouse through its SQL analytics endpoint (an M query calling `Sql.Database("<endpoint>.datawarehouse.fabric.microsoft.com", ...)`) now gets its upstream lineage edge on the OneLake table (`fabric-onelake` platform, the URN the OneLake connector emits) instead of a generic SQL Server (`mssql`) dataset. This applies in both `metadata_api_mode` settings, because the admin scan also lists the workspace's Lakehouses and Warehouses. The edge is rewritten in place on the next run; no entity is deleted, but the old `mssql` dataset the edge pointed at no longer receives lineage from Power BI. Endpoints that cannot be matched to a Lakehouse or Warehouse of the same workspace keep their `mssql` edge and are reported as warnings. The OneLake edge is kept even if you narrowed `dataset_type_mapping` to leave out SQL Server, the same as DirectLake lineage, so a table that had no upstream edge under such a mapping now gets one. **Action:** none, unless something relied on the `mssql` upstream of such tables; in that case map the workspace id in `server_to_platform_instance` and ingest the Fabric items with the OneLake connector so the new edge lands on an existing dataset.
- [#20885](https://github.com/datahub-project/datahub/pull/20885) **(Ingestion / Power BI)** In both `metadata_api_mode` settings, a dashboard tile without a title is now named `Tile <n>`, after its 1-based position in the dashboard's tile list, instead of having an empty name, and each report page chart now carries a link to the page in the Power BI service. **Action:** none, unless you match charts by an empty title; the new names appear on the next run. Because a tile's number follows its position, reordering a dashboard's tiles can rename its untitled tiles; the chart URNs do not change. With `extract_report_field_usage` enabled, a report page chart and a tile pinned from a report now list as inputs only the model tables their fields read, instead of every table of the model, so chart-to-table lineage edges to tables those charts do not read are removed on the next run; only tables emitted in the same run count, so a model left out by `filter_dataset_endorsements` gives its charts no table inputs.

- [#21219](https://github.com/datahub-project/datahub/pull/21219) **(Ingestion / Qlik Sense)** On Qlik Sense Enterprise, QVD datasets are now placed in `Folder` containers that follow their file path (server or share, then each folder), and are browsed under those folders instead of the path split at its dots. Their URNs, schemas and lineage are unchanged. **Action:** update any bookmark or saved browse path that pointed at the old QVD hierarchy.

Expand Down
2 changes: 1 addition & 1 deletion metadata-ingestion/docs/sources/powerbi/powerbi_pre.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ If the principal only has the `Viewer` role on a workspace, the dataset listing

No Microsoft Entra application permissions need to change: both API families are authorized through the tenant settings and workspace roles above. The application requests a second token audience (`https://api.fabric.microsoft.com/.default`) in addition to the Power BI one.

What `workspace_apis` mode ingests: workspaces, dashboards, tiles, reports, report pages, datasets with tables, columns, measures and their descriptions, M expressions, table and column lineage (including DirectLake lineage to Fabric Lakehouses and Warehouses), paginated-report dataset bindings, and owners derived from workspace roles. With `extract_report_field_usage` enabled, a Power BI report (not a paginated report, which never gets field usage or filters) whose definition is fetched and parsed gets, on each page chart, the model fields its visuals read, and its report-level and page-level filters as `filters` / `filterCount` properties on the report and its pages, with the filtered fields added to the page's `inputFields`; a report whose definition is refused or cannot be parsed gets neither its filters nor their fields. `filters` holds at most 50 entries: `filterCount` is the full count and `filtersTruncated: true` marks a shortened list. A rendered condition is cut to 500 characters and lists at most 20 `In` values, and a condition shape the connector does not recognize is kept as its raw JSON cut to 200 characters, so `filters` is a summary, not the complete filter definition. A filter's rendered condition includes the literal values it compares against (for example the selected categories or thresholds), so treat these properties as potentially containing business data.
What `workspace_apis` mode ingests: workspaces, dashboards, tiles, reports, report pages, datasets with tables, columns, measures and their descriptions, M expressions, table and column lineage (including DirectLake lineage to Fabric Lakehouses and Warehouses), paginated-report dataset bindings, and owners derived from workspace roles. With `extract_report_field_usage` enabled, a Power BI report in either definition format, PBIR (`definition/pages/*/visuals/*/visual.json`) or PBIR-Legacy (a single `report.json`), whose definition is fetched and parsed gets, on each page chart, the model fields its visuals read, and its report-level and page-level filters as `filters` / `filterCount` properties on the report and its pages, with the filtered fields added to the page's `inputFields`; a report whose definition is refused or cannot be parsed gets neither its filters nor their fields. Paginated reports never get field usage or filters. `filters` holds at most 50 entries: `filterCount` is the full count and `filtersTruncated: true` marks a shortened list. A rendered condition is cut to 500 characters and lists at most 20 `In` values, and a condition shape the connector does not recognize is kept as its raw JSON cut to 200 characters, so `filters` is a summary, not the complete filter definition. A filter's rendered condition includes the literal values it compares against (for example the selected categories or thresholds), so treat these properties as potentially containing business data. When field usage is extracted, a page chart and a tile pinned from a report list as inputs only the model tables their fields read, out of the tables this run emitted: a model left out by `filter_dataset_endorsements` gives its charts no table inputs at all. A table counts as read when a field reference names it, even if that field is missing from the fetched schema. A page (or a report whose pages) whose definition was fetched and parsed but whose field references resolve to no table keeps the whole model (counted as `report_pages_inputs_fallback` and surfaced as a `Page Inputs Fell Back To Whole Model` warning), and a visual chart in that state has no table inputs; a report whose definition is refused or cannot be parsed keeps the whole model without a warning, and so does a page missing from the definition or a page of a definition where some part or filter failed to parse (that failure is warned on its own), since its field references would be incomplete. Independently of that flag and of `metadata_api_mode` (so in `admin_scan` too), each page chart links to its URL in the Power BI service, and a tile without a title is named `Tile <n>` after its 1-based position in the dashboard's tile list, so adding, removing or reordering tiles can change that name between runs (the chart URN stays the same).

**Fabric Lakehouse and Warehouse lineage.** The connector lists each workspace's Fabric items and registers the SQL analytics endpoint of every Lakehouse (one `GET lakehouses/{id}` call per lakehouse) and Warehouse (a warehouse is its own endpoint). A semantic-model table that reads one of them, either in DirectLake mode or through an Import/DirectQuery `Sql.Database("<endpoint>.datawarehouse.fabric.microsoft.com", ...)` query (a table navigation or a native `[Query=...]`), gets upstream lineage to the OneLake table (`fabric-onelake` platform, the same URN the OneLake connector emits) instead of a generic `mssql` one. The `Sql.Database` mapping applies in both metadata modes, since the admin scan also lists the workspace's Lakehouses and Warehouses. Map the workspace id in `server_to_platform_instance` to set the OneLake `platform_instance` and `env`. These OneLake edges are not subject to `dataset_type_mapping`, same as DirectLake lineage, so narrowing that mapping never turns such an edge into none; Dataflow Gen2 entities get the same mapping. The URNs match the OneLake connector's when that source runs with `convert_urns_to_lowercase: true` or this one with `convert_lineage_urns_to_lowercase: false` (by default Power BI lowercases the whole lineage URN while the OneLake connector keeps schema and table casing). A `Sql.Database` query may name the endpoint by id or by the item's display name. In `workspace_apis` mode a display name only matches on the workspace's own endpoint host; the admin scan reports no host, so there a display name matches the workspace's item on any host. A query naming an endpoint that is not among the workspace's items (for example a lakehouse in a workspace outside your workspace patterns) keeps its generic `mssql` edge and is reported as a `Fabric Endpoint Not Resolved` warning, and a display name shared by several items is reported as `Fabric Endpoint Name Ambiguous`. A `Sql.Databases` navigation, a navigation without an `Item`, or an endpoint behind a dataset parameter the connector could not resolve (the server argument is a parameter missing from the dataset) is not mapped: the first two are reported as `Fabric Endpoint M Shape Unsupported`, the last falls through to the generic SQL Server handling. Datamarts, mirrored databases and SQL databases are not covered: the OneLake connector does not ingest their tables, so no edge is emitted for them.

Expand Down
19 changes: 19 additions & 0 deletions metadata-ingestion/src/datahub/ingestion/source/powerbi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ class Constant:
PAGE_NAME = "pageName"
VISUAL = "Visual"
VISUAL_TITLE_FALLBACK = "{visual_type} on {page}"
# An untitled tile is named by its 1-based order in the dashboard's tile
# list. The scan-fallback tile listing can renumber untitled tiles
# between runs, so this name is not stable across them.
TILE_TITLE_FALLBACK = "Tile {position}"
PAGE_CONTEXT = "page {page}"
PAGE_INPUTS_FELL_BACK = "Page Inputs Fell Back To Whole Model"
URL_QUERY_SEPARATOR = "?"
TOP = "$top"
# Scan-API column types reproduced for TMDL-sourced columns
Expand Down Expand Up @@ -486,14 +492,21 @@ class PowerBiDashboardSourceReport(StaleEntityRemovalSourceReport):
report_filters_truncated: int = 0
report_pages_unmatched: int = 0
report_field_references_resolved: int = 0
# Page references naming a table the model lacks vs. naming a known
# table whose field is missing from its schema.
report_field_references_unresolved: int = 0
report_field_references_field_unresolved: int = 0
# Pages with field references that named no table of the model, so
# their inputs stayed the whole model.
report_pages_inputs_fallback: int = 0
report_visuals_emitted: int = 0
# Visual charts emitted without inputFields: the visual reads no fields at
# all (a text box, say) vs. it reads fields but none resolved.
report_visuals_without_fields: int = 0
report_visuals_fields_unresolved: int = 0
report_visual_field_references_resolved: int = 0
report_visual_field_references_unresolved: int = 0
report_visual_field_references_field_unresolved: int = 0
report_visual_groups_skipped: int = 0
report_visuals_skipped_unnamed: int = 0
report_visuals_duplicate_name: int = 0
Expand Down Expand Up @@ -1201,6 +1214,12 @@ class PowerBiDashboardSourceConfig(
"page filter reads join that page's `inputFields`, and the fields a report "
"filter reads join every page's. Note that a filter's condition includes the "
"literal values it compares against, which may be business data. "
"Page charts and tiles pinned from the report then list only the model "
"tables their fields read as inputs, instead of every table of the model. "
"A table counts as read when a field reference names it, even if that "
"field is missing from the fetched schema; a page or tile whose references "
"match no table keeps the whole model, and a visual in that state has no "
"table inputs. "
"Adds one Fabric getDefinition call per report. "
"Requires `extract_reports`, `extract_dataset_schema` and either "
"`metadata_api_mode: workspace_apis` or `enrich_from_item_definitions`.",
Expand Down
Loading