Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8004101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:49:39+00:00 2026-06-04T16:49:39+00:00

I need to divide my calculations into three groups: – which applied to base

  • 0

I need to divide my calculations into three groups:
– which applied to base cells only (leaves)
– which applied to all cells
– which applied to consolidating cells only (cells of upper hierarchy levels)
For example, I have hierarchy: Year-Quarter-Month.
Base cells of this hierarchy in the “Month” and consolidating cells in a “Year” and “Quarter”.

For base cells I can write this “scope”:

SCOPE (
   [Measures].[Value] ,
   [DimProducts].[Name].[Donut] , 
   [DimTime].[Month].CHILDREN       // month only
      );
THIS = [Measures].[Value]*2+100500;
END SCOPE;

And I don’t know how to write the “scope” for consolidating cells? I can’t to create a “scope” for each hierarchy level such as:

SCOPE (
   [Measures].[Value] ,
   [DimProducts].[Name].[Donut] , 
   [DimTime].[Quarter].CHILDREN    // quarter only
      );
...
END SCOPE;
SCOPE (
   [Measures].[Value] ,
   [DimProducts].[Name].[Donut] , 
   [DimTime].[Year].CHILDREN       // year only
      );
...
END SCOPE;

Because there are many dimensions and hierarchy levels and calculations must be applied to all of them.
Maybe there is a simply way for my problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:49:40+00:00Added an answer on June 4, 2026 at 4:49 pm

    You can use MDX functions in SCOPE‘s subcube expression.

    Supposing your Year-Quarter-Month user hierarchy has Year, Quarter and Month levels, you can use the following expression to address levels above the Month level.

    SCOPE ( [Measures].[Value]
          , [DimProducts].[Name].[Donut]
          , Descendants( [DimTime].[Year-Quarter-Month].[All]
                       , [DimTime].[Year-Quarter-Month].[Quarter]
                       , SELF_AND_BEFORE
                       )
          );
    ...
    END SCOPE;
    

    Reference:

    • Descendants MDX function
    • SCOPE MDX statement
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list of MyObjects which I need to divide into three groups:
I have two integer variables which I need to divide in order to work
I need to divide screen into two parts. In one part I need to
I need to divide one int into 2 other int's. the first int is
I need to divide a C string into tokens. I thought that strtok will
I have a large dataset that I need to divide randomly into 5 almost
I need to do some calculations with fractions which result have infinite decimals. For
in powershell v2, I need to divide 22 by 8 and then strip all
If I need to divide for example 7 into random number of elements of
In my app I need to allow users to do calculations such as add/subtract/divide

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.