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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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