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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kyriakos
New Member

DAX FORMULA FOR PRODUCTS TABLE

Hi Everyone,

 

So i have the data below (part of it). What the table shows are products purchased by each customer. Order ID may appear more than once (that is why a created a UNIQUE column, that concatenates ORDER ID, DATE and STORE ID). What i want to do is to create a column, that shows what other products were purchased by a customer. To be more specific (as shown in the table below), i have the same order ID appearing 3 times (this is one unique purchase as on 1st of May). Customer purchased 3 items (quantities differ) - Item Code 9350 (quantities 2) and item code 9100 (quantities 1 and 1). What i want to do is to have a column that returns the below:

 

If product 9350 was purchase, the customer also purchased product 9100 (quantities).

 

How is this possible?

 

kyriakos_0-1655888170538.png

 

 

Many thanks

1 REPLY 1
Anonymous
Not applicable

Hi @kyriakos 

Can you provide a complete sample that can show all your tables and the relationships between them . From the information you have provided so far, there is no way to create the columns you need .

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.