Forum Discussion
Intersection Problem
- Anonymous6 years ago
for Intersection, i guess this below measure also helpful:
IF (ISBLANK (CALCULATE(COUNTROWS (FILTER (SUMMARIZE (Cust_table,Cust_table[CUST_CODE],"ProductsBought", DISTINCTCOUNT ( Sales[SKU])),[ProductsBought] = COUNTROWS ( VALUES ( Sales[SKU] ) ))))),0,CALCULATE(COUNTROWS (FILTER (SUMMARIZE (Cust_table,Cust_table[CUST_CODE],"ProductsBought",DISTINCTCOUNT ( Sales[SKU])),[ProductsBought] = COUNTROWS ( VALUES ( Sales[SKU] ) )))))
HI,
This DAX is working for me. But what if i want to filter out this DAX based on a Measure? (Lets say, i have a measure of average product sold and want to filter my DAX, given by you,based on that measure where average product sold is greater than 10)
Second thing is i'm still not able to get only customers name which bought both products. I'm getting all customer list: please refer below:
Thanks!
Hi Anonymous
Please see the screenshot and explanation below.
Red frame matrix represents your previous requirement were you asked to count at the product level and total to including only Customers who bought all selected product, for that please use Measure 3.
Green frame table is Using Measure 2 where we are going back to the requirement where you wanted to see how many customers bought all selected products.
I'm sure that from the illustration you can see that this requirement are different.
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.

Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.

- Anonymous6 years agoNot applicable
HI,
My intersection problem is solved. Thank you so much.
But measure 2 is not working for rest of the product combination. Can you please re-check Measure2?
Thank you!
- Anonymous6 years agoNot applicable
for Intersection, i guess this below measure also helpful:
IF (ISBLANK (CALCULATE(COUNTROWS (FILTER (SUMMARIZE (Cust_table,Cust_table[CUST_CODE],"ProductsBought", DISTINCTCOUNT ( Sales[SKU])),[ProductsBought] = COUNTROWS ( VALUES ( Sales[SKU] ) ))))),0,CALCULATE(COUNTROWS (FILTER (SUMMARIZE (Cust_table,Cust_table[CUST_CODE],"ProductsBought",DISTINCTCOUNT ( Sales[SKU])),[ProductsBought] = COUNTROWS ( VALUES ( Sales[SKU] ) )))))