Daily DAX : Day 422 INFO.DATASOURCES

INFO.DATASOURCES DAX Function

Category: Information Function (Power BI specific)

Syntax

INFO.DATASOURCES ( )

Description

Returns a table containing metadata about all data sources used in the current Power BI model. This function is only available in Power BI (not in Excel Power Pivot or SSAS Tabular).

Returned Table Columns

Column Name Description
ConnectionString The full connection string used to connect to the data source
Url URL of the data sources (e.g., web, SharePoint, OData)
Server Server name for database connections
Database Database name (if applicable)
Type Type of data source (e.g., Sql, OData, Web, Folder, etc.)
PrivacyLevel Privacy level: None, Public, Organizational, Private

Common Use Cases

  • Auditing and documentation – Automatically list all data sources in a report
  • Dynamic data lineage reports – Build a report that shows where data comes from
  • Security & compliance – Identify reports using Private or Organizational data sources
  • Governance dashboards – Monitor which servers/databases are being used across reports

Example: Create a Data Sources Report Page

Add a new table visual and use this measure (or calculated table):

Current Data Sources = INFO.DATASOURCES()

This will display all data sources the current report connects to.

Important Notes

  • Only works in Power BI Desktop and Power BI Service
  • Requires the model to be in Import or DirectQuery mode
  • Does not return data sources used only in Power Query (M) if they are not part of the data model
  • Useful when combined with INFO.QUERIES() and INFO.MODEL() for full model documentation

Comments

Popular posts from this blog

Daily DAX : Day 131 SELECTEDMEASURE

Daily DAX : Day 446 INFO.CSDLMETADATA

Daily DAX : Day 453 ENDOFWEEK