INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Referencing SELECTED Time Dimension Members

Referencing SELECTED Time Dimension Members

(OP)
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 ?






Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close