transformations:addcolumn
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
transformations:addcolumn [2021/04/09 09:21] – [See also] dmitry | transformations:addcolumn [2023/11/24 19:16] – [Examples] craigt | ||
---|---|---|---|
Line 24: | Line 24: | ||
\\ | \\ | ||
=====Remarks===== | =====Remarks===== | ||
- | The expression is calculated for every row. Other column values in the same row can be referred to by column names in square brackets. It's not possible to refer from one row to another row or to another table. | + | The expression is calculated for every row. Other column values in the same row can be referred to by column names in square brackets. It's not possible to refer to other rows or tables. |
Instead of an expression, this action can insert a full column of static text or numeric values.\\ | Instead of an expression, this action can insert a full column of static text or numeric values.\\ | ||
+ | Subsequent expressions can reference columns previously created within the same //Calculate new column(s)// action. | ||
\\ | \\ | ||
=====Examples===== | =====Examples===== | ||
Line 40: | Line 41: | ||
| Switzerland | | Switzerland | ||
| Canada | | Canada | ||
+ | \\ | ||
**Action parameters: | **Action parameters: | ||
> New column name: Deductions $ | > New column name: Deductions $ | ||
> Expression: [Gross income] - [Disposable income] | > Expression: [Gross income] - [Disposable income] | ||
- | + | \\ | |
- | **Output | + | **Result |
^Country | ^Country | ||
Line 54: | Line 55: | ||
| Canada | | Canada | ||
+ | \\ \\ \\ | ||
+ | **Example: | ||
+ | \\ | ||
+ | **Action parameters: | ||
+ | > New column #1: MyDate = today() | ||
+ | > New column #2: MyYear = year([MyDate]) // | ||
+ | |||
+ | |||
+ | |||
+ | \\ | ||
+ | ====Community examples==== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
\\ | \\ | ||
Line 62: | Line 81: | ||
*Click the drop-down arrow in a column heading and select " | *Click the drop-down arrow in a column heading and select " | ||
In either case, a new column with a default column name will appear //after// the selected column. | In either case, a new column with a default column name will appear //after// the selected column. | ||
- | |||
- | |||
\\ | \\ |
transformations/addcolumn.txt · Last modified: 2024/02/05 14:20 by craigt