Products | Versions |
---|---|
Spotfire Analyst | All Versions |
Sum([myDataColumn]) OVER AllPrevious([Axis.X])
If the same expression is used in a visualization based on an in-database data source, then you may see the following error in the visualization: "Could not find function 'AllPrevious'" (or other function name like 'Previous', "Next", etc). With the THEN keyword, it is possible to perform these cumulative aggregations.
Sum([Sales Total]) THEN Sum([Value]) OVER (AllPrevious([Axis.X]))
Count([Record No]) THEN Sum([Value]) OVER (AllPrevious([Axis.X]))
<Month([Date])>
Doc: Working With In-Database Data