ANNEX 3. FUNCTION AND LINK REFERENCE FOR CALCULATED ATTRIBUTE FORMULAS
Table "Numeric Expressions"
| Function/Operation | Description | Example |
|---|---|---|
| [Attribute1] + [Attribute2] | Adds numeric attributes | [Cost] + [Tax] |
| [Attribute1] - [Attribute2] | Subtraction | [Plan] - [Actual] |
| [Attribute1] * [Attribute2] | Multiplication | [Quantity] * [Price] |
| [Attribute1] / [Attribute2] | Division | [Total] / [Days] |
| IsNull(number, default value) | Returns the default value if the value is empty | IsNull([Volume], 0) |
| Round(number) | Rounds a number to the nearest integer | Round([Cost]) |
| Round(number, decimal places) | Rounds a number to the specified number of decimal places | Round([Rate],3) |
| Round(number, decimal places, rounding strategy) | Rounds a number to the specified number of decimal places using the specified rounding strategy (see the table "Rounding Strategies Used by Round") | Round([Cost], 2, ToEven) |
| Ceil(number) | Rounds a number up to the nearest integer | Ceil([Costs]) |
| Ceil(number, decimal places) | Rounds a number up to the specified number of decimal places | Ceil([Costs],4) |
| Floor(number) | Rounds a number down to the nearest integer | Floor([Costs]) |
| Floor(number, decimal places) | Rounds a number down to the specified number of decimal places | Floor([Costs],2) |
| Pow(number, power) | Raises a number to the specified power | Pow([Side], 2) |
| Sqrt(number) | Calculates the square root of a number | Sqrt([Area]) |
| Abs(number) | Returns the absolute value of a number | Abs([Variance]) |
| Max(number_1, number_2) | Returns the largest of the specified numbers. The number of arguments is unlimited | Max([Cost], [Rate]) |
| Min(number_1, number_2) | Returns the smallest of the specified numbers. The number of arguments is unlimited | Min([Cost], [Rate]) |
| ToNumber(string) | Converts a string to a number | ToNumber([Name]) |
Table "Rounding Strategies Used by Round"
| Name | Description |
|---|---|
| AwayFromZero | Rounds to the nearest number. A midpoint value is rounded to the nearest number farther from zero. Example: 2.5 → 3, -1.5 → -2 |
| ToEven | Rounds to the nearest number. A midpoint value is rounded to the nearest even number. Example: 2.5 → 2, 3.5 → 4 |
| ToNegativeInfinity | Rounds down (toward negative infinity). The result is less than or equal to the exact value. Example: 2.8 → 2, -1.2 → -2 |
| ToPositiveInfinity | Rounds up (toward positive infinity). The result is greater than or equal to the exact value. Example: 2.2 → 3, -1.8 → -1 |
| ToZero | Rounds toward zero. The result is less than or equal to the exact value. Example: 2.9 → 2, -1.9 → -1 |
Table "String Expressions"
| Function/Operation | Description | Example |
|---|---|---|
| "Text" | String constant | "Untitled" |
| [String_Attribute] | String attribute | [Name] |
| [Attribute1] + [Attribute2] | String concatenation | [Last name] + " " + [Name] |
| IsNull(string, default value) | Returns the default value if the value is empty | IsNull([Comment], "No comment") |
| Trim(string) | Removes leading and trailing spaces from a string | Trim([Name]) |
| Lower(string) | Converts a string to lowercase | Lower([Name]) |
| Upper(string) | Converts a string to uppercase | Upper([Name]) |
| ToString(number) | Converts a number to a string | ToString([Cost]) |
| ToString(number, format) | Converts a number to a string in the specified format | ToString([End date], "YYYY-MM-DD") |
| ToString(date) | Converts a date to a string | ToString([End date]) |
| ToString(date, format) | Converts a date to a string in the specified format ("dd.MM.yyyy", "dd/MM/yyyy", "yyyy-MM-dd", "MM/dd/yyyy") | ToString([End date], "yyyy-MM-dd") |
Table "Date Expressions"
| Function/Operation | Description | Example |
|---|---|---|
| [Date_Attribute] | Date attribute | [Start date] |
| Now() | Returns the current date and time | Now() |
| ActualDate() | Returns the update date of the schedule version | ActualDate(21.04.2026) |
| DateAdd(date, number) | Adds the specified number of days to a date | DateAdd([Start date], 5) |
| DateAdd(date, number, unit) | Adds a time interval to a date (minutes — "m", "minute" / hours — "h", "hour" / days — "d", "day") | DateAdd([Start date], 5, hour) |
| DateDiff(date_1, date_2) | Calculates the difference between two dates in days | DateDiff([End date], Now()) |
| DateDiff(date_1, date_2, unit) | Calculates the difference between dates in the specified units (minutes — "m", "minute" / hours — "h", "hour" / days — "d", "day") | DateDiff([End date], Now(),day) |
| Max(date_1, date_2) | Returns the later of the specified dates. The number of arguments is unlimited | Max([End date], Now()) |
| Min(date_1, date_2) | Returns the earlier of the specified dates. The number of arguments is unlimited | Min([End date], Now()) |
| ToDate(string) | Converts a string to a date | ToDate([End date]) |
| ToDate(string, format) | Converts a string to a date in the specified format ("dd.MM.yyyy", "dd/MM/yyyy", "yyyy-MM-dd", "MM/dd/yyyy") | ToDate ([End date], "yyyy-MM-dd") |
Table "Boolean Expressions"
| Function/Operation | Description | Example |
|---|---|---|
| Not (boolean) | Inverts a Boolean value | Not([Boolean attribute]) |
| Contains (string_1, string_2, case sensitivity) | Checks whether a string contains the specified substring using the specified case sensitivity ("true", "false") | Contains([Name], [Concrete], false) |
| Compare (boolean_1, boolean_2, operator) | Compares two Boolean values using the specified comparison operator ("=", "!=") | Compare([Boolean attribute_1], [Boolean attribute_2] true, "=") |
| Compare (string_1, string_2, operator, case sensitivity) | Compares two strings using the specified comparison operator ("=", "!=") and case sensitivity ("true", "false") | Compare([Building], [Block A], "=", false) |
| Compare (number_1, number_2, operator, tolerance) | Compares two numbers using the specified comparison operator ("=", "!=", "<", "<=", ">", ">=") and the permitted tolerance from the comparison value (comparison value +/- tolerance) | Compare([Progress], [Completion %], "<", 0.5) |
| Compare (date_1, date_2, operator, unit) | Compares two dates using the specified comparison operator ("=", "!=", "<", "<=", ">", ">=") and units (comparison by: minutes — "minute", hours — "hour", days — "day", months — "month", years — "year") | Compare([Finish], [Baseline finish], ">", day) |
Table "General Expressions"
| Function/Operation | Description | Example |
|---|---|---|
| Prev(attribute) | Evaluates an expression using data from the previous row | Prev([Progress]) |
Table "General Expressions"
| Link type | Description | Example |
|---|---|---|
| LinkMax(Link, number|date) | Returns the maximum attribute value through the link | LinkMax([Construction-Design Documentation], [Labor units]) |
| LinkMin(Link, number|date) | Returns the minimum attribute value through the link | LinkMin([Construction-Design Documentation], [Cost]) |
| LinkSum(Link, number) | Returns the total attribute value through the link | LinkSum([Construction-Design Documentation], [Actual]) |
| LinkAvg(Link, number) | Returns the average attribute value through the link | LinkAvg([Construction-Design Documentation], [Work duration]) |
| LinkString(Link, string) | Returns the first attribute value through the link | LinkString([Construction-Design Documentation], [Assignee]) |
| LinkStringAll(Link, string) | Returns attribute values joined with ";" through the link | LinkStringAll ([Construction-Design Documentation], [Assignee]) |
| LinkStringAll(Link, string, separator) | Returns attribute values joined with the specified separator through the link | LinkStringAll([Construction-Design Documentation], [Assignee], "|") |
| LinkCount(Link) | Returns the number of linked activities | LinkCount([Construction-Design Documentation]) |