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

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
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.