dbTalk Databases Forums  

Dimension question

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


Discuss Dimension question in the microsoft.public.sqlserver.olap forum.



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

Default Dimension question - 08-29-2003 , 08:57 AM






Hi I have a question

I have a table like this

Year Month value
2003 1 10
2003 2 11
2003 4 12
2003 5 13
2003 6 14
2003 7 15
2003 8 16
2003 9 17
2003 10 18
2003 11 19
2003 12 20

I have create a cube with 1 dimension (time), 2 levels (year, month) and 1
measure (value),
now I need to create another level dynamically create can permit me to
create a running-sum,
so when I select month 6 the sum of measure should be 10+11+12+13+14+15+16.
Ex.

If I select:
Year = 2003
Month = 1
sum of value measure should be = 10

If I select
Year = 2003
Month = 2
sum of value measure should be = 21


Is possible to do this ?

Thanks in advance


Simon



Reply With Quote
  #2  
Old   
Lutz Morrien
 
Posts: n/a

Default Dimension question - 08-29-2003 , 10:01 AM






Try something like

Sum({[time].[2003].FirstSibling:[time].
[2003].currentmember},[measures].[value])

HTH Lutz
Quote:
-----Original Message-----
Hi I have a question

I have a table like this

Year Month value
2003 1 10
2003 2 11
2003 4 12
2003 5 13
2003 6 14
2003 7 15
2003 8 16
2003 9 17
2003 10 18
2003 11 19
2003 12 20

I have create a cube with 1 dimension (time), 2 levels
(year, month) and 1
measure (value),
now I need to create another level dynamically create
can permit me to
create a running-sum,
so when I select month 6 the sum of measure should be
10+11+12+13+14+15+16.
Ex.

If I select:
Year = 2003
Month = 1
sum of value measure should be = 10

If I select
Year = 2003
Month = 2
sum of value measure should be = 21


Is possible to do this ?

Thanks in advance


Simon


.


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.