Can PowerPivot do this?

J F V

New Member
Joined
Jul 28, 2012
Messages
2
Hi all,
I am stuck trying to visualise some data in PowerPivot Chart.

This is my issue:
Given this basic dimensional model:
[Dim Store] --> [Fact Table] <--[Dim Product]

And supposing that:
1. The Fact table is 'Factless' as only counts number of sale events by store, product and vendor;
2. The Fact table has the degenerated dimension vendorID.
3. Vendors sell products in different stores.

How to build a PowerPivot chart to show the relation below?
total (count of) vendorsID that sold the product 'P1' in the store 'S1' who also sold the product 'P2' in the store 'S2'?

Can PowerPivot show me that?
Thanks,
Juan
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If you define the following
[# P1 S1] : =COUNTROWS(FILTER(FactSales, FactSales[Product]="P1" && FactSales[Store] ="S1"))
[# P1 S2] : =COUNTROWS(FILTER(FactSales, FactSales[Product]="P2" && FactSales[Store] ="S2"))

You can try

=COUNTX(VALUES(FactSales[Vendor]); IF( [# P1 S1] >0 && [# P2 S2] >0;1;BLANK()))
or
=SUMX(VALUES(FactSales[Vendor]); IF( [# P1 S1] >0 && [# P2 S2] >0;1;0))

Edit: also check if the behaviour of the measure meets your expectations, when you add a store or a product as a filter / row / column.
 
Last edited:
Upvote 0
If you define the following
[# P1 S1] : =COUNTROWS(FILTER(FactSales, FactSales[Product]="P1" && FactSales[Store] ="S1"))
[# P1 S2] : =COUNTROWS(FILTER(FactSales, FactSales[Product]="P2" && FactSales[Store] ="S2"))

You can try

=COUNTX(VALUES(FactSales[Vendor]); IF( [# P1 S1] >0 && [# P2 S2] >0;1;BLANK()))
or
=SUMX(VALUES(FactSales[Vendor]); IF( [# P1 S1] >0 && [# P2 S2] >0;1;0))

Edit: also check if the behaviour of the measure meets your expectations, when you add a store or a product as a filter / row / column.

Genious, thanks Laurent.
 
Upvote 0

Forum statistics

Threads
1,215,048
Messages
6,122,862
Members
449,097
Latest member
dbomb1414

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