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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Modeling practices for Shared Ownership DIM tables

     A mouth-full--let me unpack. I have a couple DIM tables: Company, station. Both will provide necessary information to my FACT table later on. But they too have a relationship necessary for the model. I need to know what company owns which stations; however, some stations are owned by more than one company. I was curious is there are industry standards or best practices when developing a model with such information. Below I have provided a visual:

IHargrave_0-1642093459397.png

I want to be able to provide a Company ID to the Station DIM table that way I can create a hierarchy in the visual space. Company->Station->Equipment etc. Let me know if you have any questions. Thanks in advance,

 

Isaac.

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

One practice is to separate Company and Station in two Dim tables and have a third table to define their relationships. If in the fact table, company and station always appear as a pair, you can add a new ID column like [StationID]&"-"&[CompanyID] in both Fact table and the third table, and build relationship on the new columns.

 

For example

22011904.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

bcdobbs
Super User
Super User

First thought is leave them separate and describe the relationship between them in a factless fact table. Literally two columns CompanyId and StationId



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.