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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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