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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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