dbTalk Databases Forums  

Count the number of months since start date

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


Discuss Count the number of months since start date in the microsoft.public.sqlserver.olap forum.



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

Default Count the number of months since start date - 10-14-2010 , 06:12 AM






I have a Measure.TransactionValue and also a Date.Month Dim and a
Subscriber Dim

I want to do a Count of months since first transaction date by
Subscriber

i..e
Subscriber | Month | Measure.TransactionValue |
Measure.MonthsSinceFirstTran
1 | 201002 | 0 | 0
1 | 201003 | 100 | 1
1 | 201004 | 200 | 2
1 | 201005 | 300 | 3
1 | 201006 | 0 | 4
1 | 201007 | 50 5

Make sense?

Any help would be greatly appreciated.

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 - 2013, Jelsoft Enterprises Ltd.