- Type: Inserted as a measure
- Description: Calculates the difference between two values, current row and previous row, in each column.
- Range:
- Columns: Each column
- Rows: Each row minus Previous row
- Measures: First measure
- Syntax:
sum(0, 0, m1) - sum(0, -1, m1, sum(0, 0, m1))
- Sample crosstab:
Example
Here we want to calculate the difference between current row and previous row (months) for each column..
Notice that the first row sums to 0, since there is no previous row.
Comments
Please sign in to leave a comment.