Locked lesson.
About this lesson
This lesson explores the syntax and practical application of adding or subtracting measures from each other, and lays the groundwork for creating more complicated mathematical combinations.
Exercise files
Download this lesson’s related exercise files.
Performing Math with Compound Measures.xlsx871.3 KB Performing Math with Compound Measures - Completed.xlsx
873.5 KB
Quick reference
Performing Math with Compound Measures
An overview of building measures based on existing measures.
When to use
When you want to create a new measure that refers to other measure(s) that are already defined in your data model.
Instructions
The general process is:
- Create a new measure
- Choose the table on which to store the measure
- Name the measure
- Write the measure in the Formula field
- Click the Check Measure button to confirm there are no errors
- Set formatting options as desired
Specific to Compound Measures
- Never fully qualify a measure (no need as their names must be unique)
- You can add, subtract, multiply or divide measures against each other or numeric constants
Examples
- Bonus Range = [Budget] * 1.05
- Variance = [Actual] - [Budget]
- % Variance = DIVIDE([Variance],[Budget])
Hints & tips
- Measure names must be unique
- Use auto-fill, arrows, and the TAB key as much as possible when writing your measure to avoid syntax errors
- Shortcut to a list of existing measures by typing [ as this will pull up a list of measures only
- You do not preface a compound measure with the table name because measure names must be unique
- It is a good idea to wrap division calculations in the DIVIDE function to avoid errors
Lesson notes are only available for subscribers.