1 min read
Model Functions
The investment model supports several built-in functions that help users perform calculations and logic-based operations efficiently. Below is a list of commonly used functions, with brief descriptions and usage tips.
SUM
Adds together a range of numbers.
Usage:
SUM(value1, value2, ...)
Example:
SUM([Revenue], [Costs])
Use
SUMwhen you need to add multiple row references or constants.
MIN
Returns the smallest value among the inputs.
Usage:
MIN(value1, value2, ...)
Example:
MIN([Cost Option A], [Cost Option B])
MAX
Returns the largest value among the inputs.
Usage:
MAX(value1, value2, ...)
Example:
MAX([Scenario 1], [Scenario 2])
AVERAGE
Returns the average (arithmetic mean) of the inputs.
Usage:
AVERAGE(value1, value2, ...)
Example:
AVERAGE([Year 1], [Year 2], [Year 3])
IF
Returns one value if a condition is true, and another if it is false.
Usage:
IF(condition, value_if_true, value_if_false)
Example:
IF([Revenue] > 0, [Profit], 0)
Use
IFfor conditional logic, such as toggling values based on assumptions.
OR
Returns TRUE if any of the conditions are true.
Usage:
OR(condition1, condition2, ...)
Example:
OR([Is Domestic], [Is International])
AND
Returns TRUE only if all conditions are true.
Usage:
AND(condition1, condition2, ...)
Example:
AND([Is Active], [Has Revenue])
SWITCH
Returns different values depending on which condition matches.
Usage:
SWITCH(expression, case1, result1, case2, result2, ..., default_result)
Example:
SWITCH([Plan Type], "Basic", 10, "Premium", 20, 0)
SWITCHis useful for replacing multiple nestedIFstatements.
OFFSET
Returns the value of a row from a relative position (e.g., a previous or next period).
Usage:
OFFSET(reference, offset_amount)
Example:
OFFSET([Revenue], -1)
Use caution with
OFFSETto avoid referencing out-of-bounds periods.
Weissr-specific functions
These pages include additional functions designed specifically for Weissr’s investment modeling logic.
- BASE Function
- NPV Function
- MIRR (Modified Internal Rate of Return)
- CurrencyRate Function
- SYS_DEPRECIATION
- OCFD (Operating Cash Flow Demand)
In this section
BASE Function
The BASE function returns the value of a row as it is calculated in the Base Alternative . You write it once in the model builder, and every Strategic Building Block (SBB) and Strategic Alternative (S
NPV Function
NPV (Net Present Value) is a formula function in Weissr cash-flow models. It tells you what a series of future yearly cash flows is worth today, using a discount rate you choose. NPV works in every mo
MIRR (Modified Internal Rate of Return)
The MIRR function in Weissr works similarly to Excel's MIRR function. It calculates the modified internal rate of return for a series of cash flows while factoring in both the cost of investment (fina
CurrencyRate Function
The CurrencyRate() model function allows users to reference exchange rates dynamically during model building. This enables calculations to automatically adapt to the configured currency settings in bo
SYS_DEPRECIATION
Depreciation calculation in Weissr in Cash flow model is performed automatically based on inserted expenditure values and depreciation years. For Capex Strategy calculation result consists of Major ca
OCFD (Operating Cash Flow Demand)
OCFD is a system-calculated KPI in Weissr Capex Strategy, generated by the backend. You can calculate OCFD by simply adding SYS_OCFD as a formula in the model-building tool. OCFD is a core part of the