Daily DAX : Day 458 INFO.VIEW.RELATIONSHIPS
INFO.VIEW.RELATIONSHIPS( )
What it does: Returns a table containing detailed metadata about every relationship defined in your current Power BI semantic model.
Syntax
INFO.VIEW.RELATIONSHIPS()
No parameters – just call it as is.
Typical usage (as a calculated table)
Model Relationships =
INFO.VIEW.RELATIONSHIPS()
Most useful columns returned
| Column | Type | Description |
|---|---|---|
| ID | Integer | Unique numeric ID of the relationship |
| From Table | String | Name of the "many" side table |
| From Column | String | Column name used on the many side |
| To Table | String | Name of the "one" side table |
| To Column | String | Column name used on the one side |
| CrossFilteringBehavior | String | Single / Both / Automatic |
| IsActive | Boolean | Is this relationship currently active? |
| FromCardinality / ToCardinality | String | * → 1, 1 → 1, etc. |
| RelyOnReferentialIntegrity | Boolean | Is RI enforcement enabled? |
| SecurityFilteringBehavior | String | Direction of row-level security propagation |
| State | String | Ready / Processing / etc. |
Common Use Cases
- Model documentation → Put it on a hidden "Model Info" report page
- Quality checks → Find inactive relationships, missing RI, wrong cross-filter direction
- Troubleshooting → Quickly see which tables/columns are connected and how
- Dynamic reports → Build slicers / cards showing "number of active relationships", "relationships using Both direction", etc.
- Team handover → Export to PDF/Excel as living model diagram companion
- Compare models → Use in DAX Studio / Tabular Editor to diff relationships between .pbix files
Quick Example Questions You Can Answer
- How many active relationships exist?
- Which relationships use Both cross-filtering?
- Are there any inactive relationships I forgot about?
- Which tables have the most incoming / outgoing relationships?
Introduced around late 2024 – part of the INFO.VIEW.* family of metadata helper functions.
Works in calculated tables, DAX Query View, DAX Studio, etc.
Comments
Post a Comment