Forum Discussion
Wkeith
6 years agoHelper II
Duplicate Concatenate Question
Hi, I am trying to concatenate products that belong to the same order ID to do some market basket analysis. So for example, lets say for an order number that has these products sold in it: Milk, Brea...
MFelix
6 years agoSuper User
Hi Wkeith ,
Try to change you formula to something similar to this:
Market Basket = CALCULATE( CONCATENATEX(DISTINCT(Sales[Product]), Sales[Product], “-“ ), FILTER( ALL(Sales), Sales[Transaction ID] = EARLIER(Sales[Transaction ID]) ) )
Regards,
MFelix
Wkeith
6 years agoHelper II
Thanks! You rock.