我使用 SSAS 和 SQL Server 2008 R2 和 AdventureWorks 数据库。
我写了这个查询:
Select
ytd([Date].[Calendar].[Calendar Quarter].[Q3 CY 2003]) on columns
From [Adventure Works]
我得到了这个结果:
但是当我执行这个查询时:
Select
ytd([Date].[Fiscal].[Fiscal Quarter].[Q3 FY 2003]) on columns
From [Adventure Works]
我收到此错误:
Executing the query ...
Query (2, 2) By default, a year level was expected. No such level was found in the cube.
Execution complete
为什么这个查询不起作用?