Unix Technical Forum

two time dimensions

This is a discussion on two time dimensions within the SQL Server Data Warehousing forums, part of the Microsoft SQL Server category; --> In Analysis Manager Ive a cube with the following time dimension DayView --> Year --> Week --> Day Ive ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server Data Warehousing

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 06:07 PM
John
 
Posts: n/a
Default two time dimensions

In Analysis Manager Ive a cube with the following time dimension

DayView --> Year
--> Week
--> Day

Ive one measure called Hours

What I need to do is to add a calculated measure which will give me the
MONTH to date figures.

Does anyone know how I can add a monthly running total to my cube.

I need to have something like this :-

2003
Week 19 Week 20
May 1 May 2 May 3 May 4 May 5 May 6

Hours 5 6 5 3 4 2
Month2Date 5 11 16 19 23 25


Does anyone have any Ideas ?

Thanks,
John.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 06:07 PM
Matt Carroll [MS]
 
Posts: n/a
Default Re: two time dimensions

Check out the MTD and PeriodsToDate MDX functions in Books Online.

- Matt Carroll
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"John" <jcarter@impaq.co.uk> wrote in message
news:24122ddd.0308040356.222a460d@posting.google.c om...
> In Analysis Manager Ive a cube with the following time dimension
>
> DayView --> Year
> --> Week
> --> Day
>
> Ive one measure called Hours
>
> What I need to do is to add a calculated measure which will give me the
> MONTH to date figures.
>
> Does anyone know how I can add a monthly running total to my cube.
>
> I need to have something like this :-
>
> 2003
> Week 19 Week 20
> May 1 May 2 May 3 May 4 May 5 May 6
>
> Hours 5 6 5 3 4 2
> Month2Date 5 11 16 19 23 25
>
>
> Does anyone have any Ideas ?
>
> Thanks,
> John.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 06:07 PM
John
 
Posts: n/a
Default Re: two time dimensions

Ive looked at both of these functions however they seem to require a month to
be part of my time dimension for them to generate the required results.

Ive tried adding a second time dimension which has a month element
however this only works when the second time dimension is in use.

Its a requirement that the year - week - day dimension is used.

Thanks,
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 06:07 PM
Matt Carroll [MS]
 
Posts: n/a
Default Re: two time dimensions

According to BOL:
PeriodsToDate(level, member) is the same as
TopCount(Descendants(Ancestor(member, level), member.Level), 1):member

You could create a month member property on the day level, take the above
MDX and add to it a filter to just include members with the same month. It
will take some fiddling with and may not be super fast, but it should be
doable.

- Matt Carroll
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"John" <jcarter@impaq.co.uk> wrote in message
news:24122ddd.0308050047.8c82ed4@posting.google.co m...
> Ive looked at both of these functions however they seem to require a month

to
> be part of my time dimension for them to generate the required results.
>
> Ive tried adding a second time dimension which has a month element
> however this only works when the second time dimension is in use.
>
> Its a requirement that the year - week - day dimension is used.
>
> Thanks,
> John



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com