Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PowerWhy
Helper IV
Helper IV

Using inactive relationships for table's row headers

Hello,

 

I have 2 tables. The first has a list of projects (with a project ID field and project manager, quality controller and credit controller fields (last 3 have employee ID's as values)). The second table is a list of employees (employee ID and employee full name fields).

 

I have joined the first table to the second with 3 inactive relationships:

'Projects'[Project Manager] <-> 'Employees'[Employee ID]

'Projects'[Quality Controller] <-> 'Employees'[Employee ID] 

'Projects'[Credit Controller] <-> 'Employees'[Employee ID]

 

Please can you tell me the simplist way to allow the user to drag and drop fields as table row headers, while allowing the user to choose what inactive relationship is used?

 

e.g. two users may want row headers "Project ID" and "Employee Full Name" in their tables. But one user may want to use the "Quality Controller" indirect relationship and the other user may want to use the "Credit Controller" relationship. Please can you tell me the clearest way to give this functionality?

 

Thank you,

 

PW

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @PowerWhy,

Current power bi seems not support dynamic switch between inactive relationship.

You can try to use measure expression to calculate with userelationship function to choose which relationism to use or try to use 'unpivot column' feature on your table fields at query editor side. Then you can accurately link table values and use attribute to control them.

USERELATIONSHIP function (DAX) - DAX | Microsoft Learn

Unpivot columns - Power Query | Microsoft Learn

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @PowerWhy,

Current power bi seems not support dynamic switch between inactive relationship.

You can try to use measure expression to calculate with userelationship function to choose which relationism to use or try to use 'unpivot column' feature on your table fields at query editor side. Then you can accurately link table values and use attribute to control them.

USERELATIONSHIP function (DAX) - DAX | Microsoft Learn

Unpivot columns - Power Query | Microsoft Learn

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.