Forum Discussion
Anonymous
6 years agoNot applicable
Intersection Issue in DAX
Hi All, Since i didnt get proper solution in last post. I m posting another time. I have two columns with name Product Code and Customer Name. I want to calculate the unqiue number of customers ...
Zubair_Muhammad
6 years agoCommunity Champion
Anonymous
Similarly if you want the list of such customers in a card visual, you can use this MEASURE
ListOfCustomers =
VAR myproducts =
COUNTROWS ( ALLSELECTED ( Table1[ProductCode] ) )
RETURN
CONCATENATEX (
FILTER (
VALUES ( Table1[CustomerCode] ),
COUNTROWS (
INTERSECT (
ALLSELECTED ( Table1[ProductCode] ),
CALCULATETABLE ( VALUES ( Table1[ProductCode] ) )
)
) = myproducts
),
[CustomerCode],
UNICHAR ( 10 )
)