dbTalk Databases Forums  

Sum data quadrants in Analysis Services

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


Discuss Sum data quadrants in Analysis Services in the microsoft.public.sqlserver.olap forum.



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

Default Sum data quadrants in Analysis Services - 12-15-2004 , 01:47 PM






Hi,

I have a view that is customer as rows and products as columns. I have
a calculated member that works out a 80/20 split on both axis based on
the total level. (e.g If (Product.member/Total Product) <0.8 then 80
else 20)

This is the view I have in a report

80 80 20 20
Product X Y W Z
Customer
80 A 200 50 50 50
80 B 200 50 50 50
20 C 200 50 50 50
20 D 400 100 100 100


What i want to do is create another calculated member that sums up the
80 % split based on customer with 80% split based from the product
dimension. (first 2 rows and first 2 columns) In the above case I
should end up with total of 200+200+50+50=500. In excel I could use
SUM(D17:E18). How can i do this in MDX

What I have so far is

sum(filter({[Customer].currentmember},[Measures].[Customer
80-20]=80),[Measures].[Valuex])

Problem is that this gives me the 20 % split of products which I don't
want. How can I modify the above statement to just give me sum of all
products with a 80 split and all customer's that are 80 split.

Thanks


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

Default Re: Sum data quadrants in Analysis Services - 12-15-2004 , 09:19 PM






Maybe something like:

Quote:
sum(filter([Customer].[CustName].Members,
[Measures].[Customer 80-20]=80),
sum(filter([Product].[ProdName].Members,
[Measures].[Product 80-20]=80),
[Measures].[Valuex]))
Quote:

- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.