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

MDX help with a scope statement

MDX help with a scope statement

(OP)
Hi,

I have a cube, and would like to sum measures where two dimension attributes intersect.
The first dimension is Claim and the second is LossDate. The hierarchical structure for each is...

Claim:

Dimension - [Claim]
Hierarchy - [ClaimNo]
Attribute - [ClaimNumber]

LossDate:

Dimension - [DateLoss]
Hierarchy - [DateLoss]
Attribute - [YearNo]

And herewith the section in the MDX code:

CODE

SCOPE([Claim].[ClaimNo].[ClaimNumber],[DateLoss].[DateLoss].[YearNo]);

    [MEASURES].[GrsClaimIncurred] =
        //Sum(Descendants([Claim].[ClaimNo].CurrentMember)
        Sum(Descendants([Claim].[ClaimNo].CurrentMember,[DateLoss].[DateLoss].[YearNo])
            ,[MEASURES].[GrsClaimIncurredTotal]
            );

END SCOPE;

I am expecting to seethe measure GrsClaimIncurredTotal summed when I slice by both those hierarchical structures. It does not seem to deliver the correct result, and I think there is a problem with my scope.

I am ultimately trying to do further calculations that applies at this specific scope, and no lower (for example at Claim Number transactions or Month levels, so are trying to enforce this with the scope...

EO
Hertfordshire, England

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