Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rangesum Above ,Below and Before,After and Range Avg

Hi ,

can any body expain RangeSum,RangeAvgfunction with above all properties

regards

Mahesh

1 Solution

Accepted Solutions
Siva_Sankar
Master II
Master II

Find the attached file explaining the qlikview  functions 'Rangesum Above ,Below and Before,After  and Range Avg'

Regards.

Siva.

View solution in original post

5 Replies
Siva_Sankar
Master II
Master II

Find the attached file explaining the qlikview  functions 'Rangesum Above ,Below and Before,After  and Range Avg'

Regards.

Siva.

Not applicable
Author

Range functions will replace the following Chart General Numeric Functions: numsum, numavg, numcount, nummin and nummax, which should now be regarded as obsolete.

rangesum(expr1 [ , expr2, ... exprN ])

Returns the sum of a range of 1 to N arguments. As opposed to the + operator, rangesum will treat all non-numeric values as 0.

The argument expressions of this function may contain Chart Inter Record Functions with a third optional parameter, which in themselves return a range of values.

Examples:

rangesum (1,2,4)returns 7
rangesum (1,'xyz')returns 1
rangesum (null( ))returns 0
rangesum (above(count(x),-1,3))returns the sum of the three results of the count(x) function evaluated on the row below the current row, the current row and the row above the current row.

rangeavg(expr1 [ , expr2, ... exprN ])

Returns the average of a range of 1 to N arguments. If no numeric value is found, NULL is returned.

The argument expressions of this function may contain Chart Inter Record Functions with a third optional parameter, which in themselves return a range of values.

Examples:

rangeavg (1,2,4)returns 2.33333333
rangeavg (1,'xyz')returns 1
rangeavg (null( ), 'abc')returns NULL
rangeavg (above(count(x),0,3))returns a sliding average of the result of the inner count(x) expression calculated on the current row and two rows above the current row.

Check out Help in Qlikview for more information

Not applicable
Author

Below link may also help you ...

http://community.qlik.com/docs/DOC-4252

dineshraj
Partner - Creator
Partner - Creator

Hi siva,

I am new to qlik. can we use rangesum(avg,count) with set analysis like this?

rangesum({.......}field_name)

NityaReddy
Contributor
Contributor

Hi,

Can someone help me figure out the formula to achieve the following:

Here is the what I currently have:

Order NumMonthYearJan 2018Feb 2018Mar 2018Apr 2018May 2018
123123 2210122512
345332 101281312
453456 3232323232
766454 432162323

 

I am trying to write a formula where from the month of Feb the values get aggregated. Feb = Jan+Feb; Mar=Jan+Feb+Mar etc.,

Order NumMonthYearJan 2018Feb 2018Mar 2018Apr 2018May 2018
123123 2232446981
345332 1022304355
453456 326496128160
766454 43647093116

 

I have attached the sample application