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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply

Retrieve a single row from a table based on Max value in a column

Hi,

 

I am trying to retrieve a single row from a table that contains the highest value in the "Sale Price" column. This is an example:

AddressCitySale DateSale Price
12 Union StNYC1/24/2017$1,800
616 President StLA2/2/2017$1,900
56 5th AveNYC2/8/2017$2,100
890 Bergen StMiami2/21/2017$1,250

 

I want to get this as a result (this is the row with the highest value in the Sale Price column):

56 5th AveNYC2/8/2017$2,100

 

How could I achieve this?

 

Many thanks!

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Add all the fields to your matrix then apply a Top N filter to the address based on Sales Price.

top1.jpg

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

Add all the fields to your matrix then apply a Top N filter to the address based on Sales Price.

top1.jpg

Thank you.

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.