dbTalk Databases Forums  

calculated measure based on selected dimemsion member

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


Discuss calculated measure based on selected dimemsion member in the microsoft.public.sqlserver.olap forum.



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

Default calculated measure based on selected dimemsion member - 04-13-2006 , 04:55 PM






I have a cube that have 5 dimemsions and a couple of measures. One of the
measures is QTY. One of the dimensions is dim_type. dim_type has 4 members:
A, B, C, D.

I would like to create a calculated measure QTY_AB that only aggragetes base
on A and B for dim_type. Other dimensios are as normal. for example,
A: 30
B: 20
C: 6
D: 7
At all_dim_type level, QTY gives me 63 (30+20+6+7) but QTY_AB gives me only
50 (30+20). I couldn't come up with the correct syntax for QTY_AB. Help,
please.

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

Default Re: calculated measure based on selected dimemsion member - 04-13-2006 , 10:39 PM






How about something like:

Sum({[dim_type.[A], [dim_type.[b]},
[Measures].[QTY])


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