PowerBI DAX Filter against another table

gavs73

Board Regular
Joined
Apr 22, 2008
Messages
138
Hi

Would appreciate any help with this, I have two tables, one of Sales and one of VIP Customers, the sales table will include customers not in the VIP Customer table.

I want to create a Measure to find a distinct count of VIP Customers in the Sales table who have bought a sale and a non sale product.

I’ve been trying to filter the Sales Table on the VIP Customer table, to get sales only relating to VIPs and then Distinct Counting those but I’ve had no success.

Thanks for any help.

Gav



VIPSales =

CALCULATE(

DISTINCTCOUNT(

Sales[USERID]),

Sales[SaleItem]=1|| Sales[SaleItem]=0 -- This filters on VIPs who have had a sale and non sale purchase in the month

CROSSFILTER(Sales{UserID],VIPS[UserID],OneWay_LeftFiltersRight)

)
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,215,494
Messages
6,125,139
Members
449,207
Latest member
VictorSiwiide

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