Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

How to set a Dimension attribute in one Dimension using a reference from another Dimenison

$
0
0

I am trying to build a calculated measure (tuple with a couple of dimensions) in the following form

(

[Measures].[Total Deal Qty] ,

[Delivery Period Group].[Delivery Period Group Nm].[All].[Current] ,

[Trade Dt Attr].[Trade Month Year].[All].[December 2012]

)

Now I need to make the Trade Dt Attr dynamic, based on the value from a different date dimensions, called COB Date Attr.  Both date dimensions have exactly the same format in terms of hierarchies and levels.

Basically I want to set theTrade Date value  of “[December 2012]” using mdx that references the relevant member in my COB Date dimension.

I have tried numerous approaches (like shown below) but cannot get it to work…

(

[Measures].[Total Deal Qty] ,

[Delivery Period Group].[Delivery Period Group Nm].[All].[Current] ,  

[Trade Dt Attr].[Trade Month Year].[All].[+

[COB Date Attr].[COB Month Year].[COB Month Year].CurrentMember.name

+]

)

Any assistance is greatly appreciated


Viewing all articles
Browse latest Browse all 2472


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>