dbTalk Databases Forums  

Cumulative Range

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


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



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

Default Cumulative Range - 05-10-2005 , 12:55 PM






Hi,

I am new to the MDX syntax, would like some advice of following:

I had a dimension, namely: Account Year Month (value consists from 1990
to 2020). and another dimension: Product

with measure: Premium Amount

I would like to generate cummulative amount, I manage to do by applying
method:

Sum([AccountDate].CurrentMember.Level.Members.Item(0):
[AccountDate].CurrentMember, [Premium Amount])

I managed to get the results:

Product Year (cumulative)
1990 1991 .... 2005 2006.....2020
A 100 200
B 30 700
C 20 900

I do have collect output, however, is there any method to show only
year value exists at the fact table? If not can I create range i.e.
show only from 2000 to 2008

Kindly need your advice.

Thanks

regards,
Mango


Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Cumulative Range - 05-10-2005 , 06:23 PM






Can you use a "Non Empty" clause in your MDX query?

Quote:
With Member [Measures].[Cumulative Amount] as
'Sum(PeriodsToDate([Time].[All]),
[Measures].[Premium Amount]'

Select Non Empty [Time].[Year].Members on columns,
[Product].[ProductName].Members on rows
from [AmountCube]
where ([Measures].[Cumulative Amount])
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #3  
Old   
Mangorind
 
Posts: n/a

Default Re: Cumulative Range - 05-10-2005 , 11:01 PM



Hi,

Currently, I am creating the cubes not from the MDX query but from the
Analysis Manager - Cube (drag and drop method). And I had added the
above calculated measures for the purpose, do you think if it's
possible to use the Non Empty function?

Thanks in advance for your advice.

Regards,
Mangorind.


Deepak Puri wrote:
Quote:
Can you use a "Non Empty" clause in your MDX query?


With Member [Measures].[Cumulative Amount] as
'Sum(PeriodsToDate([Time].[All]),
[Measures].[Premium Amount]'

Select Non Empty [Time].[Year].Members on columns,
[Product].[ProductName].Members on rows
from [AmountCube]
where ([Measures].[Cumulative Amount])



- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #4  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Cumulative Range - 05-11-2005 , 12:42 AM



The Cube Browser of Analysis Manager is geared to development purposes -
not sure whether it can be customized as you want. This should be easy
with standard cube client tools like Excel Pivot Tables, though.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.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.