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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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/

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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