---
title: "About functions"
description: "You use functions to perform specific tasks that facilitate data processing for the reports."
lang: en
languages:
  en: https://docs.vismasoftware.no/visma-net-erp/help/general-ledger/manage-analytical-reports/formulas/about-functions/index.md
lastmod: 2026-02-19
---

> Documentation index: https://docs.vismasoftware.no/visma-net-erp/help/general-ledger/manage-analytical-reports/formulas/llms.txt


# About functions

Last modified February 19, 2026

> You use functions to perform specific tasks that facilitate data processing for the reports.


Many functions available in the Analytical report manager process the data selected from the data source and return the values to be used in the report.

To use functions in the formula, you can enter them directly in the formula editing area or select them from the list of functions provided by the.

The groups of functions in the formulas are described below.

## Conversion functions

You use conversion functions, summarised in the following table to convert data from one data type to another.

<table class="vismanet-table">
  <colgroup>
    <col class="vismanet-table__col--key">
    <col>
  </colgroup>
<thead class="vismanet-table__head">
  <tr class="vismanet-table__header-row">
<th class="vismanet-table__cell vismanet-table__cell--header">Function</th>
<th class="vismanet-table__cell vismanet-table__cell--header">Description and examples</th>
</tr>
</thead>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CBool(x)</td>
<td class="vismanet-table__cell"><p>Converts an expression defined in a function argument into the Boolean expression. If the expression is zero, <strong>False</strong> is returned; otherwise, <strong>True</strong> is returned.</p>
<p><strong>Example:</strong> <code>=CBool(A11+B11-C11*0.05)</code> (where A11, B11 and C11 are the links used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CDate(x)</td>
<td class="vismanet-table__cell"><p>Converts an expression defined in a function argument to a value of the <strong>Date</strong> type. The <strong>CDate</strong> function argument should be a valid date expression. <strong>CDate</strong> recognises date formats according to the locale setting of the system.</p>
<p><strong>Example:</strong> <code>=CDate(A2-B2)</code> (where A2 and B2 are the links used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CStr(x)</td>
<td class="vismanet-table__cell"><p>Converts an expression defined in a function argument to a string. If the <strong>CStr</strong> function argument equals null, CStr returns a run-time error; otherwise, it returns a string of characters.</p>
<p><strong>Example:</strong> <code>=CStr(A12)</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CDbl(x)</td>
<td class="vismanet-table__cell"><p>Converts an expression defined in a function argument to a value of the <strong>Double</strong> type.</p>
<p><strong>Example:</strong> <code>=CDbl(A12/B2)</code> (where A12 and B2 are the links used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CSng(x)</td>
<td class="vismanet-table__cell"><p>Converts an expression defined in a function argument to a value of the <strong>Single</strong> type. If the expression defined in the function argument lies outside the acceptable range for the <strong>Single</strong> type, an error occurs.</p>
<p><strong>Example:</strong> <code>=CSng(A12)</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CDec(x)</td>
<td class="vismanet-table__cell"><p>Converts an expression defined in a function argument to a value of the <strong>Decimal</strong> type.</p>
<p><strong>Example:</strong> <code>=CDec(A12*0.15)</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CInt(x)</td>
<td class="vismanet-table__cell"><p>Converts an expression defined in a function argument to a value of the <strong>Integer</strong> type.</p>
<p><strong>Example:</strong> <code>=CInt(A10)</code> (where A10 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CShort(x)</td>
<td class="vismanet-table__cell"><p>Converts a numeric value to a value of the <strong>Short</strong> type.</p>
<p><strong>Example:</strong> <code>=CShort(B2)</code> (where B2 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">CLong(x)</td>
<td class="vismanet-table__cell"><p>Converts a numeric value to a value of the <strong>Long</strong> type.</p>
<p><strong>Example:</strong> <code>=CLong(B12)</code> (where B12 is the link used in a function argument)</p>
</td>
</tr>

</table>


## Text functions

Text functions, described in the following table, are used to perform operations with the text strings.

<table class="vismanet-table">
  <colgroup>
    <col class="vismanet-table__col--key">
    <col>
  </colgroup>
<thead class="vismanet-table__head">
  <tr class="vismanet-table__header-row">
<th class="vismanet-table__cell vismanet-table__cell--header">Function</th>
<th class="vismanet-table__cell vismanet-table__cell--header">Description and Examples</th>
</tr>
</thead>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">LTrim(string)</td>
<td class="vismanet-table__cell"><p>Removes all leading spaces or parsing characters from the specified character expression, or all leading zero bytes from the specified binary expression.</p>
<p><strong>Example:</strong> <code>=LTrim(CStr(A12))</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">RTrim(string)</td>
<td class="vismanet-table__cell"><p>Removes all trailing spaces or parsing characters from the specified character expression, or all trailing zero bytes from the specified binary expression.</p>
<p><strong>Example:</strong> <code>=RTrim(CStr(A12))</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Trim(string)</td>
<td class="vismanet-table__cell"><p>Removes all trailing spaces or parsing characters from the specified character expression, or all trailing zero bytes from the specified binary expression.</p>
<p><strong>Example:</strong> <code>=Trim(CStr(A12))</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Format(format</strong>, <strong>argument(s)</strong> )</td>
<td class="vismanet-table__cell"><p>Replaces the format item in a specified formatting string ( <strong>format</strong> ) with the text equivalent of the arguments ( <strong>arguments</strong> ).</p>
<p><strong>Example:</strong> <code>=Format('Currency:........ {0:C}; Account:........ {1:N}', A1, B1)</code> (where A1 and B1 are the links used as a function arguments; 0, 1 are the specifiers indicating where the arguments will be inserted; C is the <strong>currency</strong> format specifier; and N is the <strong>number</strong> format specifier)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">UCase(string)</td>
<td class="vismanet-table__cell"><p>Returns a string that has been converted to upper case. The <strong>string</strong> argument is any valid string expression. If <strong>string</strong> contains a null value, the null value is returned.</p>
<p><strong>Example:</strong> <code>=UCase(CStr(A12))</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">LCase(string)</td>
<td class="vismanet-table__cell"><p>Returns a string that has been converted to lower case. The <strong>string</strong> argument is any valid string expression. If <strong>string</strong> contains a null value, the null value is returned.</p>
<p><strong>Example:</strong> <code>=LCase(CStr(A12))</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>InStr(string</strong>, <strong>findString)</strong></td>
<td class="vismanet-table__cell"><p>Returns the position of the first occurrence of one string ( <strong>findString</strong> ) within another ( <strong>string</strong> ).</p>
<p><strong>Example:</strong> <code>=InStr(CStr(A12), 'rur')</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>InStrRev(string</strong>, <strong>findString</strong> )</td>
<td class="vismanet-table__cell"><p>Returns the position of the last occurrence of one string ( <strong>findString</strong> ) within another ( <strong>string</strong> ), starting from the right side of the string.</p>
<p><strong>Example:</strong> <code>=InStrRev(CStr(A12), 'rur')</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Len(string</strong> )</td>
<td class="vismanet-table__cell"><p>Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.</p>
<p><strong>Example:</strong> <code>=Len(CStr(A12))</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Left(string</strong>, <strong>length</strong> )</td>
<td class="vismanet-table__cell"><p>Returns a string containing a specified number of characters from the left side of a string. If <strong>string</strong> contains the null value, the null value is returned.</p>
<p><strong>Example:</strong> <code>=Left(CStr(A12), 3)</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Right(string</strong>, <strong>length</strong> )</td>
<td class="vismanet-table__cell"><p>Returns a string containing a specified number of characters from the right side of a string. If <strong>string</strong> contains a null value, the null value is returned.</p>
<p><strong>Example:</strong> <code>=Right(CStr(A12), 3)</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Replace(string</strong>, <strong>oldValue</strong>, <strong>newValue</strong> )</td>
<td class="vismanet-table__cell"><p>Returns a string in which a specified sub string ( <strong>oldValue</strong> ) has been replaced with another sub string ( <strong>newValue</strong> ).</p>
<p><strong>Example:</strong> <code>=Replace(CStr(A12), 'rur', 'eur')</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>PadLeft(string</strong>, <strong>width</strong>, <strong>paddingChar</strong> )</td>
<td class="vismanet-table__cell"><p>Right-aligns the characters in a specified string ( <strong>string</strong> ), padding with the specified characters ( <strong>paddingChar</strong> ) on the left for a specified total width ( <strong>width</strong> ).</p>
<p><strong>Example:</strong> <code>=PadLeft(CStr(A12), 3, '%')</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>PadRight(string</strong>, <strong>width</strong>, <strong>paddingChar</strong> )</td>
<td class="vismanet-table__cell"><p>Left-aligns the characters in a specified string ( <strong>string</strong> ), padding with the specified characters ( <strong>paddingChar</strong> ) on the right for a specified total width ( <strong>width</strong> ).</p>
<p><strong>Example:</strong> <code>=PadRight(CStr(A12), 3, '%')</code> (where A12 is the link used in a function argument)</p>
</td>
</tr>

</table>


## Math functions

Mathematical functions, described in the following table, perform calculations, usually based on input values provided as arguments, and return numeric values.

<table class="vismanet-table">
  <colgroup>
    <col class="vismanet-table__col--key">
    <col>
  </colgroup>
<thead class="vismanet-table__head">
  <tr class="vismanet-table__header-row">
<th class="vismanet-table__cell vismanet-table__cell--header">Function</th>
<th class="vismanet-table__cell vismanet-table__cell--header">Description and Examples</th>
</tr>
</thead>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Abs(x)</td>
<td class="vismanet-table__cell"><p>Returns the absolute value of a number.</p>
<p><strong>Example:</strong> <code>=Abs(A10-B10)</code></p>
<p>Here A10 and B10 are the links used in a function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Floor(x)</td>
<td class="vismanet-table__cell"><p>Returns the largest integer that is not greater than the argument.</p>
<p><strong>Example:</strong> <code>=Floor(A10-A12)</code></p>
<p>Here A10 and A12 are the links used in a function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Ceiling(x)</td>
<td class="vismanet-table__cell"><p>Returns the smallest integer that is not less than the argument.</p>
<p><strong>Example:</strong> <code>=Ceiling(A10-C11)</code></p>
<p>Here A10 and C11 are the links used in a function argument.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Round(x, decimals</strong> )</td>
<td class="vismanet-table__cell"><p>Returns a numeric expression, rounded to the specified precision ( <strong>decimals</strong> ).</p>
<p><strong>Example:</strong> <code>=Round((A10-B12), 5)</code></p>
<p>Here A10 and B12 are the links used in a function argument, and 5 is the number of digits after the decimal separator.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Min(x, y)</td>
<td class="vismanet-table__cell"><p>Returns the smaller of the two values.</p>
<p><strong>Example:</strong> <code>=Min(A10, A12)</code> <code>=Min(A10, 12)</code></p>
<p>Here A10 and A12 are the links used as function arguments)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Max(x, y)</td>
<td class="vismanet-table__cell"><p>Returns the greater of the two values.</p>
<p><strong>Example:</strong> <code>=Max(A12, A14)</code> <code>=Max(A12, 240)</code></p>
<p>Here A12 and A14 are the links used as function arguments.</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Pow(x, power</strong> )</td>
<td class="vismanet-table__cell"><p>Computes the value of <strong>x</strong> raised to the specified power ( <strong>power</strong> ).</p>
<p><strong>Example:</strong> <code>=Pow((A12, 2))</code></p>
<p>Here A12 is the link used as a function argument, and 2 is the power index.</p>
</td>
</tr>

</table>


## DateTime functions

The DateTime functions (described below) perform operations on input values and return string, numeric, or **DateTime** value results.

<table class="vismanet-table">
  <colgroup>
    <col class="vismanet-table__col--key">
    <col>
  </colgroup>
<thead class="vismanet-table__head">
  <tr class="vismanet-table__header-row">
<th class="vismanet-table__cell vismanet-table__cell--header">Function</th>
<th class="vismanet-table__cell vismanet-table__cell--header">Description and Examples</th>
</tr>
</thead>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Now()</td>
<td class="vismanet-table__cell"><p>Returns the current date and time according to the system date and time on the local computer.</p>
<p><strong>Example:</strong> <code>=Now()</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Today()</td>
<td class="vismanet-table__cell"><p>Returns the current date according to the system date and time on the local computer.</p>
<p><strong>Example:</strong> <code>=Today()</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">NowUTC()</td>
<td class="vismanet-table__cell"><p>Returns the current date and time according to the user&rsquo;s time zone.</p>
<p>The system gets the user&rsquo;s time zone from the following sources, which are ordered by the priority from the highest to the lowest:</p>
<ol>
<li>User&rsquo;s preferences specified in the <a href="/visma-net-erp/help/management/management-windows/user-settings-sm203010/index.md">User settings (SM203010)</a> window.</li>
<li>The employee calendar specified in the <a href="/visma-net-erp/help/organisation-structure/organisation-structure-windows/work-calendar-cs209000/index.md">Work calendar (CS209000)</a> window and selected for the user&rsquo;s employee in the <a href="/visma-net-erp/help/organisation-structure/organisation-structure-windows/employees-ep203000/index.md">Employees (EP203000)</a> window.</li>
</ol>
<p><strong>Example:</strong> <code>=NowUTC()</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">TodayUTC()</td>
<td class="vismanet-table__cell"><p>Returns the current date according to the user&rsquo;s time zone.</p>
<p>The system gets the user&rsquo;s time zone from the following sources, which are ordered by the priority from the highest to the lowest:</p>
<ol>
<li>User&rsquo;s preferences specified in the <a href="/visma-net-erp/help/management/management-windows/user-settings-sm203010/index.md">User settings (SM203010)</a> window.</li>
<li>The employee calendar specified in the <a href="/visma-net-erp/help/organisation-structure/organisation-structure-windows/work-calendar-cs209000/index.md">Work calendar (CS209000)</a> window and selected for the user&rsquo;s employee in the <a href="/visma-net-erp/help/organisation-structure/organisation-structure-windows/employees-ep203000/index.md">Employees (EP203000)</a> window.</li>
</ol>
<p><strong>Example:</strong> <code>=TodayUTC()</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>DateAdd(date</strong>, <strong>interval</strong>, <strong>number</strong> )</td>
<td class="vismanet-table__cell"><p>Returns the new date calculated as a <strong>date</strong> parameter to which the specified time interval has been added.</p>
<p>The <strong>interval</strong> argument is a <strong>string</strong> expression that is the interval to be added. This argument can have the following values:</p>
<dl>
<dt>yyyy</dt>
<dd>year (a <strong>number</strong> of years will be added to a <strong>date</strong> )</dd>
<dt>m</dt>
<dd>month (a <strong>number</strong> of months will be added to a <strong>date</strong> )</dd>
<dt>y</dt>
<dd>day of year (same as <strong>day</strong> )</dd>
<dt>d</dt>
<dd>day (a <strong>number</strong> of days will be added to a <strong>date</strong> )</dd>
<dt>h</dt>
<dd>hour (a <strong>number</strong> of hours will be added to a <strong>date</strong> )</dd>
<dt>n</dt>
<dd>minute (a <strong>number</strong> of minutes will be added to a <strong>date</strong> )</dd>
<dt>s</dt>
<dd>second (a <strong>number</strong> of seconds will be added to a <strong>date</strong> )</dd>
</dl>
<p>The <strong>number</strong> is the numeric expression that is the number of intervals to be added. The numeric expression can either be positive, for dates in the future, or negative, for dates in the past. The <strong>date</strong> argument is the date to which <strong>interval</strong> is added.</p>
<p><strong>Example:</strong> <code>=DateAdd(CDate('31/01/1995'), 'm', -2)</code> <code>=DateAdd(Today(), 'y', 3)</code> <code>=DateAdd(Now(), 'd', 1)</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Year(date</strong> )</td>
<td class="vismanet-table__cell"><p>Returns the year component of the <strong>date</strong>.</p>
<p><strong>Example:</strong> <code>=Year(Now())</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Month(date</strong> )</td>
<td class="vismanet-table__cell"><p>Returns the month component of the <strong>date</strong>.</p>
<p><strong>Example:</strong> <code>=Month(Now())</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Day(date</strong> )</td>
<td class="vismanet-table__cell"><p>Returns the day component of the <strong>date</strong>.</p>
<p><strong>Example:</strong> <code>=Day(Now())</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>DayOfWeek(date</strong> )</td>
<td class="vismanet-table__cell"><p>Returns the day of week for a <strong>date</strong>.</p>
<p><strong>Example:</strong> <code>=DayOfWeek(Today())</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>DayOfYear(date</strong> )</td>
<td class="vismanet-table__cell"><p>Returns the day of the year for a <strong>date</strong>.</p>
<p><strong>Example:</strong> <code>=DayOfYear(Now())</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Minute(date</strong> )</td>
<td class="vismanet-table__cell"><p>Returns the minutes for a <strong>date</strong>.</p>
<p><strong>Example:</strong> <code>=Minute(Now())</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Second(date&gt;)</td>
<td class="vismanet-table__cell"><p>Returns the second component of the <strong>date</strong>.</p>
<p><strong>Example:</strong> <code>=Second(Now())</code></p>
</td>
</tr>

</table>


## Other functions

The **Other functions** group includes the following functions.

<table class="vismanet-table">
  <colgroup>
    <col class="vismanet-table__col--key">
    <col>
  </colgroup>
<thead class="vismanet-table__head">
  <tr class="vismanet-table__header-row">
<th class="vismanet-table__cell vismanet-table__cell--header">Function</th>
<th class="vismanet-table__cell vismanet-table__cell--header">Description and examples</th>
</tr>
</thead>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>IIf(expression</strong>, <strong>truePart</strong>, <strong>falsePart</strong> )</td>
<td class="vismanet-table__cell"><p>Returns one of two values, depending on the evaluation of an expression. If the expression evaluates to <strong>True</strong>, the function returns the <strong>truePart</strong> value; otherwise, it returns <strong>falsePart</strong> value.</p>
<p><strong>Example:</strong> <code>=IIf((A10-B10)&lt;&gt;0), CStr(A12), 'No data available')</code> (where A10, A12, and B10 are the links used as a function arguments)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Switch(expression_1</strong>, <strong>value_1</strong>, <strong>expression_2</strong>, <strong>value_2</strong>,&hellip;)</td>
<td class="vismanet-table__cell"><p>Returns one of the values, depending on the evaluation of the expressions in the parameter. The function returns the <strong>value_n</strong>, which corresponds to the first expression in the enumeration that evaluates to <strong>True</strong>.</p>
<p><strong>Example:</strong> <code>=Switch(((A10-B10)&lt;&gt;0), A12, ((A10-B10)&gt;0), B35)</code></p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>IsNull(value</strong>, <strong>nullValue</strong> )</td>
<td class="vismanet-table__cell"><p>Returns <strong>nullValue</strong>, if <strong>value</strong> is NULL; otherwise, returns <strong>value</strong>.</p>
<p><strong>Example:</strong> <code>=IsNull(A10, '0')</code> (if <code>A10</code> is NULL, returns <strong>0</strong>, otherwise returns the <code>A10</code> value)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">Sum(from, to)</td>
<td class="vismanet-table__cell"><p>Returns the sum of the values in the specified interval.</p>
<p><strong>Example:</strong> <code>=Sum('A11','A100')</code> (where A11 and A100 are the links used in a function argument)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>Sort(from</strong>, <strong>to</strong>, <strong>column</strong> )</td>
<td class="vismanet-table__cell"><p>Returns the values in the specified range of rows in the specified column sorted in ascending order.</p>
<p><strong>Example:</strong> <code>Sort('0100','0145','B')</code> (the values in rows from &lsquo;0100&rsquo; to &lsquo;0145&rsquo; in the &lsquo;B&rsquo; column will be sorted in ascending order)</p>
</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>SortD(from</strong>, <strong>to</strong>, <strong>column</strong> )</td>
<td class="vismanet-table__cell"><p>Returns the values in the specified range of rows in the specified column sorted in descending order.</p>
<p><strong>Example:</strong> <code>SortD('0100','0145','B')</code> (the values in rows from &lsquo;0100&rsquo; to &lsquo;0145&rsquo; in the &lsquo;B&rsquo; column will be sorted in descending order)</p>
</td>
</tr>

</table>


## Application-specific functions

This functions are specific for Visma Net.

<table class="vismanet-table">
  <colgroup>
    <col class="vismanet-table__col--key">
    <col>
  </colgroup>
<thead class="vismanet-table__head">
  <tr class="vismanet-table__header-row">
<th class="vismanet-table__cell vismanet-table__cell--header">Function</th>
<th class="vismanet-table__cell vismanet-table__cell--header">Description and Examples</th>
</tr>
</thead>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>ExtToInt(object field, object value</strong> )</td>
<td class="vismanet-table__cell">Converts the external format of the <strong>object field</strong> parameter into the internal object presentation (for example, converts <strong>AccountCD</strong> to <strong>AccountID</strong> ). Both arguments of the <strong>ExtToInt</strong> function must have the same data type.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>ExtToUI(object field, object value</strong> )</td>
<td class="vismanet-table__cell">Converts the external format of the <strong>object field</strong> parameter into the UI format. Both arguments of the <strong>ExtToUI</strong> function must have the same data type.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">GetDefExt(object field)</td>
<td class="vismanet-table__cell">Gets the default value of the <strong>object field</strong> parameter in the external format.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">GetDefInt(object field)</td>
<td class="vismanet-table__cell">Gets the default value of the <strong>object field</strong> parameter in the internal format.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">GetDefUI(object field)</td>
<td class="vismanet-table__cell">Gets the default value of the <strong>object field</strong> parameter in the UI format.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>GetDescription(object field</strong>, <strong>object value</strong> )&gt;</td>
<td class="vismanet-table__cell">Returns the description of the <strong>object field</strong> parameter as it is defined in the PXSelectorAttribute. Both arguments of the GetDescription function must have the same data type. Note: If you use this function for subaccounts, the subaccount description is not available if the <strong>On-the-fly entry</strong> option is specified for subaccounts in the <a href="/visma-net-erp/help/common-settings/common-settings-windows/segment-keys-cs202000/index.md">Segment keys (CS202000)</a> window.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">GetDisplayName(object field)</td>
<td class="vismanet-table__cell">Returns the localised name of the <strong>object field</strong> parameter.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">GetFormat(object field)</td>
<td class="vismanet-table__cell">Returns the data type of the <strong>object field</strong> parameter.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell">GetMask(object field)</td>
<td class="vismanet-table__cell">Returns the mask of the <strong>object field</strong> parameter.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>IntToExt(object field, object value</strong> )</td>
<td class="vismanet-table__cell">Converts the external format of the <strong>object field</strong> parameter into the internal object presentation (for example, converts <strong>AccountID</strong> to <strong>AccountCD</strong> ). Both arguments of the <strong>IntToExt</strong> function must have the same data type.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>IntToUI(object field, object value</strong> )</td>
<td class="vismanet-table__cell">Converts the internal format of the <strong>object field</strong> parameter into the UI format. Both arguments of the <strong>IntToUI</strong> function must have the same data type.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>UIToExt(object field, object value</strong> )</td>
<td class="vismanet-table__cell">Converts the UI format of the <strong>object field</strong> parameter into the external object format. Both arguments of the <strong>UIToExt</strong> function must have the same data type.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>UIToInt(object field, object value</strong> )</td>
<td class="vismanet-table__cell">Converts the UI format of the <strong>object field</strong> parameter into the internal object format. Both arguments of the <strong>UIToInt</strong> function must have the same data type.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>FormatPeriod(object period</strong> )</td>
<td class="vismanet-table__cell">Performs <strong>ExtToUI</strong> data conversion for the <strong>object period</strong> parameter. This function is used to get the period defined by the report @StartPeriod and @EndPeriod dates.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>FormatPeriod(object period</strong>, <strong>object period shift</strong> )</td>
<td class="vismanet-table__cell">Performs <strong>ExtToUI</strong> data conversion for the <strong>object period</strong> parameter with a time shift defined by <strong>object period shift</strong> argument. This function is used to get the period defined by the report @StartPeriod and @EndPeriod dates.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>FormatYear(object period</strong> )</td>
<td class="vismanet-table__cell">Performs <strong>ExtToUI</strong> data conversion for the <strong>object period</strong> parameter year part. This function is used to get the period defined by the report @StartPeriod and @EndPeriod dates.</td>
</tr>

<tr class="vismanet-table__row">
<td class="vismanet-table__cell"><strong>FormatYear(object period</strong>, <strong>object period shift</strong> )</td>
<td class="vismanet-table__cell">Performs <strong>ExtToUI</strong> data conversion for the <strong>object period</strong> parameter year part with a time shift defined by <strong>object period shift</strong> argument. This function is used to get the period defined by the report @StartPeriod and @EndPeriod dates.</td>
</tr>

</table>


### Parent topic

[Formulas - overview](https://docs.vismasoftware.no/visma-net-erp/help/general-ledger/manage-analytical-reports/formulas/about-formulas/index.md)

<h2>Related pages</h2><h3>Concepts</h3>
<ul><li><a href="/visma-net-erp/help/general-ledger/manage-analytical-reports/formulas/about-parameters/index.md">About parameters</a></li>
</ul>


---

[View this page](https://docs.vismasoftware.no/visma-net-erp/help/general-ledger/manage-analytical-reports/formulas/about-functions/)
