Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Resolver I
Resolver I

Use Inactive Relationship in Related function

Hi. I'm using Addcolumns to add columns from a related table using Related like in the below example:


ADDCOLUMNS(  tableA  ,  "Date"  ,   RELATED(  tableB[OpenedDate])  ,  "AcctKey" RELATED(tableB[AccountID]  )
the relationship between tableA and tableB is many from tableA to one in tableB: tableA *------ 1 tableB   
However, I have another inactive relationship between the two tables, where it is also tableA *------ 1 tableB  but on a different column in tableA. Is it possible to make the Related function in the above Addcolumns code use that inactive relationship instead of the active one? My data source is SSAS, btw, so I have certain limitiations, as i can't create physical tables or columns.
Super User
Super User

@yasbos , related will not work on inactive , if you need a column you can get like


maxx(filter(TableB, TableA[Col2] = TableB[COl2]), TableB[Col3]) //Or use sumx


refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors