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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.