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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors