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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
PDRTXRA
Helper I
Helper I

Best Product per Client

Hello.

I have two tables. One with clients. One with sales.

I want to create 3 columns in my clients table.

 

First column: Name of the product in which they spent the most money.

Second column: Name of the product in second place.

Third column: Name of the product in third place.

 

To clarify: I need the results to show the product in which the client spent the most money overall. So, for example, if a client spent 20€ on boots  and 50€ on 10 t-shirts, it should say t-shirt, even tho boots are more expensive than t-shirts.

 

Besides that, I need to filter the sales table since I don't want all transactions to be considered. Let's say I want to filter by ProductCategory. 

 

ClientIDNameLastName
1JohnJohnson
2MarySmith
3PeterMiller

 

TransactionIDClientIDProductNameSalesValueProductCategory
12Shirt5A
21Sweater15C
33Shirt5A
43Pants10D
52Socks1D
61Boots20E
71Shirt5A
82Boots20E
92Sweater15C

 

Thank you in advance. 

2 REPLIES 2
PDRTXRA
Helper I
Helper I

Not quite the solution I want. I explain in more detail what I'm looking for in this topic since the other one is marked as resolved.

pratyashasamal
Super User
Super User

Hi @PDRTXRA ,
This issue has already been solved in another community question .Please check out the below link :-
https://community.powerbi.com/t5/Desktop/Finding-Best-Product-per-Client/m-p/3032208

Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





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

Proud to be a Super User!





Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.