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

Relationships: three tables basics

Hi,

 

This might be basic question, but everytime I keep making the same misstake because i don't know the reason why this doesn't work. Everytime i try to built a data set, i keep running to the same issue and that is linking multiple data sets to eachother with power Pivot. I don't understand why I can't get the required information from these datasets and relationships between them.

 

Am I fundementally not understaning how data relationships work?

 

Example: 3 Tables

Memento_RY_0-1654263819078.png

 

Example: The relationships

Memento_RY_1-1654263933966.png

 

The Pivot tables that work

Memento_RY_2-1654264021100.png

Memento_RY_3-1654264041613.png

 

But this doesn't work?

Memento_RY_5-1654264108608.png

Memento_RY_6-1654264120863.png

Or even this, adding the names:

Memento_RY_8-1654264239629.png

Memento_RY_9-1654264257788.png

 

Can you please enlighten me as to what i'm doing incorrectly or how i should approach this?

 

With kind regards,

 

Ryan

 

1 ACCEPTED SOLUTION
Syk
Super User
Super User

From your data, it looks like the 'Timewrite ID' is specific to a user. If you just add that field to the employee rates table, you can remove the 'Mapping IDs' table and would likely solve your issue. Just relate the employee rates to timestamp with the timewrite ID and it should be a 1 to many.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Thanks Syk, it's more clear to me now! I will just join the Employee rates with Mapping IDs and then have a 1 to many connection with timesheets.

Syk
Super User
Super User

From your data, it looks like the 'Timewrite ID' is specific to a user. If you just add that field to the employee rates table, you can remove the 'Mapping IDs' table and would likely solve your issue. Just relate the employee rates to timestamp with the timewrite ID and it should be a 1 to many.

Anonymous
Not applicable

Hi, Thanks for your answer. I know that it can be fixed that way, but why would that be a problem in the first place? Does it not work that way? I could just join the first two together, but ideally I would just use the raw data set from 2 different systems if possible.

If you notice the direction of the arrows on your current relationships the mapping IDs table can filter both tables. However, this means that your user table can't interact with your timesheet table WITHOUT using the mapping IDs table.

 

Your user table is essentially a dimension table meaning it stores the attributes (or dimensions) of the facts. The timesheet table would be your fact table that contains your actual records. You want a 1 to many relationship between your dimension and fact table if possible. Your current setup doesn't allow your best dimension table to fitler your fact table and the mapping IDs is just clutter.

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.