Table calculation functions (WIP) Flashcards

1
Q

LOOKUP(expression, [offset])

A

Primary function

Returns the value of the expression in a target row,
specified as a relative offset from the current row.
If the offset is -1, then the result will be returned for
the previous value in the scope and direction

LOOKUP(SUM([Profit]), FIRST ()+2) computes the
SUM([Profit]) in the third row of the partition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

TOTAL(expression)

A

Primary function

Returns the total for the given expression in the
current partition

TOTAL(SUM([Sales])) returns the total for the sum
of sales based on the current scope and direction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

PREVIOUS_VALUE

A

Primary function

which returns the value of the expression in the previous row

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

RUNNING_SUM, RUNNING_AVG and other similar running calculations

A

Primary functions

return the running sum, running average, etc. of the given expression, from the first row in the partition to the current row.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

WINDOW_AVG, WINDOW_STDEV, and other similar window calculations

A

Primary functions

return the average, standard deviation, etc. of the expression within the window (defined by means of offsets from the current row).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

RANK

A

Primary function

returns the standard competition rank for the current row in the partition with other options available that vary on how they process identical values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

FIRST and LAST

A

Helper functions

return the number of rows from the current row to the first or last row in the partition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

INDEX

A

Helper function

returns the position of the current value, given the chosen scope and direction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

SIZE

A

Helper function

returns the number of rows in the current scope.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly