Forum Discussion

pschommer's avatar
pschommer
Icon for Helper II rankHelper II
9 years ago
Solved

Combined item sales

My situation is something like the following: Clothing seller wants to know what combination of shirts are sold together. One table (SALES) exists to track all sales. I want to be able to select 2 s...
  • Anonymous's avatar
    Anonymous
    9 years ago

    pschommer,

    Create a orderid column in SALES table using the DAX below.

    orderid = CONCATENATE(SALES[CASHIER],CONCATENATE(SALES[CUSTOMER],SALES[ORDERDATE]))

    Then create the OrderID table with the following DAX.


    After that, create a relationship between SALES table and the new OrderID table using the ordered column, and you will get expected result by creating three custom columns(Red, Blue and White) following smoupre's suggestion.

    OrderID Table = DISTINCT(SALES[orderid])

    Regards,
    Lydia