1

If I run this query

SELECT 
[Measures].[EMPLOYEE Recordable Case Rate] ON COLUMNS,
[DIM TIME].[YEAR -  QUARTER -  MONTH].[2006].[Q1]:  [DIM TIME].[YEAR -  QUARTER -  MONTH].[2010].[Q1] on ROWS

FROM
[NH_INCID]  
WHERE {[Business Component].[Region].[Novelis North America]}

It gives records starting from 2006 Q1, 2006 q2,2006 Q3, 2006 Q4------2010

Is there any way to fetch only Q1 of each year ie, of 2006,2007,2008,2009,2010 ?

4

1 回答 1

5

您可以使用季度维度属性仅过滤 Q1 并在 where 子句中对您想要的年份跨度进行过滤。

Select {[Measures].[EMPLOYEE Recordable Case Rate]} ON COLUMNS, 
{[DIM TIME].[YEAR - QUARTER - MONTH].[Quarter].members } on 1
from [Model] 
where ({ [Dim Time].[Year].[2006]:[Dim Time].[Year].[2012]}, [Dim Time].[Quarter].[Q1])

您也可能想出一种方法来获得这一年并与 firstchild 一起做点什么,但我上面的回答似乎更快/更容易。

于 2013-07-12T13:35:12.647 回答