Wrong one-to-many relationship direction

cleverclog

New Member
Joined
Dec 27, 2017
Messages
7
Hello,
I have an issue and I desperately need your help. I have two tables with orders (a trasaction number is a unique value) and another table with sales invoices (several invoies can be issued to one transaction number). The tables are linked via transaction numer, however when I create a relationship between these two, Power Query sets a relationship as if the table qith uniques contained multiple values and the other way round. I have tried all methods of creating relationships and it will always end up the same way. Do you have any hints what may be wrong?

Just to add some context as it may be helpful. These are large sets of data imported directly from a database through ODBC into Power query and then sent into a data model.

Can anyone please help?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Screenshot pls.

This should be impossible. Do a count and a distinct count on the columns in the relationship to check.
 
Upvote 0
When I moved to 2016 I had something like this where the relationship was based on a date field. I had created the relationship by dragging fields in the graphic window. I deleted the relationship and built it in the relationship tool making sure to put the unique lookup table first.
Maybe you've already tried that and failed, but I don't have another recommendation. My guess is that since 2016 allows multi-direction relationships that sometimes it might get confused?
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top