Unexpected behaviour - Matrix visual...

Matty

Well-known Member
Joined
Feb 17, 2007
Messages
3,717
Hi,

I have a fact table (many) and a dimension table (one) with a relationship set up between the two.

I have created a matrix that is bringing values (product descriptions) in from the dimension table (as 'Rows'). I have then created a measure using data held exclusively in the fact table, which I have also brought into the matrix (as 'Values').

The issue I have is that when I bring the measure into the matrix, records show for all of the product descriptions in the dimension table even though there is no data for some in the fact table.

Is there something I need to include in my measure to suppress the product descriptions not existing in the fact table?

Hope the above makes sense.

Cheers,

Matty
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi,

If it helps, the following shows what's happening:

Fact Table
ProductSales
Apple2
Pear6
Banana8
Apple4
Pear8
Banana7
Apple2

<tbody>
</tbody>

Dimension Table
ProductPackaging
AppleBag
PearLoose
BananaBox
OrangeBag

<tbody>
</tbody>

Matrix
ProductPackagingSales
AppleBag8
PearLoose14
BananaBox15
OrangeBag0

<tbody>
</tbody>

As you can see, Orange is appearing in the Matrix, even though it does not exist in the Fact table. The only reason I can guess for this behaviour is due to the relationship existing between the Fact and Dimension tables, causing all Products from the Dimension table to be be returned, regardless of whether the Product exists in the Fact table (which my measure is calculated from).

Can someone demystify what's going on here?

Cheers,

Matty
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

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