dbTalk Databases Forums  

MDX query to show FY2004, FY2005, ... FY~n on columns and distinct set of months (Jan...Dec) on rows...

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss MDX query to show FY2004, FY2005, ... FY~n on columns and distinct set of months (Jan...Dec) on rows... in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tim Ellison
 
Posts: n/a

Default MDX query to show FY2004, FY2005, ... FY~n on columns and distinct set of months (Jan...Dec) on rows... - 01-25-2006 , 03:54 PM






Hi all. I'm trying to show a distinct list of months on the rows and
calculated measures for fiscal year on the columns, but I end up with
duplicate names for the months on the rows.

Fiscal year totals are calculated measures.

What is the best way in MDX to accomplish the "Unique Month Name on Rows"
trick?

Thanks.

Tim



Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: MDX query to show FY2004, FY2005, ... FY~n on columns and distinct set of months (Jan...Dec) on rows... - 01-25-2006 , 10:57 PM






Hi Tim,

Could you describe your time dimension(s) - are fiscal years and months
on different dimensions? And are you using AS 2000 or AS 2005?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #3  
Old   
Timmay!
 
Posts: n/a

Default Re: MDX query to show FY2004, FY2005, ... FY~n on columns and distinct set of months (Jan...Dec) on rows... - 01-26-2006 , 06:31 PM



Thanks Deepak.

We're running SQL2K. The time dimension is calendar years. We do not have
a separate dimension for months.

Time
- Year
- 2004
- January
. ~
. ~
. ~
- ~December

I may be trying to solve a 3-dimensional problem in a 2-dimensional world
too though. We're trying to chart a series of year-month values across an
x-axis of months to show the comparisons of years across each month. At the
same time, we have a "target" value (our KPI) that doesn't change across
years. When I try to plot this in reporting services, I
<italic>could</italic> add each year as my series along with my target, but
then I get a target for each year which isn't the desirable outcome. So my
solution was to try to split the time dimension and produce year * month
measures with the months across the x-axis. I don't know if this is even
possible in SQL2KAS.

Thanks.

"Deepak Puri" <deepak_puri (AT) progressive (DOT) com> wrote

Quote:
Hi Tim,

Could you describe your time dimension(s) - are fiscal years and months
on different dimensions? And are you using AS 2000 or AS 2005?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***



Reply With Quote
  #4  
Old   
Deepak Puri
 
Posts: n/a

Default Re: MDX query to show FY2004, FY2005, ... FY~n on columns and distinct set of months (Jan...Dec) on rows... - 01-26-2006 , 07:52 PM



In the case of AS 2000, you could create appropriate Member Properties
at the Month level; then add a Month virtual dimension, based on these
properties. Such a new virtual dimension would permit year vs month
analysis.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #5  
Old   
Timmay!
 
Posts: n/a

Default Re: MDX query to show FY2004, FY2005, ... FY~n on columns and distinct set of months (Jan...Dec) on rows... - 01-27-2006 , 05:55 AM



Thanks Deepak.

"Deepak Puri" <deepak_puri (AT) progressive (DOT) com> wrote

Quote:
In the case of AS 2000, you could create appropriate Member Properties
at the Month level; then add a Month virtual dimension, based on these
properties. Such a new virtual dimension would permit year vs month
analysis.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.