- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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.
ClientID | Name | LastName |
1 | John | Johnson |
2 | Mary | Smith |
3 | Peter | Miller |
TransactionID | ClientID | ProductName | SalesValue | ProductCategory |
1 | 2 | Shirt | 5 | A |
2 | 1 | Sweater | 15 | C |
3 | 3 | Shirt | 5 | A |
4 | 3 | Pants | 10 | D |
5 | 2 | Socks | 1 | D |
6 | 1 | Boots | 20 | E |
7 | 1 | Shirt | 5 | A |
8 | 2 | Boots | 20 | E |
9 | 2 | Sweater | 15 | C |
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
10-13-2024 05:09 PM | |||
09-30-2024 09:21 AM | |||
09-13-2024 02:32 PM | |||
01-19-2023 10:23 AM | |||
01-08-2025 05:03 AM |
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |