Skip to content

Show Record Values

Shows the values of a record. Every dimension must be filtered with one item.

Permissions

Command KindNeeded User Kind
ReadAll

Parameters

NameTypeDescriptionRequiredDefaultValues
Filterarray of stringFilters by dimension item ([Dimension].[Item]) or tree sum ([Dimension].[Tree].[Sum]). The tree sum format is equal to 'FilterTree'.yes
TablestringName of the table ([Table]).yes
CalcDoublearray of stringCalculated number field. It is not a table field ([Field].[Caption]). Caption is the alternative column header text. Division divides number fields. For example [Dev].[Deviation].[100].no
CalcStringarray of stringCalculated text field. It is not a table field ([Field].[Caption].[Division]). Caption is the alternative column header text. For example [Com].[Comment].no
DateOffsetintegerMoves the date dimension items by the offset. The default value is '0'. For example the month '2022-02' with an offset of 5 becomes '2022-07'.no0
Fieldarray of stringA number or text field ([Field]).no
SubtablestringName of the subtable ([Subtable]). A subtable contains additional filters used by the table.no
TablecalculationstringName of the tablecalculation ([Tablecalculation]).no
VisualScriptQueryarray of VisualScriptGroupParamDefines the visual scriptno

VisualScriptGroupParam

Visual script parameter that defines the calculation of a group (name of the calculated field).

PropertyTypeDescriptionRequiredDefaultValues
GroupstringStarts a new group (name of the calculated field) in the visual script.no
InfosstringUser defined informational text about the group.no
TextstringVisual items in text format (expression tree). E.g. Multiplication(Field("Amount"),Field("Price")).no
VisualScriptItemsarray of VisualScriptItemParamVisual items in json format (expression tree).no

VisualScriptItemParam

An item returns a fixed value or a calculated value. A calculated value can use several inputs.

PropertyTypeDescriptionRequiredDefaultValues
IdstringUnique ID of the item. It is used by other items to reference the item as input.yes
ItemstringStarts a new item (name of the function) in the group.yesAbs, Addition, And, Between, Case, Ceil, CompareText, Concat, ConcatWithSpace, Contains, Copy, CumulatedIndex, CumulatedSum, DatabaseVariable, Date, DaysBetween, Delete, Division, Equal, Field, FieldMax, FieldMin, FieldSum, FillSum, Filter, Floor, FormatFloat, Frac, Greater, GreaterEqual, Guid, IfThenElse, In, IncDay, IncMonth, IncWeek, IncYear, InDateFilter, Int, Invert, IsKpi, IsSum, Length, Level, Lookup, Lower, LowerCase, LowerEqual, Max, Min, Mod, Multiplication, New, NewLine, Not, NullDiv, Number, NumberChars, Or, Percent, PercentDeviation, Pos, Records, RegEx, Replace, Round, RoundTo, Subtraction, Sum, Text, Trunc, Unequal, UpperCase, Value, VarToDate, VarToFloat, VarToStr, Week
Inputarray of stringValues from other items (referenced via 'ItemId') needed for the calculations.yes
ColorstringColor of the item in the editor.no
XintegerHorizontal position (pixels) of the item in the editor. The default value is '0'.no
YintegerVertical position (pixels) of the item in the editor. The default value is '0'.no

Items

Within each item property the following functions, which are clustered into several groups, can be used.

Group - Conversion
FunctionDescriptionInputsTargets
FormatFloatFormats a number.- Number to be formated.
- Format: '0' is the digit placeholder, '#' is the optional digit placeholder, '.' is the decimal separator and ',' is the thousand separator. E.g. '#,###,##0.00'
All
NumberCharsDeletes all characters that are not a number ('0' to '9').- Text to be converted.All
RegExConverts a text to perl regex.- Text.
- RegEx in Perl format.
- Options: 'Anchored', 'CaseLess', 'Extended', 'MultiLine', 'NoAutoCapture', 'SingleLine' or 'UnGreedy'. The default options are: MultiLine, SingleLine and Extended.
All
VarToDateConverts a text to date.- Text to be converted.
- Text format. The default format is 'YYYY-MM-DD'.
- Default text that is used when 'Input1' is empty.
All
VarToFloatConverts a text to number.- Text to be converted. The decimal separator is '.'.All
VarToStrConverts a value to text.- Value to be converted.All
Group - Database
FunctionDescriptionInputsTargets
DatabaseVariableLoads a database variable.- Name of the database variable. The database variables can be viewed with the 'SHOW VARIABLES' command.All
Group - Date and Time
FunctionDescriptionInputsTargets
DateReturns the actual date in the 'YYYY-MM-DD' format.All
DaysBetweenReturns the number days between the two specified dates. The date must be specified as 'YYYY-MM-DD' or 'YYYYMMDD'.- First date.
- Second date.
All
IncDayAdds days to a date. The date must be specified as 'YYYY-MM-DD' or 'YYYYMMDD'.- Date
- Number of days to be added.
All
IncMonthAdds months to a date. The date must be specified as 'YYYY-MM-DD' or 'YYYYMMDD'.- Date
- Number of months to be added.
All
IncWeekAdds weeks to a date. The date must be specified as 'YYYY-MM-DD' or 'YYYYMMDD'.- Date
- Number of months to be added.
All
IncYearAdds years to a date. The date must be specified as 'YYYY-MM-DD' or 'YYYYMMDD'.- Date
- Number of years to be added.
All
WeekReturns the week of a date. The date must be specified as 'YYYY-MM-DD' or 'YYYYMMDD'.- Date from which the week is to be determined.All
Group - Logic
FunctionDescriptionInputsTargets
AndReturns 'True' if one of the two inputs is 'True'. Otherwise 'False' is returned.- First boolean to be checked.
- Second boolean to be checked.
All
EqualChecks if two values are equal.- First value to be checked.
- Second value to be checked.
All
GreaterChecks if one number is greater than the other.- Number.
- Number to be checked.
All
GreaterEqualChecks if one number is greater or equal than the other.- Number.
- Number to be checked.
All
IfThenElseChecks a condition. if the condition is 'True' the second input is returned. If 'False' the third input is returned.- Condition. Must return 'True' or 'False'.
- Result when condition is 'True'.
- Result when condition is 'False'.
All
LowerChecks if one number is lower than the other.- Number.
- Number to be checked.
All
LowerEqualChecks if one number is lower or equal than the other.- Number.
- Number to be checked.
All
NotNegates an expression.- Boolean to be inverted.All
OrReturns 'True' if both of the tow inputs are 'True'. Otherwise 'False' is returned.- First boolean to be checked.
- Second boolean to be checked.
All
UnequalChecks if two values are unequal.- First value to be checked.
- Second value to be checked.
All
Group - Math
FunctionDescriptionInputsTargets
AbsReturns the absolute value. The decimal places are deleted.- Number to be converted.All
AdditionAdds two numbers.- First number to be added.
- Second number to be added.
All
BetweenChecks if a value is within a range.- Number to be checked.
- Lower bound.
- Upper bound.
All
CeilRounds a number up toward positive infinity.- Number to be converted.All
DivisionDivides two numbers.- Number.
- Number to divide by.
All
FloorRounds variables toward negative infinity.- Number to be converted.All
FracReturns the fractional part of a real number.- Number to be converted.All
IntReturns the integer part of a number.- Number to be converted.All
InvertMultiplies a number by '-1'.- Number to be converted.All
MaxMaximum of two numbers.- First number to be checked.
- Second number to be checked.
All
MinMinimum of two numbers.- First number to be checked.
- Second number to be checked.
All
ModReturns the remainder of a division, after the first number is divided by the second number.- Number.
- Number to divide by.
All
MultiplicationMultiplies two numbers.- Number.
- Number to multiply by.
All
NullDivDivides two numbers. If a division by null occurs, the third input is used.- Number.
- Number to divide by.
- Result when 'Input 2' is null.
All
NumberFixed number.All
PercentCalculates the percentage of the first number in relation to the second number. If the second number is '0', the third input is returned.- Number to calculate the percentage of.
- Reference number (the total or base).
- Result when 'Input 2' is null.
All
PercentDeviationCalculates the percentage deviation of the first number in relation to the second number. If the second number is '0', the third input is returned.- Number for which the percentage variance should be calculated.
- Reference number (the total or base).
- Result when 'Input 2' is null.
All
RoundRounds a number to an integer value.- Number to be rounded.All
RoundToRounds a number to the specified digit.- Number to be rounded.
- Number of digits.
All
SubtractionSubtracts two numbers.- Number.
- Number to be subtracted.
All
SumAdds up to three numbers.- First number to be added.
- Second number to be added.
- Third number to be added.
All
TruncTruncates a number to an integer.- Number to be converted.All
Group - Query
FunctionDescriptionInputsTargets
CumulatedIndexIndex of the record, starting with one.Select
Tablecalculation
CumulatedSumThe values from the first to the current record are added.Select
Tablecalculation
FieldGet the value of a field from the query.All
FieldMaxMaximum value of a field from the query.- Name of the field.Select
Tablecalculation
FieldMinMinimum value of a field from the query.- Name of the field.Select
Tablecalculation
FieldSumSummary value of a field from the query.- Name of the field.Select
Tablecalculation
FilterThis command is used by the client. At client side input four contains the name of a filter. When the query is send to the server, the client must replace the filter name with the filtered items.- Reserved, not used by now.
- Reserved, not used by now.
- Reserved, not used by now.
- Filter items.
Select
Tablecalculation
InDateFilterChecks if the query contains a date filter.- Name of the date filter to be checked.Select
Tablecalculation
LookupLoads a value from another table.- Additional filter.
- Reserved, not used by now.
- Reserved, not used by now.
- Name of the lookup table.
- Name of the lookup field.
- Calculation: 'Average', 'Count', 'Max', 'Min' or 'Sum'.
- Date offset. E.g. the lookup uses the month dimension and date offset of '-12'. The lookup will calculate the values from last year.
- Dimension in the query whose elements are to be used in the lookup. E.g. [Month],[Product]
- Fixed items that should be used in the lookup. E.g. [Year].[2020],[Region].[North]
- This input is used by the client. At client side it contains the names of filters. When the query is send to the server, the client must replace the names with the filter items.
- Date calculation: 'None', 'Year', 'YearToDate', 'EndOfYear', 'Rolling', 'OffsetYear', 'OffsetYearToDate' or 'EndOfOffsetYear'.
- An attribute can be used as a filter. A dimension in the query contains an attribute. The attribute name must be the same name as the filter dimension in the lookup table. The attribute value contains the item name to be filtered. E.g. [Customer].[Product],[Customer].[Region].
- An text field in the query can be used as a filter. The text field name must be the same name as the filter dimension in the lookup table. The value of the text field contains the item name to be filtered.
Select
Step
Tablecalculation
NewThe command is used in tables. It indicates that the calculated record is a new one.Table
RecordsReturns the number of records of the query.Select
Tablecalculation
ValueReturns the original value of the calculated field.All
Group - System
FunctionDescriptionInputsTargets
GuidGenerates a unique ID. E.g. '{1988C7BF-55AD-4764-8CB4-47F0BF797094}'.All
Group - Text
FunctionDescriptionInputsTargets
CaseSearches in a list of text pairs for the first text. If this is found, the second text is returned.- Text to be checked.
- Result when not found.
- Input 3 to N: Text pairs separated by '='.
All
CompareTextCompares two texts. If the first text is less than the second, a value less than zero is returned. If the first text is greater than the second, a value greater than zero is returned. If both texts are equal, null is returned.- First text to be checked.
- Second text to be checked.
All
ConcatConcatenates up to three texts.- First text to be concatenated.
- Second text to be concatenated.
- Third text to be concatenated.
All
ConcatWithSpaceConcatenates up to three texts. The texts are separated by spaces.- First text to be concatenated.
- Second text to be concatenated.
- Third text to be concatenated.
All
ContainsChecks the second text is included in the first text.- Text to be found.
- Text to search in.
All
CopyReturns a subtext of a text.- Text from which a part is to be copied.
- Start position.
- Number of chars.
All
DeleteRemoves a subtext from a text.- Text from which a part is to be deleted.
- Start position.
- Number of chars.
All
InChecks a text is included in a list.- Text to be checked.
- Input 2 to N: Text list.
All
LengthReturns the number of chars of a text.- Text from which the length is to be calculated.All
LowerCaseConverts the chars of a text to lower case.- Text to be converted.All
NewLineReturns a line feed char (#10).All
PosLocates a subtext in a text. If the subtext is not found, '0' is returned.- Subtext.
- Text.
All
ReplaceReplaces all occurrences of a subtext in a text.- Text.
- Old text.
- New text.
All
TextFixed text.All
UpperCaseConverts the chars of a text to upper case.- Text to be converted.All
Group - Tree
FunctionDescriptionInputsTargets
FillSumThe command is used in totals and trees. Normally a visual script calculates items, totals and sums. 'FillSum' indicates that totals and sums should not be calculated by the visual script. Instead, sums are cumulated.- In this input the result of the calculation should be placed.Select
Tablecalculation
IsKpiThe command is used in trees. It indicates that the calculated row is a sum with kpi.Select
Tablecalculation
IsSumThe command is used in formulas, totals and trees. It indicates that the calculated row is a sum.Select
Tablecalculation
LevelThe command is used in trees. It returns the level of the calculated row. Starting with one.Select
Tablecalculation
Targets
NameDescription
AllIt is used in all targets (select, step, table and tablecalculation).
SelectIt is used in queries ('SHOW RECORDS', 'CONSOLIDATE RECORDS', 'CONSOLIDATE TREE', 'UPDATE RECORDS'...).
StepIt is used in calculation steps ('SET STEP VISUAL').
TableIt is used in tables ('SET TABLE VISUAL').
TablecalculationIt is used in tablecalculations ('SET TABLECALCULATION VISUAL').

Result

NameTypeDescription

Code

text
SHOW RECORD VALUES
FILTER=[string, Multiple, Needed]
TABLE=[string, Needed]
CALCDOUBLE=[string, Multiple]
CALCSTRING=[string, Multiple]
DATEOFFSET=[integer, default=0]
FIELD=[string, Multiple]
SUBTABLE=[string]
TABLECALCULATION=[string]
VISUALSCRIPTQUERY=[VisualScriptGroupParam, Multiple]