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
AlexDawson111
Frequent Visitor

Data Model

Hi. I’m looking for some advice on how to connect two star schemas together. 

 

The scenario is as follows:-

 

I have an existing star schema which is holding all my actual costs and revenues FactCosts from my job costs database. In this schema the grain is at Job Level. 

 

I have an existing star schema that is holding all my job scheduling data from my scheduling database. In this schema the grain is as a sub task level. One job from the first star schema contains many tasks. The tasks within this schema have many cost codes. One task can have many cost codes. 

 

The cost code from this schema can match a cost code from the cost code dimension in the first star schema. 

 

Ideally what I want to achieve is linking two star schemas in one pbix. However the grain is different in each fact table. 

 

Any advice would help

 

Thanks

4 REPLIES 4
AlexDawson111
Frequent Visitor

AlexDawson111
Frequent Visitor

Hi Greg,

 

Thanks for the reply. 

So there are some common/shared dimensions but not all. 

The problem I'm having is say for example:-

 

1 Job has a total cost of 10k (provided from the factcost table)

 

I then want to show a breakdown of these costs per sub task level which is in the other fact table. 

Really I only want to me able to slice and include dimensions from the cost star schema. For example create a table visual that consists of my costs and my scheduling data combined. 

hope that makes sense. 

alex

@AlexDawson111 OK, so what if you built a relationship between your jobs table and your subtasks table based on job code? Is it Many-to-Many (*:*) if you do that or 1:*?

 

Super difficult to visualize without sample data.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

@AlexDawson111 So do you have the same dimensions in each of these star schemas?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.