【发布时间】:2013-11-12 00:24:59
【问题描述】:
我使用SSAS 和Sql Server 2008 R2。
我写了这个查询:
Select
[Product].[Product Categories],[Product].[Category]
on columns
From [Adventure Works]
我得到了这个错误:
Executing the query ...
Parser: The statement dialect could not be resolved due to ambiguity.
Execution complete
然后我使用 {} 这样的查询:
Select
{[Product].[Product Categories],[Product].[Category]}
on columns
From [Adventure Works]
我得到了这个错误:
Executing the query ...
Query (2, 2) Two sets specified in the function have different dimensionality.
Execution complete
然后我使用这个查询:
Select
([Product].[Product Categories],[Product].[Category])
on columns
From [Adventure Works]
我得到了这个结果:
我想获取所有产品类别成员的总和默认度量
一列有总和。
但我需要一个具有并排列的结果?
我怎样才能得到这个结果?
【问题讨论】:
标签: sql-server-2008-r2 ssas mdx