自动刷新 powerpivot 数据
我想知道是否有任何方法可以创建一个选项,在服务器端发生数据更改时安排自动刷新电源枢轴数据,而无需使用任何共享点场。
I wanted to know if there are any ways in which we can create an option of scheduling an automatic refresh for the power pivot data when ever there is change of data at the server side without using any share point farm.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这对我有用。
我的情况是:
我想以编程方式设置数据透视报表过滤器的值,该过滤器间接向 Powerpivot 表提供数据。刷新 Powerpivot 表中的数据后,我想刷新基于 Powerpivot 表构建的 Powerpivot 表。这就是我写的:
技巧是在执行上述代码之前保持 Powerpivot 窗口打开。只需单击 Excel 中 PP 加载项中的“Powerpivot 窗口启动”按钮即可。
希望这对您有帮助!
This has worked for me.
My situation was:
I wanted to programatically set value of a Pivottable Report Filter, which indirectly supplies data to the Powerpivot table. After data in Powerpivot table is refreshed I wanted to refresh the Powerpivot tables built on the Powerpivot table. This is what I wrote:
The trick is to keep the Powerpivot window open before executing the above code. Just click on the "Powerpivot Window Launch" button from the PP add-in in Excel.
Hope this helps you!
全新的简短回答:是的 :)
看一下 codeplex 上的 Excel 刷新服务 - 它将刷新 PowerPivot多维数据集和 Excel 数据连接,无需 Excel 插件或宏
All-new short answer: Yes :)
Take a look at the Excel Refresh Service on codeplex - it will refresh PowerPivot cubes and Excel data connections without requiring Excel plugins or macros
简短回答:否。
详细回答:您可以在工作簿中编写一些 VBA 代码,以便在打开文件时刷新数据。然后,您可以创建一个定期查询数据集的存储过程,如果检测到更改,则调用打开 Excel 文件的脚本,触发 VBA 刷新 Powerpivot,然后关闭 Excel 文件。
Short Answer: No.
Long Answer: you could write some VBA code in the workbook that refreshes the data upon opening the file. Then you could create a stored procedure that regularly queries the dataset, and if a change is detected calls a script that opens the Excel file, triggering the VBA to refresh the Powerpivot, and then closes the Excel file.