Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello.
I have two tables. One has Clients, each one with this unique ID (clientID)
Second table has transactions, each one with a unique ID (transID). The transaction table also has what client did the transaction.
The tables are related through ClientID.
I need to create a calculated column in my clients table that tells me the name of the product that each client spent more money overall.
Lets say this happens:
Client A:
I would want the result to say tshirt.
Also, I need it to choose in some way in case of a draw.
If possible, I would need to get the product in second and third place.
Cheers.
@PDRTXRA , Use measure and table/visual to display
example
https://www.sqlbi.com/articles/filtering-the-top-3-products-for-each-category-in-power-bi/
| User | Count |
|---|---|
| 56 | |
| 41 | |
| 38 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 140 | |
| 102 | |
| 64 | |
| 36 | |
| 35 |