Error with table connection

AmitM

Board Regular
Joined
Feb 4, 2015
Messages
53
Hi,

My model consists of 3 "fact" tables and several information tables (such as products, sites and so on).

I tried to connect these 3 fact tables to the "sites" table using "factory" column as a key.

The strange thing is that the connection works for just 1 of the fact tables.

When I use the "Factory" key (from sites table) as the ROWS of the pivot with the "good" fact table (table1<gs id="340986d9-f01e-4656-979d-c9db4f424cf4" ginger_software_uiphraseguid="51d684df-ebe5-40eb-bf6b-1598a6347738" class="GINGER_SOFTWARE_mark">)</gs>- it does display the result.

However, when I drag and drop the second table (Table2) to that pivot, I get an additional (blank) row that sums all the Qty instead of slicing the data by <gs id="abb925b4-2d1d-4826-ac73-28b94934462a" ginger_software_uiphraseguid="4056cdbf-bd19-4392-a65f-d2c21df71a8b" class="GINGER_SOFTWARE_mark">Factory</gs>.

Find a copy of the pivot:

200820092010201420152016
Row LabelsQtySum of TotalQtyQtySum of TotalQtyQtySum of TotalQtyQtySum of TotalQtyQtySum of TotalQtyQtySum of TotalQty
Table1Factory1108508741167432310493173
Table1Factory2109145341163526510393721
Table1Factory3107710321182408310494397
Table2(<gs id="160ee25b-8464-443b-9e9f-1135ca31d784" ginger_software_uiphraseguid="6bc84b7a-88ba-4b7a-bb33-6792235e8590" class="GINGER_SOFTWARE_mark">blank</gs>)16380952008700654835245463423090442389847

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi Amit,
what does it do, if you only take the measure from your table 2 (no data from table 1)?

Imke
 
Last edited:
Upvote 0
This would happen if your Fact Table2 doesn't have any match with the "factory" key from your "sites" table.

Check if they really match and have the same format (are they alphanumeric? - check for blanks!)
 
Upvote 0
This would happen if your Fact Table2 doesn't have any match with the "factory" key from your "sites" table.

Check if they really match and have the same format (are they alphanumeric? - check for blanks!)



I did... they match, and that is why it is so strange :(
 
Upvote 0
Are they connected by a pure star-scheme?

If not, delete all other connections, try if it works with pure star scheme and add the other connections 1 by 1, checking which one causes the blanks.
 
Upvote 0
I did... they match, and that is why it is so strange :(

Do it again. :)

In the fact table that is not working... add a calc column. Something like: =RELATED(Sites[SomeColumn])

The expectation is you get something valid for every row. What will actually happen is some blanks. Filter down to those blanks and figure out why they aren't in your Sites table...
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,382
Members
449,445
Latest member
JJFabEngineering

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