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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Apeyy
Regular Visitor

Relationship between two tables not working

Hello,

 

I have 3 tables, table 1 contains the file number and fees, table 2 contains file number, working hours, year and company name. Table 3 contains unique file number to connect these two tables. Below are the tables and relationships.

2ED03AAF-3B8F-4286-9B7F-6318B991B0EC.jpeg

 

However, when I create the matrix and trying to show bth the working hours and fees of the file number under a particular company, the values "fees" are all the same. I also tried to create a cluster column chart to show the fees and working hours of different companies but the fees are same for all companies.

5CEAE7F0-8C49-408F-8322-6C1C552DC5A3.jpeg

How can I get different fees under the file number and company? Is there anything I'm missing for the relationship? Thank you!!

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Apeyy ,

 

Just change the relationship from "single" to "both".

Capture.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @Apeyy ,

 

Just change the relationship from "single" to "both".

Capture.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Apeyy , because the company is not common between two tables. only one table has that.

That is why is it not working.

 

Also common table only work if that is context

 

You can try like

Sumx(values(Table3[File]), calculate(sum(Table1[Fee])))

 

But I doubt this will make are the difference.

 

Also, prefer to share data in text format.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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