Skip to content

Lookup Records

Looks up number or text values from a source table to a destination table.

Permissions

Command KindNeeded User Kind
WriteAll

Parameters

NameTypeDescriptionRequiredDefaultValues
LookupTablestringName of the lookup table ([Table]).yes
TablestringName of the table ([Table]).yes
AddbooleanIf 'True', the new value is added to an existing one. If 'False', the new value overwrites an existing one. The default value is 'False'.nofalse
Averagearray of stringBuilds the average of the lookup field and saves it in the specified field. ([Field].[LookupField].[Factor]). The default factor is '1'.no
CachebooleanIf 'True' a cache is used. It saves the lookup results for further use. The default value is 'True'.notrue
Countarray of stringBuilds the count of the lookup field and saves it in the specified field. ([Field].[LookupField].[Factor]). The default factor is '1'.no
DateCalcstringAggregates date values: [None]=no aggregation, [Year]=jan. till dec., [YearToDate]=jan. till now, [EndOfYear]=dec., [Rolling]=12 months back till now, [OffsetYear]=whole offset year of the database, [OffsetYearToDate]=offset month of the database till now., [EndOfOffsetYear]=last offset month of the database.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
Dimensionarray of stringDimension that is compared ([Dimension]). It must be present in both tables.no
DimensionAttributearray of stringDimension that is compared by attribute ([Dimension].[Attribute]). Dimension is the dimension of the table. The attribute is the name of the lookup dimension. The attribute value the name of the item to be filtered.no
DimensionStringarray of stringDimension that is compared by a text field ([Field]). The field name is the name of the lookup dimension. The text value the name of the item to be filtered.no
Filterarray of stringFilters by dimension item ([Dimension].[Item]) or tree sum ([Dimension].[Tree].[Sum]). The tree sum format is equal to 'FilterTree'.no
FilterAttributearray of stringFilters by attribute ([Dimension].[Attribute].[Value]).no
FilterFieldarray of stringFilters by field ([Field].[Operator].[Value]). The operators are (long and short): Contains (CO), Ends (EN), Equal (EQ), Greater (GR), GreaterEqual (GE), Less (LS), LessEqual (LE), NotContains (NC), Starts (ST) and Unequal/NotEqual (UE/NE)no
FilterRangearray of stringFilters by an item range ([Dimension].[StartItem].[EndItem]).no
FilterTreearray of stringFilters by tree sum ([Dimension].[Tree].[Sum]).no
LookupFilterarray of stringFilters the lookup table by dimension item ([Dimension].[Item]) or tree sum ([Dimension].[Tree].[Sum]). The tree sum format is equal to 'LookupFilterTree'.no
LookupFilterAttributearray of stringFilters the lookup table by attribute ([Dimension].[Attribute].[Value]).no
LookupFilterFieldarray of stringFilters the lookup table by field ([Field].[Operator].[Value]). The operators are: Contains (CO), Ends (EN), Equal (EQ), Greater (GR), GreaterEqual (GE), Less (LS), LessEqual (LE), NotContains (NC), Starts (ST) and Unequal/NotEqual (UE/NE)no
LookupFilterRangearray of stringFilters the lookup table by an item range ([Dimension].[StartItem].[EndItem]).no
LookupFilterTreearray of stringFilters the lookup table by tree sum ([Dimension].[Tree].[Sum]).no
LookupSubtablestringName of the lookup subtable ([Subtable]). A subtable contains additional filters used by the lookup table.no
Maxarray of stringBuilds the max of the lookup field and saves it in the field. ([Field].[LookupField].[Factor]). The default factor is 1.no
Minarray of stringBuilds the min of the lookup field and saves it in the field. ([Field].[LookupField].[Factor]). The default factor is 1.no
SubtablestringName of the subtable ([Subtable]). A subtable contains additional filters used by the table.no
Sumarray of stringBuilds the sum of the lookup field and saves it in the field. ([Field].[LookupField].[Factor]). The default factor is 1.no

Result

No fields

Code

text
LOOKUP RECORDS
LOOKUPTABLE=[string, Needed]
TABLE=[string, Needed]
ADD=[boolean, default=false]
AVERAGE=[string, Multiple]
CACHE=[boolean, default=true]
COUNT=[string, Multiple]
DATECALC=[string]
DATEOFFSET=[integer, default=0]
DIMENSION=[string, Multiple]
DIMENSIONATTRIBUTE=[string, Multiple]
DIMENSIONSTRING=[string, Multiple]
FILTER=[string, Multiple]
FILTERATTRIBUTE=[string, Multiple]
FILTERFIELD=[string, Multiple]
FILTERRANGE=[string, Multiple]
FILTERTREE=[string, Multiple]
LOOKUPFILTER=[string, Multiple]
LOOKUPFILTERATTRIBUTE=[string, Multiple]
LOOKUPFILTERFIELD=[string, Multiple]
LOOKUPFILTERRANGE=[string, Multiple]
LOOKUPFILTERTREE=[string, Multiple]
LOOKUPSUBTABLE=[string]
MAX=[string, Multiple]
MIN=[string, Multiple]
SUBTABLE=[string]
SUM=[string, Multiple]