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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,216,031
Messages
6,128,424
Members
449,450
Latest member
gunars

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