dbTalk Databases Forums  

Cumulative sales for a date period

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


Discuss Cumulative sales for a date period in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
tarana halsall via SQLMonster.com
 
Posts: n/a

Default Cumulative sales for a date period - 05-17-2005 , 12:26 AM






Hello

I have a sales measure in the cube.

The requirement is for the client to enter a date range and get cumulative
sales figures for each date in the range.

I am aware that providing a range is not an easy task and have decided to
provide a single date instead.

So what i need to do is get a date from the client, and use that date - 90
days (or - 3 months) to get the start date.

I need help with

1. calculating the start date?
2. calculating cumulative sales for each day, but with the first day sales
showing sales ON that day
3. calculating cumulative sales for each day, with the first day sales also
cumulative.


thanks very much

--
Message posted via http://www.sqlmonster.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.