Forum Discussion
Wkeith
Helper II
7 years agoDuplicate 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
Super User
7 years agoHi 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
- Wkeith7 years ago
Helper II
Thanks! You rock.