Issue relating four tables

paliman

Active Member
Joined
Jul 7, 2002
Messages
255
Hello everyone.

First of all, I am new with PowerPivot (in fact this is my first attempt) and I got stucked too quickly

Ok, let´s go to the problem:

I have four tables with these relevant columns:

Table: Prod_Master
Product_ID (unique items)
Product_Desc

Table: Inventory
Product_ID
Quantity

Table: Direct_Cost
Product_ID
STD_Cost_Materials

Table: Indirect_Costs
Product_ID
STD_Freight
STD_Labor
STD_Overhead

---

My goal is to value my inventory and to do that I have to calculate:

Quantity * (STD_Cost_Materials + STD_Freight + STD_Labor + STD_Overhead)

This for each Product_ID, and then get the sum of all IDs

---

I have created these relationships:

Table – Related Lookup Table
Inventory[Product_ID] – Prod_Master(Product_ID]
Direct_Cost[Product_ID] – Prod_Master(Product_ID]
Indirect_Cost[Product_ID] – Prod_Master(Product_ID]

I hoped that all these tables were related to each other through the Prod_Master table, but they are not; i.e., if I want to add a calculated column in the Inventory table with

=related(Direct_Cost[STD_Cost_Materials])

It returns the following error:

The column 'Direct_Cost[STD_Cost_Materials]' either doesn't exist or doesn't have a relationship to any table available in the current context

I am only able to relate any table to the Master table and in that direction only.

What am I missing?

Thank you all in advance
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,223,957
Messages
6,175,623
Members
452,661
Latest member
Nonhle

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