Skip to main content

Units in Aire

Every term in Aire has a unit. That unit isn’t just a label—it’s an active part of the model. It travels through formulas, surfaces in views, and appears in exports. When you combine terms in a formula, Aire checks whether the units are compatible and flags the formula if they aren’t. This is the unit system: structured, automatic, and always on.

Setting and Changing a Unit

You assign a unit when you create a term. Units are also assigned automatically during model import—Aire reads the unit metadata from your source file and maps it to each term. You can update a term’s unit at any time. When you do, Aire propagates the change through every formula and view that references that term, so nothing goes stale silently. Recognized units (listed in the reference below) unlock automatic conversion and consistency checking. For anything not in the library, units are free-form text—you can express them however your domain requires (kgCO₂e/MWh, MMBTU/hr) without being constrained.

Unit Display Aliases

The unit selector shows familiar display aliases rather than internal canonical names—for example, “MW” instead of the underlying identifier. The input strings in the reference table below are unchanged; aliases only affect how units appear in the selector UI.

Automatic Unit Consistency Checking

When you write a formula that combines two terms, Aire resolves the resulting unit based on the operation:
  • Multiplying MW by hoursMWh
  • Dividing USD by MWhUSD/MWh
  • Adding USD to USDUSD
Where it gets important: adding MW to MWh isn’t valid—you can’t add power to energy. Aire catches this. The platform validates that the units in a formula resolve to something coherent, and flags the formula if they don’t. This validation runs automatically—you don’t configure it or turn it on. It’s part of how every formula is evaluated.

Error Detection and Resolution

When a formula’s units don’t resolve cleanly, Aire surfaces a unit error directly on the term. The error indicates which terms are in conflict and what units are involved. To resolve it, you have two options:
  • Fix the formula: If the combination genuinely doesn’t make sense, the formula likely has a logic error that needs to be corrected.
  • Add an explicit conversion: If the combination is intentional (e.g., normalizing MWh to MW over an assumed period), you can introduce a conversion term that makes the unit relationship explicit.
Aire doesn’t silently coerce units. If two values can’t be combined without a conversion, you have to define one—which is the right behavior for a model meant to be audited.

Units as Guardrails

Units act as guardrails at two levels: for your model and for AI. For your model: Unit checking has caught errors in every customer model ingested to Aire to date. These aren’t obscure edge cases—they’re the kind of mistake that’s easy to make in a complex model: a formula that divides where it should multiply, a cost expressed in $/kW when the downstream formula expects $/MW, a percentage applied as a decimal in one place and as a whole number in another. Each of these produces a result that looks plausible but is wrong. Units surface these issues at the formula level, before they propagate into outputs. For AI: When Aire’s AI suggests or generates formulas, those formulas are subject to the same unit validation as anything you write yourself. A formula the AI produces that combines incompatible units will surface an error just like any other. This means you can evaluate AI-generated formulas with confidence—if the units check out, the formula is at least structurally sound. The result is a QA layer built into the modeling environment itself—one you don’t have to design, document, or maintain separately.

Compared to Excel

In Excel, managing units is manual. Cells don’t carry unit metadata, formulas don’t validate unit consistency, and catching a unit error typically requires color-coding columns, adding header rows, or relying on the reviewer to notice a mismatch. In Aire, units are a first-class property of every term. The platform enforces consistency across every formula automatically. You still have to write correct formulas—but you get immediate feedback when units don’t line up, rather than finding out after a presentation or an audit.

How Units Flow Through Formulas

Aire tracks units through arithmetic automatically.

Calendar Rates

One of the most important distinctions in the unit system is the difference between a calendar rate and a physical rate. Physical rates like USD/hr represent a continuous flow—the kind you’d measure with a flow meter or integrate over time. Use physical rates when the quantity is genuinely continuous: heat flux, electrical power, fuel consumption. Calendar rates like USD/month or MWh/year represent scheduled accounting periods. These are common in financial modeling: a budget is 50,000/month;aplantproduces1,200MWh/year.Calendarratesdonotcollapsetopersecondequivalents50,000/month; a plant produces 1,200 MWh/year. Calendar rates do not collapse to per-second equivalents—`50,000/monthstays$50,000/month`. The rule of thumb: if you would write it on a budget spreadsheet, it’s a calendar rate. If you would measure it with an instrument, it’s a physical rate.

Calendar Ratios

Calendar ratio units like hours/day and days/month let you chain calendar-period calculations so periods cancel correctly:
The day tokens cancel and you get hours/month. Make sure your calendar chains fully resolve—multiplying days/month by a bare year (instead of months/year) leaves unresolved periods and will raise a unit error.

Unit Conversion with CONVERT()

The CONVERT() function converts a value from one unit to another, as long as both units measure the same quantity.
Attempting to convert between incompatible units (e.g., kWh to kg) will produce an error.

Unit Reference

Units are case-sensitive. Use the exact strings in the “Type in…” column.

Energy

Calendar energy rates:

Power

Apparent power (volt-ampere): Reactive power (volt-ampere reactive):

Currency

Calendar rates: Cost intensity:

Mass

Time

Temperature

Temperature units cannot be multiplied or divided—use them only for temperature readings, not temperature differences.

Calendar Ratios

Other