🎓
Models University
  • Alpha Testing
    • 👋Welcome to Alpha
    • Installation and Setup
    • Support and Help
    • Terms and Licence
  • Start Here
    • What is Models?
    • Quick start
    • Tutorials
  • Using Taglo Software
    • The Taglo Interface
      • Navigating in Models
      • List Views
      • Adding Items
      • Deleting Items
      • Searching and Filtering
      • Previewing and Editing
      • Using Wizards
      • Save/Undo/Redo
      • Keyboard Shortcuts
    • Data Storage
    • Namespaces
    • Inbuilt data
  • Tags
    • Introduction to Tags
    • Tag Basics
    • Tags Applet
    • Advanced Tags
  • Models
    • Home Tab
      • Creating a Model
        • Timings
      • Version History
      • Application Settings
    • Model Editor
  • Variables
    • Variable Basics
      • Variable Setup
      • Unit and Calculations
    • Time Segments
      • Time Segment Setup
    • Summaries
    • Default Assumptions
  • Units
    • Introduction to Units
    • Key Unit Concepts
    • Advanced Units
    • Defining a Unit
    • Unit Factors
  • Dimensions
    • Introduction to Dimensions
    • Dimension Setup
    • Defining Unit Variance by Dimension
  • Data Types
    • Data Types
  • Assumptions
    • Introduction to Assumptions
    • Creating/Referencing Assumptions
    • Assumptions Wizard
      • Assumption Dates Step
      • Assumption Values Step
      • Linking to external Data
      • Linking to Excel Inserts
      • Sensitivity Values
  • Calculations
    • Introduction to Calculations
    • The Calculation Page
      • The Formula Entry Bar
      • Unit Analysis
    • Calculation Parts
      • Variable References
        • Referencing Time
        • Referencing Dimensions
        • Lookups
        • Summarising Variables
      • Period References
      • Functions
        • Advanced Functions
  • Aggregation
    • Introduction to Aggregation
    • Creating Aggregations
  • Rearranging
    • Introduction to Rearranging
    • Rearranging Example
    • Rearranging Tips
  • Cases
    • Introduction to Cases
    • Managing Scenarios
    • Managing Sensitivities
  • Layout
    • Generating Excel
    • Auto Layout
    • Sheets
      • Sheet Content
      • Adding and Editing Content
    • Excel Formatting
      • Excel Themes and Styles
      • Line Formatting
    • Data Tables
    • Excel Generation Troubleshooting
  • Excel Inserts and Outputs
    • Excel Inserts
    • Excel Outputs
  • Number Formats
    • Number Formats
  • Dashboards
    • Dashboards Basics
    • Dashboard Layout
    • Dashboard Items
    • Excel Dashboards
  • Metrics
    • Metrics
  • Charts
    • Introduction to Charts
    • Chart Customisation
  • Importing Models
    • Importing Models
  • Data
    • Introduction to Data
    • Creating Data
    • Data Sources
Powered by GitBook
On this page
  • Calculation Consistency
  • Units and Tags
  • Inheritance
  • Compound Units
  • Summary
  1. Units

Key Unit Concepts

Understanding Units

PreviousIntroduction to UnitsNextAdvanced Units

Last updated 1 year ago

Calculation Consistency

Units allow you to ensure that are consistent.

As a simple example, it is logically incorrect to sum together two which have a different unit.

Adding a Variable in GBP to a Variable in USD has no real meaning. If you attempt to do this, Models will warn you that it cannot determine the resulting Unit, which will prompt you to correct the Calculation. One of the two Variables should first be converted to the other currency, before summing, using an exchange rate Variable, with Unit GBP/USD or vice versa.

Non-additive operations, such as multiplication, transform Units.

Multiplying an exchange rate with Unit GBP/USD by a Variable with Unit USD results in a Variable with Unit GBP.

Squaring a Variable will raise the Unit to a power of 2: e.g., Distance in metre multiplied by itself will result in a Variable with Unit metre^2

Models will automatically derive the Units of your Calculations and tell you the resulting Unit, or display a warning if the Unit is not as expected.

Units and Tags

Just like and other Taglo concepts, Units are based on . Each Unit component (e.g. GBP, USD, metre) is itself an .

When you create a new type of Unit, you simply create a new Abstract Tag.

Use the Short Name property of a Tag to determine how the Tag will be displayed within a Unit (e.g., the metre Tag has a Short Name of m).

Commonly used Units like currencies, units of time, and units of distance can be found in the built-in .

Inheritance

Unit inheritance analysis is available from Version 0.1.4.0 of Models

Because Units are based on Tags, they have access to all of the relationships you have created between Tags. This allows Models to make more intelligent inferences about the output Unit of a Calculation.

However, if the Apple and Banana Tags both have a third tag, Fruit as a common parent Tag, Models can infer that the Calculation is adding Fruit together, rather than Apples and Bananas, resulting in an output Unit of Fruit.

The above example will be represented in the Variable view as in the screenshot below. When a Variable is reliant on inheritance to calculate or correctly match its Unit, as is the case for Total Fruit below, Models will show a warning (1), in the Variable.

Disabling Inheritance

Compound Units

Many Units are Compound Units: for example, the exchange rate GBP/USD. In Taglo, we refer to each component of the Unit as a Unit Part.

In this example, the USD Unit Part has an Order of -1, making it the denominator of the Unit.

Summary

As you read more about working in Models, you will see how these concepts are used to enable powerful functionality.

Read on to learn how to create Units.

For instance, if you have a Variable with Unit Apple, and a second Variable with Unit Banana, you should not ordinarily sum these Variables together, as explained , and Models will warn you about it if you do.

Unit inheritance can be enabled/disabled in the wizard, as shown below. Open the settings wizard from the Model Settings bar, and select or deselect the Allow Unit inheritance option (1) as required.

In the next section, , you will learn how editing each Unit Part adds functionality to Taglo software.

Units help you achieve logical consistency in your calculations. Models allows you to add extra time and contextual detail to your Units, which provide useful information about how the and in your Model should be treated.

For instance, work by automatically applying context Tags to the underlying Unit of a Variable.

Variables
Assumptions
Dimensions
above
Advanced Units
Calculations
Variables
Dimensions
Tags
Namespaces
Model settings
Abstract Tag
Unit inheritance example
The Allow Unit Inheritance setting
Screenshot showing an example of Unit inheritance. There are three Variables: Bananas, Apples, and Total Fruit. Total Fruit is a parent of the Apples and Bananas Variables. The Total Fruit Variable has a visual warning that its Unit is only valid because its calculation components have a common ancestor.
Screenshot of the Model Settings dialog, highlighting the option to Allow Unit Inheritance