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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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