Skip to main content Skip to complementary content

Previous - script function

Previous() finds the value of the expr expression using data from the previous input record that has not been discarded because of a where clause. In the first record of an internal table, the function will return NULL.

Syntax:  

Previous(expr)

Return data type: dual

Arguments:  

Argument Description
expr The expression or field containing the data to be measured.

The expression can contain nested previous() functions in order to access records further back. Data are fetched directly from the input source, making it possible to refer also to fields that have not been loaded into Qlik Sense, that is,even if they have not been stored in its associative database.

Limitations:  

In the first record of an internal table, the function returns NULL.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!