Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referencing SELECTED Time Dimension Members

Status
Not open for further replies.

Beebo

Programmer
Feb 24, 2009
1
US
I have a gerenal MDX question. Is it possible to reference gernically measure values associated with specific time dimension members that are part of the MDX query itself.

For example: I have a Time Dimension with Year,Month,Day levels. I have a "Sales Dollars measure".

I write an MDX query that selects 3 distict Tim Dimension Members that occur at different levels, for example:
[Time].[2008]
[Time].[2009].[January]
[Time].[2009].[February].[02/23/2009]


I get an summarize Sales figure for each of these 3 time members. I want to add a calulated measure that compares the CurrentMember value with the value of the PrevMember that is SELECTED in the query, not the PrevMember to the CurrentlMember in the TimeDimension hierarchy.

When I use the systax CurrentMember.PrevMember the comaprison is the following

Compares
[Time].[2008] with [Time].[2007]
[Time].[2009].[January] with [Time].[2008].[December]

[Time].[2009].[February].[02/23/2009]
is compared to:
[Time].[2009].[February].[02/22/2009]



Is theree some way to compare the sales values against the specifically selected Time Dimension members, versus the Previous member in the full Time dimension hierarchy?


I.e is there a way to refernce the selected Time Dimension members in a generic sense...something like:

[Time].CurrentMember.PrevSELECTEDMember ????

My reason for this is wanting to produce a Variance type calculated member in a generic MDX query that will show the variance between two values with respect to each other. The current value comapared to the previously selected value. This can then show trends quite easily but isn't restricted to concesctive time dimension members being selected.


Any thoughts ?






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top