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
jim2004
Regular Visitor

2 fact table fields linking to 1 reference table

Hello all,

I am very new to BI so please excuse my ignorance.

I have a fact sales table that has a billto customer number and a shipto customer number. Sometimes these fields are the same and sometimes they are not. I need to link them both to the customer master. I am wondering the best way to accomplish this. It would seem I could just duplicate the customer master and have a shipto customer master and a billto customer master. That seems very inefficient from a data perspective though. Is there a better way to handle this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey, 

 

Sounds like a easy fix, check out this video on creating relationships - 

https://www.youtube.com/watch?v=8ybsChtuZoY

View solution in original post

4 REPLIES 4
ebeery
Memorable Member
Memorable Member

Hi @jim2004 ,  what types of measures and visuals do you anticipate wanting to build off of these two different fields? 

 

The method you described of having two dimension tables is one approach, but another would be to stick with a single customer master and create a 2nd "in-active" relationship with the fact table.  Then, by using the USERELATIONSHIP you can toggle each relationship on and off within a measure as needed.  There are pros and cons to both approaches, but which to use would depend on what you're trying to accomplish.

 

https://www.sqlbi.com/articles/using-userelationship-in-dax/

It's really just for reference. I'd be pulling things like name, address zip, ect. I am not familiar with how to mange the inactivate relationship but I will explore this further. Thank you for the help.

Anonymous
Not applicable

Hey, 

 

Sounds like a easy fix, check out this video on creating relationships - 

https://www.youtube.com/watch?v=8ybsChtuZoY

Thank you. I watched that video and a few others on duplicate versus reference. What I found interesting was when you create a reference,  the query still pulls the original data again to build that reference. I would have thought it would have pulled it's data from  the original query and not gone back to the source again, So if I understand correctly weather I use reference of duplicate the customer master source will be read twice. This will work just fine I just wanted to be sure I was not missing a better way to accomplish the task.

FYI here is the video I watched that did a good job of what is really happening behind the scenes when you use reference.

https://www.youtube.com/watch?v=3uKNNZqBIkg

 

Thanks again for the help

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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