# Funções de intervalo

As funções de intervalo são funções que pegam um conjunto de valores e produzem um valor único como resultado. Todas as funções de intervalo podem ser usadas no script de carregamento e nas expressões de gráfico.

Por exemplo, em um gráfico, uma função de intervalo pode calcular um único valor a partir de um conjunto de registros. No script de carregamento, uma função de intervalo pode calcular um único valor a partir de um conjunto de valores em uma tabela interna.

Use a caixa suspensa em cada função para ver uma breve descrição e a sintaxe de cada função. Clique no nome da função na descrição da sintaxe para obter detalhes.

Nota informativaAs funções de intervalo prevalecem sobre as seguintes funções numéricas gerais: numsum, numavg, numcount, nummin e nummax. Elas ainda podem ser usadas, mas não são recomendadas.

## Funções básicas de intervalo

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeMax

RangeMax() retorna o valor numérico mais alto encontrado na expressão ou campo.

[**rangemax**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangemax.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeMaxString

RangeMaxString() retorna o último valor da ordem de classificação de texto encontrado na expressão ou campo.

[**rangemaxstring**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangemaxstring.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeMin

RangeMin() retorna os menores valores numéricos encontrados na expressão ou campo.

[**rangemin**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangemin.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeMinString

RangeMinString() retorna o primeiro valor na ordem de classificação de textos encontrado na expressão ou campo.

[**rangeminstring**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangeminstring.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeMode

RangeMode() encontra o valor mais geralmente ocorrido (valor de modo) na expressão ou campo.

[**rangemode**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangemode.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeOnly

RangeOnly() é uma função dupla que retornará um valor se a expressão for avaliada como um valor único. Se não for esse o caso, NULL é retornado.

[**rangeonly**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangeonly.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeSum

RangeSum() retorna a soma de um intervalo de valores. Todos os valores não numéricos são tratados como 0, diferente do operador +.

[**rangesum**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangesum.htm)(first\_expr[, Expression])

## Funções de intervalo de contador

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeCount

RangeCount() retorna o número de valores, de texto e numéricos, na expressão ou campo.

[**rangecount**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangecount.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeMissingCount

RangeMissingCount() retorna o número de valores não numéricos (incluindo NULL) na expressão ou campo.

[**rangemissingcount**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangemissingcount.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeNullCount

RangeNullCount() encontra o número de valores NULL na expressão ou campo.

[**rangenullcount**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangenullcount.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeNumericCount

RangeNumericCount() encontra o número de valores numéricos em uma expressão ou campo.

[**rangenumericcount**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangenumericcount.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeTextCount

RangeTextCount() retorna o número de valores de texto em uma expressão ou campo.

[**rangetextcount**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangetextcount.htm)(first\_expr[, Expression])

## Funções de intervalo estatístico

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeAvg

RangeAvg() retorna a média de um intervalo. A entrada para a função pode ser um intervalo de valores ou uma expressão.

[**rangeavg**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangeavg.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeCorrel

RangeCorrel() retorna o coeficiente da correlação para dois conjuntos de dados. O coeficiente da correlação é uma medida da relação entre os conjuntos de dados.

[**rangecorrel**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangecorrel.htm)(x\_values , y\_values[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeFractile

RangeFractile() retorna o valor que corresponde ao enésimo fractile (quantil) de um intervalo de números.

[**rangefractile**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangefractile.htm)(fractile, first\_expr[ ,Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeKurtosis

RangeKurtosis() retorna o valor que corresponde à curtose de um intervalo de números.

[**rangekurtosis**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangekurtosis.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeSkew

RangeSkew() é uma função de gráfico numérica que retorna o valor correspondente à assimetria de um intervalo de números.

[**rangeskew**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangeskew.htm)(first\_expr[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeStdev

RangeStdev() localiza o desvio padrão de um intervalo de números.

[**rangestdev**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangestdev.htm)(expr1[, Expression])

## Funções de intervalo financeiro

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeIRR

RangeIRR() retorna a taxa de retorno interno de uma série de fluxos de caixa representada pelos valores de entrada.

[**RangeIRR**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/RangeFunctions/RangeIRR.htm)(value[, value][, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeNPV

RangeNPV() retorna o valor líquido atual de um investimento com base em uma taxa de desconto e em uma série de pagamentos futuros (valores negativos) e receitas (valores positivos). O resultado apresenta um formato numérico padrão de money.

[**RangeNPV**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/RangeFunctions/RangeNPV.htm)(discount\_rate, value[, value][, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeXIRR

RangeXIRR() retorna a taxa de retorno interno de uma programação de fluxos de caixa que não são necessariamente periódicos. Para calcular a taxa de retorno interno de uma série de fluxos de caixa periódicos, use a função RangeIRR.

[**RangeXIRR**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/RangeFunctions/RangeXIRR.htm)(values, dates[, Expression])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/RangeFunctionsInCharts.htm)

#### RangeXNPV

RangeXNPV() retorna o valor atual líquido de uma programação de fluxos de caixa que não são necessariamente periódicos. O resultado apresenta um formato numérico padrão de money. Para calcular o valor presente líquido de uma série de fluxos de caixa periódicos, use a função RangeNPV.

[**RangeXNPV**](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/RangeFunctions/RangeXNPV.htm)(discount\_rate, values, dates[, Expression])

## Saiba mais

* [Funções entre registros](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/ChartFunctions/InterRecordFunctions/inter-record-functions-charts.htm)