transformations:addcolumn
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
transformations:addcolumn [2023/11/24 19:10] – [Remarks] craigt | transformations:addcolumn [2024/02/05 14:20] (current) – craigt | ||
---|---|---|---|
Line 21: | Line 21: | ||
|Expression or Value|Options: | |Expression or Value|Options: | ||
|Position|Choose where the new column(s) will appear in the dataset. | |Position|Choose where the new column(s) will appear in the dataset. | ||
+ | |If column already exists|Choose how EasyMorph reacts if the new column name already exists in the dataset.\\ | ||
\\ | \\ | ||
Line 29: | Line 30: | ||
Subsequent expressions can reference columns previously created within the same //Calculate new column(s)// action. | Subsequent expressions can reference columns previously created within the same //Calculate new column(s)// action. | ||
+ | |||
+ | |||
\\ | \\ | ||
=====Examples===== | =====Examples===== | ||
- | **Example: | + | **Example |
**Source table:** Average income and deductions | **Source table:** Average income and deductions | ||
Line 54: | Line 57: | ||
| Switzerland | | Switzerland | ||
| Canada | | Canada | ||
+ | |||
+ | \\ \\ \\ | ||
+ | **Example #2:** Create multiple new columns within the same action. | ||
+ | |||
+ | \\ | ||
+ | **Action parameters: | ||
+ | > New column #1: MyDate = today() | ||
+ | > New column #2: MyYear = year([MyDate]) // | ||
+ | |||
+ | |||
\\ | \\ |
transformations/addcolumn.txt · Last modified: 2024/02/05 14:20 by craigt