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

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors