来自UNION查询的数据透视表源 [英] Pivot Table source from a UNION query
问题描述
大家好
我使用Excel来创建基于存储在Access 2007中的UNION查询的数据透视表。但是,创建数据透视表时。 UNION查询无处可见。所以,我创建了一个从UNION表中查询的视图。有用。但是,数据
似乎不对。因此,我通过复制并粘贴UNION查询中的数据来检查excel并创建数据透视表,它显示了不同数量的记录。提取出的总记录应该是大约3000,并且在
上显示的记录只有16。
I made used Excel to to create a pivot table based on an UNION query stored in Access 2007. However, when creating the pivot table. The UNION query is no where to be seen. So, I create a view to query from the UNION table. It works. However, the data doesn't seems to be right. So, I did a check by copying and paste the data in the UNION query to excel and create the pivot table, it show a different number of records. Total records extracted out should be approx 3000 and the records that is shown on the pivot is only 16.
请告知这是否是Microsoft Excel 2007中的限制/错误或者有没有办法解决这个问题?
Pls advise if this is a restriction/ a bug in Microsoft Excel 2007 or is there way to counter this issue?
推荐答案
Hello Pivot表用户:
$
确保没有双引号 任何 在您的联合查询的SQL
语句中。仅使用单引号。
双引号会导致"预期的参数太少"。错误信息。
您还需要使用"ms query"。创建使用联合查询作为数据源的数据透视表。
点击数据标签--->来自其他来源--->来自MS查询
Click on the Data tab--->From Other Sources--->From MS Query
出于某种原因,当您从插入选项卡中"插入"数据透视表时,联合查询不会显示为可用的外部数据源
祝你好运$
$
Michael
For some reason the union queries do not show as an available external data source when you click on the 'insert' a Pivot table from the insert tab
Good luck
Michael
这篇关于来自UNION查询的数据透视表源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!