Skip to main content Skip to complementary content

RangeNumericCount - script and chart function

RangeNumericCount() finds the number of numeric values in an expression or field.

Syntax:  

RangeNumericCount(first_expr[, Expression])

Return data type: integer

Arguments:  

The argument of this function may contain inter-record functions which in themselves return a list of values.

  • first_expr: The expression or field containing the data to be measured.
  • Expression: Optional expressions or fields containing the range of data to be measured.

Examples:  

Examples and results
Example Result
RangeNumericCount (1,2,4)

Returns 3

RangeNumericCount (5,'abc') Returns 1
RangeNumericCount (null( ))

Returns 0

Example: (using expression)

RangeNumericCount (Above(MaxString(MyField),0,3))

Returns the number of numeric values in the three results of the MaxString(MyField) function evaluated on the current row and two rows above the current row.

Tip noteDisable sorting of MyField to ensure that example works as expected.
Example expression output
MyField RangeNumericCount(Above(MaxString(MyField),0,3))
10 1
abc 1
8 2
def 1
xyz 1
9 1

Data used in examples:

RangeTab:

LOAD * INLINE [

MyField

10

'abc'

8

def

xyz

9

] ;

Learn more

 

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!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com