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
erhan_79
Post Prodigy
Post Prodigy

the latest price on the table

hi there ,

 

i have a table "A "as below ,  i would like to create another new table" B" which shows the latest prices based on latest date .Could you pls help me

 

Capture.JPG

 

 

 

 

1 ACCEPTED SOLUTION
PC2790
Community Champion
Community Champion

Just in case you want to do it in Power Query, you can use the concept of grouping.

Sharing the file with the logic implemented for your reference.

View solution in original post

2 REPLIES 2
PC2790
Community Champion
Community Champion

Just in case you want to do it in Power Query, you can use the concept of grouping.

Sharing the file with the logic implemented for your reference.

johnt75
Super User
Super User

You could create Table B as

Table B = GENERATE( ALLNOBLANKROW( 'Table A'[Material]),
SELECTCOLUMNS( TOPN(1, 'Table A', 'Table A'[Date]), "Date", 'Table A'[Date], "Price", 'Table A'[Price])
)

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!

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.

December 2024

A Year in Review - December 2024

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