0

I am a total beginner with analysis services / performance point and I need some help to create a diagram.

I am using the Contoso sample database.

I found a tutorial which helped me to create the following diagram:

Months on X axis, Sales amount on Y axis and I displayed the data for the years 2008 and 2009

So with this diagram I get on X axis the months from January 2008 to December 2009. (I use data from [Date].[Calendar Month]) The problem is that I need to compare data of different years month by month. So on the X axis I need to display the month from january to december regardless of year information.

I tried to use MDX query and the parrallelperiod function but I could not display what I need. I thought I need to group the data by the name of the month so I tried unsuccessfully to use 'group by' like in sql. Maybe I need more data in the cube ? like the list of the months (without the year relation)

I'm not sure about the direction to take, any help would be greatly appreciated. I can provide more details if you need.

(It seems that adventurework has pretty similar dimensions so if someone did the same thing with this cube it would be great too.)

[EDIT]

Here is the query automatically generated:

SELECT
HIERARCHIZE( { [Date].[Calendar Month].&[200901], [Date].[Calendar Month].&[200902], [Date].[Calendar Month].&[200903], [Date].[Calendar Month].&[200904], [Date].[Calendar Month].&[200905], [Date].[Calendar Month].&[200906], [Date].[Calendar Month].&[200907], [Date].[Calendar Month].&[200908], [Date].[Calendar Month].&[200909], [Date].[Calendar Month].&[200910], [Date].[Calendar Month].&[200911], [Date].[Calendar Month].&[200912], [Date].[Calendar Month].&[200812], [Date].[Calendar Month].&[200811], [Date].[Calendar Month].&[200810], [Date].[Calendar Month].&[200809], [Date].[Calendar Month].&[200808], [Date].[Calendar Month].&[200807], [Date].[Calendar Month].&[200806], [Date].[Calendar Month].&[200805], [Date].[Calendar Month].&[200804], [Date].[Calendar Month].&[200803], [Date].[Calendar Month].&[200802], [Date].[Calendar Month].&[200801] } )
ON COLUMNS,

HIERARCHIZE( { [Date].[Calendar Year].&[2008], [Date].[Calendar Year].&[2009] } )
ON ROWS

FROM [Sales]

WHERE ( [Measures].[Sales Amount] )

CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL, FONT_FLAGS, FORE_COLOR, BACK_COLOR

[/EDIT]

Thank you.

4

2 に答える 2

1

時間ディメンション属性間の属性関係を次のように変更します: Date->Month->Year フィルターで任意の年を選択できます。X 軸の月は対応する年になります。X 軸に 5 月があり、どの年も選択されていない場合 (デフォルトではすべてのメンバー)、すべての 5 月が累積されますが、2010 年を選択すると 2010 年 5 月になり、フィルタで 2011 年を選択すると 2011 年になります。 X 軸は 2011 年 5 月になります。

于 2012-07-02T07:45:41.320 に答える