dbTalk Databases Forums  

Cumulative total

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


Discuss Cumulative total in the microsoft.public.sqlserver.olap forum.



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

Default Cumulative total - 08-01-2003 , 05:54 PM






Hi,

How would I create a cumulative total for a total?

For eg:

Project Jan Feb Mar
ABC 1500 2500 3000
DEF 1000 1000 1000
Total 2500 3500 4000
Cum Total 2500 6000 10000 <---- How do I create this one

Thanks,
John



Reply With Quote
  #2  
Old   
Ray Higdon
 
Posts: n/a

Default Cumulative total - 08-01-2003 , 07:54 PM






Is this for T-SQL or MDX? if for T-SQL you can use COMPUTE
SUM

HTH

Ray Higdon MCSE, MCDBA, CCNA

Quote:
-----Original Message-----
Hi,

How would I create a cumulative total for a total?

For eg:

Project Jan Feb Mar
ABC 1500 2500 3000
DEF 1000 1000 1000
Total 2500 3500 4000
Cum Total 2500 6000 10000 <---- How do I
create this one

Thanks,
John


.


Reply With Quote
  #3  
Old   
Michael V
 
Posts: n/a

Default Re: Cumulative total - 08-02-2003 , 05:38 AM



You're looking for some of the same things that i am - here's some links
from previsous postings:

304118 INF: How To Perform Time Series Calculations
http://support.microsoft.com/?id=304118

301637 INF: How to Calculate the Cumulative Value of a Measure
http://support.microsoft.com/?id=301637

"Ray Higdon" <rayhigdon (AT) higdonconsulting (DOT) com> wrote

Quote:
Is this for T-SQL or MDX? if for T-SQL you can use COMPUTE
SUM

HTH

Ray Higdon MCSE, MCDBA, CCNA

-----Original Message-----
Hi,

How would I create a cumulative total for a total?

For eg:

Project Jan Feb Mar
ABC 1500 2500 3000
DEF 1000 1000 1000
Total 2500 3500 4000
Cum Total 2500 6000 10000 <---- How do I
create this one

Thanks,
John


.




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.