MS Excel - 数据透视表 - 当源数据不是电子表格中的选项卡时访问源数据
我有一个外部供应商通过电子邮件发送给我的电子表格。它包含一堆数据透视表。我真的不太关心数据透视表,我只想要基础数据。数据来自我无权访问的 SQL 服务器,但数据存储在电子表格中。无论如何,我是否可以直接访问数据(我认为是数据透视缓存),而无需深入到数据透视表之一?
我想要某种可以从 SSIS 使用的 ODBC/ADO.Net 命令。但我对任何不需要我打开和保存工作簿的事情都持开放态度。
如果可能的话,我还想避免使用宏。
I have a spreadsheet that is emailed to me by an outside vender. It contains a bunch of pivot tables. I really couldn't care less about the pivot tables, I just want the underlying data. The data comes from a sql server that I don't have access to, but the data is stored within the spreadsheet. Is there anyway that I can access the data, (I think it's the PivotCache) directly without drilling into one of the pivot tables?
I'd love some sort of ODBC/ADO.Net command that I can use from SSIS. But am open to just about anything that doens't require me to open and save the workbook.
I'd also like to avoid macros if at all possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案如下。或者至少我为解决问题所做的事情。
除了通过数据透视表之外,实际上没有其他方法可以访问基础 PivotCache 数据。所以直接访问就被淘汰了。我最终使用带有 excel ole 的脚本任务来动态创建一个包含运行时所需数据的数据透视表。脚本任务完成后,我将使用新的数据透视表作为我的数据流源。 Excel 的自动化可能有点棘手,但这是值得的。
Here's the answer. Or at least what I did to resolve my problem.
There is really no way to accss the underlying PivotCache data except via pivot tables. So direct accss was out. I ended up using a script task with excel ole to dynamically create a pivot table with the data I needed at run time. Once the script task is done, I then use the new pivot table as my dataflow source. Excel can be a little tricky to automate, but it's worth it.