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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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

@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/

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors