cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Help fixing relationships between two tables.

So I have Input table that looks like the following:

Screenshot 2023-02-27 133927.png

 

I have another table called Labor Detail that has the same exact columns except Predicted with different names.

For example, Department = Home Org Name, Year = FY, Month = PD, Week = Sub Pd

I created a relationship for each column in Input except Predicted. Below is my relationships. 

Relationship.png

 

Now where I am stuck. I have created the table below but it seems "Predicted" value(10) is being added to all the rows. I only want to be in the top row, since that is what input is. How do i fix this. Will I need to create a seperate table called Date and create a relationship from both existing table to that one? Not sure where to go from here.

Table.png

1 REPLY 1
YukiK
Impactful Individual
Impactful Individual

In either data source, Power Query, or DAX calculated column, create a new column that's unique to those 4 columns. Power BI doens't support multiple key relationships, so you'd have to create a key column that defines the grain of your table.

 

If in Power Query, "Add index" will do.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors