Table relationship error?

SueKi

New Member
Joined
Feb 15, 2022
Messages
44
Office Version
  1. 365
Platform
  1. Windows
Hi, I have 3 tables in a file:

ItemAttr - contains information about every item, such as make / Buy, Planner Code, Value Stream
InvCat - Has an inventory category for each item - FG, RM or SemiFinished
OhHand - On Hand inventory qty and value for all items on hand.

I've created relationships and tried to pivot, so I get Item, Value Stream, Inventory Cat, On Hand Value - but the relationship isn't working. I'm getting every value stream for each item and every Inventory Cat, etc, etc.

Where am going wrong?

1653399694609.png
1653399756537.png
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi, I have 3 tables in a file:

ItemAttr - contains information about every item, such as make / Buy, Planner Code, Value Stream
InvCat - Has an inventory category for each item - FG, RM or SemiFinished
OhHand - On Hand inventory qty and value for all items on hand.

I've created relationships and tried to pivot, so I get Item, Value Stream, Inventory Cat, On Hand Value - but the relationship isn't working. I'm getting every value stream for each item and every Inventory Cat, etc, etc.

Where am going wrong?

View attachment 65435View attachment 65436
I noticed that ItemAttr to InvCat is many to one, instead of one to one. That is incorrect, but I can't see where to change it. I've reconfigured to have ItemAttr and InvCat both connect many to one with OnHands, but it doesn't change my result
 
Upvote 0
You need to add a value field to the pivot table.
 
Upvote 0
Solution
You need to add a value field to the pivot table.
OMG! That easy! I make regular pivots sometimes without values, never thought that could be the issue. Thank you so much!
 
Upvote 0
What can I say - DAX and the data model are a bit weird. :)
 
Upvote 0

Forum statistics

Threads
1,223,664
Messages
6,173,654
Members
452,525
Latest member
DPOLKADOT

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