dbTalk Databases Forums  

Cummulative Total

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


Discuss Cummulative Total in the microsoft.public.sqlserver.olap forum.



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

Default Cummulative Total - 01-13-2004 , 02:40 PM






Hello, I have a time dimension. That I created using a table. I did
not have anlysis server parse out the time field. The time dimension
goes as follows.
Year->Quarter->month->week->day

I also have a measure called sales. What I would like to do is create
a cummulative total by week. i.e. the data should look as follows.
Total Cummulative Total
week1 200 200
week2 150 350
week3 200 550

How do I do this in analysis server using MDX?

Thanks in advance,

David

Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: Cummulative Total - 01-13-2004 , 02:43 PM






Create a calc something like this:

SUM(YTD(), MyMeasure)

public @ the domain below
www.tomchester.net

"David" <davidmontgom (AT) hotmail (DOT) com> wrote

Quote:
Hello, I have a time dimension. That I created using a table. I did
not have anlysis server parse out the time field. The time dimension
goes as follows.
Year->Quarter->month->week->day

I also have a measure called sales. What I would like to do is create
a cummulative total by week. i.e. the data should look as follows.
Total Cummulative Total
week1 200 200
week2 150 350
week3 200 550

How do I do this in analysis server using MDX?

Thanks in advance,

David



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.