dbTalk Databases Forums  

Cumulative Sums and OWC filters

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


Discuss Cumulative Sums and OWC filters in the microsoft.public.sqlserver.olap forum.



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

Default Cumulative Sums and OWC filters - 04-07-2005 , 09:41 AM






My cube has two dimensions : Time and Geography. It has one measure:
SalesAmount
I need a cumulative sum for SalesAmount over geography dimension. I have
a calculated member for this. MDX for this calculated member is as
follows:
SUM(
HEAD(
ORDER({[GEOGRAPHY].Parent.Children},[Measures].[SALESAMOUNT],BDESC),
RANK([GEOGRAPHY],
Order({GEOGRAPHY].Parent.Children},[Measures].[SALESAMOUNT],BDESC)
)
),[Measures].[SALESAMOUNT])


For the selected time period the following report is generated:
Geography-SalesAmount-CumSalesAmount
Geo-1....-........100-...........100
Geo-2....-........200-...........300
Geo-3....-........150-...........550

Then in OWC I removed Geo-1 from filter. This time following report is
generated:
Geography-SalesAmount-CumSalesAmount
Geo-2....-........200-...........300
Geo-3....-........150-...........550

Cumulative sum field is still 300 for the first row. It must be 200. And
for the following row this field must have a value 350.

I think the set returned by [GEOGRAPHY].Parent.Children function does
not care about filters.

Is there a way to overcome this limitation.

Thanks in advance.

Nilgun Celikok

*** 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.