Cross filtered tables - pivot with dimensions from multiple DIM tables

serky

New Member
Joined
Jun 30, 2014
Messages
39
Hi

I have a question wrt to an existing thread: https://www.mrexcel.com/forum/power-bi/1064965-dax-cross-filtering.html

The diagram below shows the model and the solution was:

[# Contracts] = CALCULATE ( COUNTROWS ( Contracts ), SuppliersProducts )

WuOw2Bd.png
=

This all works fine but my issue is when I create a pivot table the data does not filter properly depending on the data selected.

1. if I have Products[Product Name] as a row filter and [# Contracts] in the body, it's OK
2. if I add Suppliers[Supplier Name] to the row filters, all the suppliers are listed against every Products[Product Name]. So if there are 100 suppliers in the Suppliers table, 100 Supplier Names are listed for each product. This is not correct as I should only get suppliers who provide a given product.

How do I show only the suppliers that sell a given product?

Thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Please do not reply to this as I'm seeking other help and will post an answer when it's available.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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