Skip to main content

Power Script Examples

Worked Power Script Flow Steps. A Power Script runs once for each record in a Query's result, and it can change the record in place through $record: add Fields, change values, or drop the record entirely. The aggregate examples also use $local, which keeps its values from one record to the next (see Reserved Power Script variables).

In this section​

ArticleIn one line
How to calculate a sum total aggregate via a Power ScriptTotal one Field across every record and write the grand total onto each row.
How to aggregate values on specific groups of dataKeep a separate running total for each group, such as each salesperson.
How to compare two dates in a Power ScriptAdd a column that says whether two date Fields match.