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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
fabio7xavier
Frequent Visitor

List of different products and average of quantity

Hello!

 

I have a big dataset that contains multiple purchase records of several customers in a store.

The table is composed with 7 columns: ClientID, Prod1, Prod1_Qt, Prod2, Prod2_Qt, Prod3, Prod3_Qt. 

In other words, for each client there is a record of 3 products purchased and the respective quantity.

Is there any way to obtain a table, with two different columns, the list of all products purchased and the average of the quantity?

Note that products are not always in the same order.

 

ClientProd1Prod1_QtProd2Prod2_QtProd3Prod3_Qt
1clock2tracksuit1sneakers3
2ball3sneakers2racket1
3tracksuit1clock2ball4

 

Thank you in advance!
-- Fábio Ferreira

1 REPLY 1
camargos88
Community Champion
Community Champion

Hi @fabio7xavier ,

 

Are you brazilian ?

 

I've created this file as an example: Download PBIX 

 

I hope it helps,

 

Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.