简体   繁体   English

来自Excel的POWER BI Refresh数据源,文件名每天更改

[英]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. 我正在Power BI中生成有关公司日常数据的报告。 Those figures are published each morning in an excel file to our company server. 这些数字每天早上以excel文件的形式发布到我们公司的服务器上。 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. 本质上,我每天早上都在尝试对excel查询使用表达式,以将系统日期包含在串联的文件名中。

Power BI's Queries can start by reading a folder of files (Get Data / Folder). Power BI的查询可以通过读取文件文件夹(获取数据/文件夹)开始。 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. 然后,您可以在使用“内容”列上的“合并文件”按钮之前,过滤该表(例如,按修改的日期排序,保留行/保留最前面的行/ 1)-这将生成一个函数,该函数可对通过以下方式允许的任何文件起作用您的过滤器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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