简体   繁体   中英

POWER BI Refresh data source from Excel where file name changes daily

I am building a report in Power BI of my company's daily figures. Those figures are published each morning in an excel file to our company server. I would change the scripts that build this file, but at the moment that's not an option.

However, that file name has the date in it each day, so the filename CHANGES every day.

Essentially I am trying to use an expression for the excel query to include the system date in the concatenated filename each morning.

Power BI's Queries can start by reading a folder of files (Get Data / Folder). It treats them as a table of data (one row per file).

You can then filter that table (eg Sort by Date modified, Keep Rows / Keep Top Rows / 1), before using the Combine Files button on the Content column - this will generate a function that will work against any file(s) allowed through your filters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM