Skip to content

Copy Records

Copies records from a source table to a destination table. The source table and the destination table can be identical.

Permissions

Command KindNeeded User Kind
WriteAll

Parameters

NameTypeDescriptionRequiredDefaultValues
DestinationstringDestination table.yes
SourcestringSource table.yes
Averagearray of stringCopies the average of a field ([DestinationField].[SourceField]).no
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
Countarray of stringCopies the count of records ([DestinationField].[SourceField]).no
CountItemsarray of stringCopies the count of items ([DestinationField].[SourceDimension]).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 stringThe parameter has three parts. The second part is a fixed string, which specifies the operation. [Dimension].[Fixed].[Item] copies the values to one item. [Dimension].[Distribution].[Distribution] copies the values to the items according to the distribution. [Dimension].[DistributionTotal].[Distribution] copies the sum to the items according to the distribution. [Dimension].[ItemsCount] copies the values to the items according to the dimension. [Dimension].[ItemsTotal] copies the sum to the items according to the dimension.no
Factorarray of stringA number value is changed via a factor ([NumberField].[Factor]). For example a factor of 1.25 adds 25% to the value.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
FilterTreeFactorarray of stringFilters by tree sum ([Dimension].[Tree].[Sum]). The factor of the items and sums are used to calculate the values.no
Maxarray of stringCopies the maximum of a field ([DestinationField].[SourceField]).no
Minarray of stringCopies the minimum of a field ([DestinationField].[SourceField]).no
ParallelbooleanIf 'True' multiple threads are used. The default value is 'True'.notrue
Percentarray of stringCopies values with a percentage ([DestinationField].[SourceField].[Percent]). For example a percentage of 125 adds 25% to the value.no
Sumarray of stringCopies the sum of a field ([DestinationField].[SourceField]).no
Targetarray of stringCopies values with a target value. ([DestinationField].[SourceField].[Target]). For example a target value of 1000 adjusts the source values to their proportion of the value of 1000.no

Result

No fields

Code

text
COPY RECORDS
DESTINATION=[string, Needed]
SOURCE=[string, Needed]
AVERAGE=[string, Multiple]
ADD=[boolean, default=false]
COUNT=[string, Multiple]
COUNTITEMS=[string, Multiple]
DATEOFFSET=[integer, default=0]
DIMENSION=[string, Multiple]
FACTOR=[string, Multiple]
FILTER=[string, Multiple]
FILTERATTRIBUTE=[string, Multiple]
FILTERFIELD=[string, Multiple]
FILTERRANGE=[string, Multiple]
FILTERTREE=[string, Multiple]
FILTERTREEFACTOR=[string, Multiple]
MAX=[string, Multiple]
MIN=[string, Multiple]
PARALLEL=[boolean, default=true]
PERCENT=[string, Multiple]
SUM=[string, Multiple]
TARGET=[string, Multiple]