cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PDRTXRA
Helper I
Helper I

Top 1,2,3 Product per Client

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:

  • Bought 3x a tshirt for 5€. (15€)
  • Bought 1x boots for 10€. (10€)

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.

 

 

1 REPLY 1
amitchandak
Super User
Super User

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors