Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi there,
So I am basically extracting the first file from a folder with power query. I use Sharepoint.Contents, and then sort by descending the modified date and keep the first row.
The issue is when I grab the content, the M Query retains the file name (Oldfile.xlsx). But Imagine the user changes the name to NewFile.xlsx the code will still have:
#"Sorted Rows"{[Name="Oldfile.xlx"]}[Content]
Thanks
Solved! Go to Solution.
This looks correct.
It's just previousStep{0}[Content] 👍
Pete
Proud to be a Datanaut!
Is it just #sortrows{0}[content]?
This looks correct.
It's just previousStep{0}[Content] 👍
Pete
Proud to be a Datanaut!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 7 | |
| 6 | |
| 6 | |
| 6 |