Relationships between tables are being reversed for no clear reason.

Maracles

New Member
Joined
Jul 3, 2013
Messages
7
Hi, I'm new to PowerPoint so forgive me if this is a basic question - my 'Learn PowerPivot' book is on the way!

I am trying to establish a relationship between two tables. I have tried to post a picture but do not have permissions so I will try to explain.

Table 1 is called ‘Raw’
Table 2 is called ‘Enquiries’

I want RAW to be the base table, and I want to use the column ‘OrderID’, which is text in the format of ‘ABC12345’, and link it with the equivalent column in Enquiries which is called ‘Coverted Order’ which is again a text format of 'ABC12345’.

My understanding is that if I set-up this relationship, I can then add calculated columns to my RAW table and pull in information from related records in ‘Enquiries’.

So, as an example. If in the RAW table I have an ‘OrderID’ of ‘ABC50000’. I can search the enquiries table for any record that has a matching ‘Converted Order’ value of ‘ABC50000’ and then I can pull in associated values such as the ‘Source’, ‘Date Converted’ and so forth.

If I try and set this up however it does not work. Instead I get an error “The relationship cannot be created in the requested direction” and it reverses the direction of the relationship.

Can someone explain to me why this is happening. Why can I pull in data from the RAW table and associate it with enquiries, but not the other way? I have tried following this page but I have to admit to not understanding although it seems to be the same issue I'm having. Working with relationships in PowerPivot & SSAS BISM Tabular | Javier Guillén

Thanks!
James
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
It basically means that the table that you thought that didn't have duplicates actually has duplicates, and the one that you thought that didn't have any duplicates actually has duplicates so they need to revert the relationship in order to work. In most cases Powerpivot will not warn you about it and just create the correct relationship for you taking in consideration that it can only handle one-to-many (1-to-n) relationships

Is the relationship working? if not, can you try uploading the workbook so I can take a look at the data within those tables?
 
Upvote 0

Forum statistics

Threads
1,216,739
Messages
6,132,438
Members
449,728
Latest member
teodora bocarski

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