Automated migration results
When Import detects an Alteryx Running Total tool, it generates a WindowFunction gem that computes a sum for a selected column:- The selected value field is mapped to a
sumaggregation function. - Grouping fields map to the gem’s Partition by configuration.
- Row ordering maps to the gem’s Order by configuration.
Manually replicate in Prophecy
To reproduce Running Total behavior manually:- Add a WindowFunction gem to the canvas.
- Configure Order by column(s) to define the row sequence.
- Configure Partition by column(s) if the running total should reset by group.
- Configure a target column and use a
sumexpression for the running total.
Configuration options
In Alteryx (Running Total tool)
Configure the tool by selecting:- Field(s) for Group By (optional).
- Field for Create Running Total.
In Prophecy (WindowFunction gem)
Configure the WindowFunction gem by specifying:- Partition by columns: the grouping keys that reset the running total (mirrors the Running Total tool’s “Group by”).
- Order by columns: the columns that define row sequence.
- Window use: create the running total target column using a
sumwindow expression over the running-total field.
Output behavior
- Alteryx outputs a new column containing the cumulative value for each row.
- Prophecy outputs a derived column whose value reflects the cumulative aggregation over the defined window.
Known caveat
Row order: Running totals require a deterministic sort order. If the order is ambiguous, results may differ.Example
Input dataset
| record_id | event_date | amount |
|---|---|---|
| 1 | 2025-01-01 | 10 |
| 1 | 2025-01-05 | 5 |
| 1 | 2025-01-10 | 7 |
| 2 | 2025-01-03 | 4 |
| 2 | 2025-01-07 | 6 |
Alteryx Running Total tool
Goal: Compute a running sum ofamount, resetting for each new record_id, ordered by event_date.
- Field for group by:
record_id - Field for running total:
amount
Prophecy equivalent (WindowFunction gem)
Configure a WindowFunction gem with:- Partition by:
record_id - Order by:
event_date - Window use: add Target column
RunTot_amount. Configure Expression as function > sum with columnamountas parameter.
Resulting output
| record_id | event_date | amount | RunTot_amount |
|---|---|---|---|
| 1 | 2025-01-01 | 10 | 10 |
| 1 | 2025-01-05 | 5 | 15 |
| 1 | 2025-01-10 | 7 | 22 |
| 2 | 2025-01-03 | 4 | 4 |
| 2 | 2025-01-07 | 6 | 10 |

