The range functions are functions that take an array of values and produce a single value as a result. All range functions can be used in both the load script and in chart expressions.
For example, in a chart, a range function can calculate a single value from an inter-record array. In the load script, a range function can calculate a single value from an array of values in an internal table.
Use the drop-down on each function to see a brief description and the syntax of each function. Click the function name in the syntax description for further details.
Information noteRange functions supersede the following general
numeric functions: numsum,
numavg, numcount,
nummin and nummax. These can still be used, but are not recommended.
Basic range functions
RangeMax() returns the highest numeric value found within the expression or field.
RangeCorrel() returns the correlation coefficient for two sets of data. The correlation coefficient is a measure of the relationship between the data sets.
RangeNPV() returns the net present value of an investment
based on a discount rate and
a series of future payments (negative values) and incomes (positive values).
The result has a default number format of money.
RangeXIRR() returns the internal rate of return for a
schedule of cash flows that is not necessarily periodic. To calculate
the internal rate of return for a series of periodic cash flows, use the
RangeIRR
function.
RangeXNPV() returns the net present value for a schedule
of cash flows that is not necessarily periodic. The result has a default
number format of money. To calculate the net present value for a series
of periodic cash flows, use the RangeNPV
function.
Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com