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
IDIntegerUnique numeric ID of the relationship
From TableStringName of the "many" side table
From ColumnStringColumn name used on the many side
To TableStringName of the "one" side table
To ColumnStringColumn name used on the one side
CrossFilteringBehaviorStringSingle / Both / Automatic
IsActiveBooleanIs this relationship currently active?
FromCardinality / ToCardinalityString* → 1, 1 → 1, etc.
RelyOnReferentialIntegrityBooleanIs RI enforcement enabled?
SecurityFilteringBehaviorStringDirection of row-level security propagation
StateStringReady / 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

Popular posts from this blog

Daily DAX : Day 131 SELECTEDMEASURE

Daily DAX : Day 446 INFO.CSDLMETADATA

Daily DAX : Day 453 ENDOFWEEK