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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ams123
Frequent Visitor

Create relationship between 2 tables (Invoice Header and Invoice Details)

 

I am trying to create a relationship between Tests linked to Requirements.  I also have a working relationship between Systems and Requiremets.

 

Relationships.jpg

 

Trouble is the Requirements can be tested by multiple Tests with some text so the cell is formated like shown.

 

requirements.JPG

 

Test data below.

 

Test.JPG

 

If I don't slice by System everything is fine, showing total Requirements and Pass/Fail status for all Tests.

 

Capture.JPG

 

When I slice by a System I would like to see the test status for that system only but that does not work.

 

Capture2.JPG

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @ams123,

 

I'm afraid you can't create a relationship like that. There are no same values. Though you can create a relationship, that won't work. Let's take your scenario as an example, there aren't any values in the Tests because there are no ids "200: foo" and "204: foo".

The solution could be as shown in the snapshot.Create relationship between 2 tables (Invoice Header and Invoice Details).png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards,

Dale

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

View solution in original post

4 REPLIES 4
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @ams123,

 

Did it help? 

 

Best Regards,

Dale

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

After trying out you solution I better understand how that will fix my issue.  Thanks,

Yup I appreciate the confirmation that I cannot do what I need to do in this case.

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @ams123,

 

I'm afraid you can't create a relationship like that. There are no same values. Though you can create a relationship, that won't work. Let's take your scenario as an example, there aren't any values in the Tests because there are no ids "200: foo" and "204: foo".

The solution could be as shown in the snapshot.Create relationship between 2 tables (Invoice Header and Invoice Details).png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards,

Dale

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.