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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jaliu1290
Frequent Visitor

How to open Excel content of the first row in Advanced Editor

Hello Power Query Community!

 

I have a data source where I am opening an Excel workbook stored in a Sharepoint.

 

An updated version of this data is added in a new Excel in the same folder each week, so I want Power Query to open the "Binary" under "Contents" for only the most recently updated version.

 

To do this I sorted the tables after the Navigation step by "Date modified" in descending order so that the file I want is always in the first row (which leads to step called Sorted Rows).

 

Currently the code as is this:

 

#"File Feb 24 2025 xlsx" = #"Sorted Rows"{[Name="File Feb 24 2025.xlsx"]}[Content],

 

How do I make it like this?

 

#"First File" = #"Sorted Rows"{[ ______________ ]}[Content],

 

Thanks in advance!

 

Jamie

1 ACCEPTED SOLUTION
PwerQueryKees
Super User
Super User

#"First File" = #"Sorted Rows"{0}[Content],

View solution in original post

2 REPLIES 2
PwerQueryKees
Super User
Super User

#"First File" = #"Sorted Rows"{0}[Content],

This community is incredible... Thank you Kees!!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors