Table.ReplaceRelationshipIdentity

TableInternal

Replaces the relationship identity on a value. Intended for internal use only.

Examples on this page use shared sample tables. View them to understand the input data before reading the examples below.

Syntax

Table.ReplaceRelationshipIdentity(value as any, identity as text) as any

Parameters

NameTypeRequiredDescription
valueanyYesThe value whose relationship identity to replace.
identitytextYesThe new relationship identity text to assign.

Return Value

anyThe value with the relationship identity replaced.

Remarks

This function is intended for internal use only. It is part of the Power Query engine's infrastructure for managing relationship metadata between tables — for example, the foreign key relationships used in Power BI data models. Its behavior may change without notice between Power Query versions.

For working with table relationships in user-authored queries, use Tables.GetRelationships to discover relationships and Table.NestedJoin or Table.Join to combine related tables.

Examples

Example 1: Recommended alternative — use Table.NestedJoin

let
    Joined = Table.NestedJoin(
        Sales, {"CustomerID"},
        Customers, {"CustomerID"},
        "CustomerDetails",
        JoinKind.LeftOuter
    )
in
    Joined

Compatibility

Power BI Desktop Power BI Service Excel Desktop Excel Online Dataflows Fabric Notebooks