dbTalk Databases Forums  

MDX question

microsoft.public.sqlserver.programming microsoft.public.sqlserver.programming


Discuss MDX question in the microsoft.public.sqlserver.programming forum.



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

Default MDX question - 05-03-2012 , 10:41 AM






I could use some help with this.

I have a measure called Production that I can use with another
dimension called Firm such as:

select
[Measures].[Production] on 0,
[Firm].[Faid].members * [Date].[Year].&[2009] on 1
from Retail

to get Production for the lowest level of the Firm dimension (the
FAID) for 2009.

The Firm dimension also has a native hierarchy called "Market". So all
FAIDs belong to a given Market. My question is: How do I get the sum
of Production for all FAIDs that belong to the current FAID's Market.
If I restrict the query with a Slicer I only get the Sum for whatever
criteria I put in. If I add "WHERE ([Firm].[Firm - Branch - FA].
[Faid].&[15]&[38]&[7])" I get a specific FAID returned with his
Production. But when I do a SUM it just gets his Production for the
sum. I want the sum for ALL FAIDs under his Market.

Any suggestions would be helpful. Thanks.

Scott

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 - 2013, Jelsoft Enterprises Ltd.