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