Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Slicer (Have product X but not product Y)

Hi

I'm trying to figure out how to get an illustration where i can choose a product and then another illustration will show me who does NOT have that product. 

 

My data is sorted like this: 

CustomerDateProductAmount
101.01.2019A642
101.01.2019B764
101.01.2019C608
102.01.2019A312
102.01.2019B991
102.01.2019C448
103.01.2019A701
103.01.2019B795
103.01.2019C377
201.01.2019A172
201.01.2019B621
201.01.2019C278
201.01.2019D943
202.01.2019A720
202.01.2019B447
202.01.2019C767
202.01.2019D932
203.01.2019A212
203.01.2019B267
203.01.2019C885
203.01.2019D331

 

I have created a slicer where i can pick all my products as shown below (A, B, C, D etc.):

Udklip.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I have also created a meassure that show the customers who have bought this combination of products: 

!Specific Customers that have selected module =
VAR tmpTable1 = GENERATE(VALUES(Customers[Customer]);
EXCEPT(
VALUES(ApiUsage2019[Content.ApiMethodName]);
CALCULATETABLE(VALUES(ApiUsage2019[Content.ApiMethodName]))))
VAR tmpTable2 = SUMMARIZE(tmpTable1;Customers[Customer])
VAR tmpTable3 = EXCEPT(VALUES(Customers[Customer]);tmpTable2)
RETURN CONCATENATEX(tmpTable3;[Customer];"
")
 
This measure is put into an illustration and it comes out like this (All customer that have the chosen products): 
Udklip.PNG
The thing i need, is to know, if it is possible to create a slicer where i can pick products that the customer "does not have". 
So that i can show customers that have a certain product combination but does not have the selected product(s) from the slicer "does not have" 
 
e.g. if i pick product A, B and C from my current slicer and product D from "does not have" customer 1 would show up, because in the data they have bought A, B and C but not D.

 

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may create measure like DAX below.

 

 

Except slicer =CONCATENATEX (EXCEPT ( ALL ( Table1[Product] ), ALLSELECTED ( Table1[Product] ) ),Table1[Product],", ")

 

Result:

 

66.png

 

 

 

 

 

 

 

 

 

 

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi v-xicai 

 

Thanks for the reply, but it was not quite what is was looking for. 

 

The thing you gave me shows what products have not been chosen from the slicer. It does not show what customers that does not have those products. 

 

I don't know if it is possible but i kinda need two slicers. 

One where i choose specific products that it want to know which companies have and another slicer where i select products which companies does not have. 

 

So a third table will show me companies that have the selected products from slicer 1 but not the selected products from slicer 2.  

Anonymous
Not applicable

 

Udklip.PNG

 

 

 

 

 

 

 

 

 

Above i have attached a phote of a matrix illustration. Customers are in the first collums and then two selected products are in the second and third collum. 

I would like a visual that shows me the customer "Profil Art" if i selected "Have: getcookiehistory" and sellect "Does not have getcookierecommendations"

 

Right now this is the best solution but i have to manually look thorugh hundres of customers and write them down seperately for all that have product X but not Y. 

Furthermore i would like to be able to compare more than 2 products, which is difficuelt with the previous mentioned method. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.