Table relationship giving the wrong results

markfay

New Member
Joined
Apr 3, 2013
Messages
12
Can someone help me please, I simply cannot work out why my PP relationship will not work as expected.

I have two tables linked into power pivot. The first (table 1) is the Customer site ID and the Customer satisfaction data. Each site ID is unique.
The second is a complete list of all site ID's (whether appearing in the first table or not) and the corresponding site name, country etc (Table 2)
I have created a relationship from table 2 as the dimension lookup to table one, which I see as the fact table.

In the pivot table report I simply want to list the site id from table 1 and pull in the country from table 2. However when I do this I end up with the site id listing every single country rather than just the one country.

I've read lots of tip's training etc but cannot understand why this happens. Can anybody explain in simple language what's happening. I also note that auto relationship detection won't work either which is perhaps related.

thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi, could you post the DAX query you used in PowerPivot? I've managed to do succesful lookups using RELATED, USERELATIONSHIP, and LOOKUPVALUE. Google up their respective MSDN articles for details.
 
Upvote 0
Hi, could you post the DAX query you used in PowerPivot? I've managed to do succesful lookups using RELATED, USERELATIONSHIP, and LOOKUPVALUE. Google up their respective MSDN articles for details.


thank Tycho, I didn't use any DAX formulas though, I established the relationship between the two tables and then created a pivot table showing the Customer site ID from the first table and the country from the other. It was then that the result came up as the site id and a list of every country.
 
Upvote 0
Ah, I see what you mean now. I haven't tried pivot tables from PowerPivot much yet, but I get your issue now (as in replicated). I'm not sure about the proper way to get pivot tables to 'get' the table relations, though if getting a quick merged table view is what you wanted, adding a column in the main table in PowerPivot using the RELATED() DAX formula may help you as well. If you wanted more, I'd be happy to see others' replies as well.
 
Upvote 0
Ah, I see what you mean now. I haven't tried pivot tables from PowerPivot much yet, but I get your issue now (as in replicated). I'm not sure about the proper way to get pivot tables to 'get' the table relations, though if getting a quick merged table view is what you wanted, adding a column in the main table in PowerPivot using the RELATED() DAX formula may help you as well. If you wanted more, I'd be happy to see others' replies as well.

Thanks Tycho. I'll be exploring the DAX formulas. The issue is our data models often use multiple tables and vlookups and rather than build a flat file equivalent in powerpivot I felt using the pivot report and simply pulling in the data from different sheets would enable us to respond to Client requests much faster.

I know it is possible as I've seen it work with sales figures but cannot figure out what it is that's wrong when I try it.

Mark
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,073
Members
449,205
Latest member
Healthydogs

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