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
maracles
Resolver II
Resolver II

Bi-directional relationship not function as expected.

I have two tables:

  • Order Facts
  • Work Records

 

This relationship is One-to-Many. In this particular scenario the Order Facts is the fact table and its index is based on the OrderID which is unique. The work records table contains multiple rows per OrderID as each order can have multiple work records.

  • Both tables have an OrderID column.
  • Work Records has an additional Work Record Date column

 

I know this isn't the usual database scheme but for various complicated reasons there is not a way I have been able to get around it.  Anyway, my goal is to add a related column to my Order Facts table that contains the earliest Work Record Date for a row in that table with a matching OrderID.

I had assumed that the bi-rectional filtering would work for this, however I can only use related columns in the Work Records table - is there a way of reversing this?

Thanks.

1 REPLY 1
Nhallquist
Helper V
Helper V

I think I understand what you are trying to do, and I think there is a solution.

 

Have you tried creating a small, 2 column table, where you have the OrderID and calculate the Earliest Work Record Date based on the OrderID from the Work Records?  Then, you could Left Join that small table to the Order Facts table, and thus get your Earliest Work Record date into your Orders Fact Table.

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.