Relationship Help

Waynym

New Member
Joined
Sep 14, 2016
Messages
1
I've created a simple relationship example but it doesn't work as I would expect. The example has 2 simple tables: 1) Company and 2) Company_Group. A company group is the parent of one or more companies. I've joined them together by a Parent_Company_ID which exists in both tables (in Company_Group as the primary key and in Company as a foreign key).

When I create a pivottable with the Company Name from the Company table in the row area of the pivottable and the Parent Company Name from the Company_Group in the filter area and slice to a single parent company ... all the values for all companies remain in the row area even though only 4 of 18 should show as children of that Parent Company. Company_Group is one:many to Company ... shouldn't this relationship work? What am I doing wrong?

Tables & Relationship

Table 1: Company, Columns: Company ID, Company Name, Parent Company ID

Table 2: Company Group, Columns: Parent Company ID, Parent Company Name

Relationship: one-to-many from Company Group to Company on Parent Company ID
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
It only hides row values when there is a measure in the "Values" area of a pivot. And by default hides row values when the measure returns blank.
 
Upvote 0

Forum statistics

Threads
1,216,042
Messages
6,128,467
Members
449,455
Latest member
jesski

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