LinkIndexPrint
Contents
 Welcome
    Ask MaxiPlan
 Using Cascade Planning
    Data Entry Shortcuts
 Working with Planning Projects
    Designing A Cascade Project
    Project Management
       Creating and Maintaining Projects
       Period Sets
       Currencies
       Creating A Splash Screen
       Allowing Other Users Access
       Backup and Restore
       Virtual Period Definition
       Deployment Alias
       Publish Documents
       Project Status
    Building an Application
       Building Application Models
          Building A Cube Model
             Basic Setup
             Selecting a Period Set
             Measure Settings
                Defining the Measures List
                Setting Measure Attributes
                Measure Formatting
                Defining Calculations for Measures
                Other Functions for Measures Editor
                Cross Referencing Measures
                   Dimension Order in Planning Models
                   Cross Referencing Within The Same Model
                   Cross Referencing to Another Model Cube
                   Cross Referencing to the Parent of the node
                Measure Logic Functions
                   PREVIOUS function
                   SUM function
                   MAX function
                   MIN function
                   DEPRECIATION function
                   INT function
                   ROUND function
                   ROUNDUP function
                   ROUNDDOWN function
                   IF Function
                   SWITCH Function
             Dimension Settings
                Defining Dimension Lists
                Defining Dimension Properties
             Miscellaneous
             Finishing The Model
             Advanced Features
                Specifying Consolidation Logic
          Building A Transaction Model
             Basic Set Up
             Defining Dimension Lists 
             Defining Transaction Model Fields
             Additional Definition for a List Field
             Additional Definition for an Expression field
             Additional Definition for a Lookup Field
             Optional Validation for Text, Date, Integer & Value Field
             Defining Field Format & Access
             Miscellaneous
       Model Flow and Linking Models
          Using Links (the 'Push' Method)
          Cross Referencing (the 'Pull' Method)
       Deployment and Workflow
          Deploying Models for Input and Review
          Allowing Users to Extend Models
          Setting up and Managing Workflow
          Workflow for Users
       Advanced Project Functions
          Measure Filters
          Jobsets
             Defining A Jobset
             Run Jobsets
          Data Integration
             Create Dynamic Model
             Import to Cube
             Import to Transaction
             Export Cube Data
          Maintenance
             Model Maintenance
             Link Maintenance
             List Maintenance
             Calculate all cubes
             Versions
          Pre/Post Rules
 Reports and Scripting
    Define Scripts
    Define Reports
    Publish Documents
    Manage Scripts


Home > Working with Planning Projects > Building an Application > Building Application Models > Building A Cube Model > Measure Settings > Cross Referencing Measures > Cross Referencing Within The Same Model

Cross Referencing Within The Same Model
Last Updated 8/26/2008 12:59 PM


To access a measure in another section, Cascade Planning will use the dimensions in ascending order, so for example, Version would be first, followed by Product, followed by Country, followed by Measure. Therefore, if we know the section we want to access (in other words, we know the member names, we can cross reference them in the measure logic).

The format for this would be:

            'dim_1 member'. 'dim_2 member'. 'dim_3 member'. 'measure_name'

As an example, if we wanted to reference the Measure 'Revenue' for 'Total Products' and 'All Countries', we could do this with the following measure logic:-

            'Total Products'.'All Countries'.'Revenue'

Note that we do not need to specify the Version dimension (in our example this is internally assigned as the first dimension), because we are referring to the same Version. You can drop any dimension which occurs to the left of the reference provided you want to accept the current combination (note if names are the same). To refer to a member from a different Version, you would need to specifically reference that member of Version.

As an additional example, let's suggest that you wanted to refer to 'All Countries' for the current product we are calculating, we could simply drop off the reference to 'Total Products' as follows:-

        'All Countries'.'Revenue'

In this example, because we have not specified the Product, it will match product for the current Product section, but will retrieve the 'All Countries' member. We could have actually have specified the same expression as follows:

        dimension2.'All Countries'.'Revenue'

The variable dimension 2 will hold the value of the second dimension member name for the section currently being calculated, and in our case, the second dimension is Product.

So as each product is calculated, the variable dimension2 will hold the name for the Product currently being calculated.

However it is not necessary for us to specify dimension2, since we can discard any dimensions to the left of the reference if we are referring to the current member for that dimension.

This becomes more problematic however if we wish to reference the current Country for a specific Product. In such a case, we want to use the value of dimension3 (the Country dimension) for the section we are calculating. So in this case we need to specify dimension3 in the reference since it is not to the left of the reference (as Product comes before it in the order). 

        'Total Products'.dimension3.'Revenue'

The above example would retrieve the 'Revenue' value for 'Total Products' for the Product dimension member currently being calculated.



See also