Shift columns advanced.

Parameters:
See dedicated page for more information.
shiftColumnsAdvanced is a scripted action. Embedded code is accessible and customizable through this tab.
See dedicated page for more information.
The shiftColumnsAdvanced action shifts values between columns conditionally, based on matching values from a second input table (connected to the second pin). This action is useful for performing controlled data shifts depending on external conditions.
This action requires two input tables:
| Amount | Target | Flag |
|---|---|---|
| 10 | 0 | A |
| 20 | 0 | B |
| Trigger |
|---|
| A |
| A |
| Setting | Value |
|---|---|
| Source column to be moved/shifted | Amount |
| Destination column | Target |
| Column to test | Flag |
| Trigger value inside activation column | Trigger |
| Create destination column if it does not exist | Enabled (✔) |
| Default value of destination column if created | null |
| New value of source column after a shift | Do not change |
| New value of destination column if no shift | Do not change |
Flag column.Trigger column of the trigger table (Pin 1).Amount column is shifted into the Target column.Notes
- Column selection must be done via the selector to avoid mistakes.
- Both input tables must contain data; empty tables will trigger errors.
- The number of rows in Pin 1 typically should match or be compatible with Pin 0 to ensure proper shifting.
- This action supports advanced conditional shifting, making it ideal for data preparation workflows.
cannot find column ... on pin 0: This means the required column is missing in the main table (Pin 0).There are no rows available on input pin 1: Pin 1 (trigger table) is empty.Amount to Target column only if the product flag matches a certain trigger condition in an external table.