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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Joining 2 object tables via a relationship table.

Hello,

I’m a currently connecting directly to a PostgresSQL DB which uses relationship tables to connect source and destination tables.  Below, TableA (Departments) is the source and TableB (Employees) is the destination with the Rel table connecting the 2. Both table A and B contain historical data which means they have multiple rows per id representing different time periods.  As you can see it becomes complex as there are no 1 to many relationships available at first glance.

 

Tsisis1987_2-1677767584447.png

 

My reporting requirements are along the lines of the below which makes me think I need to either do some sort of merge which can then be grouped by Department, but I can’t work out the best way to do it.

Tsisis1987_1-1677767565472.png

 

Any help would be much appreciated.

Thanks

2 REPLIES 2
Anonymous
Not applicable

Thank you  - yes it seems the challenge is in designing the correct schema.

lbendlin
Super User
Super User

Both table A and B contain historical data which means they have multiple rows per id representing different time periods. 

Normalize your tables. Have separate tables for Departments dimension, user dimension, Dates dimension and mapping fact table

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors