Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

above function?

above(sum(Sales), 2)+above(sum(Sales), 1)       how to calculate  this   above(sum(Sales), 2)

PLS  HELP  ME 

sales:

800

1200

1000

  30

8 Replies
MK_QSL
MVP
MVP

What is your requirements?

hic
Former Employee
Former Employee

You should not use '+' together with the inter-record functions since these return NULL sometimes, and '+' doesn't work with NULL.

Instead, you should use RangeSum():

   RangeSum(above(sum(Sales), 2), above(sum(Sales), 1))

But just as Manish Kachhia, I wonder what you really are trying to do...

HIC

Not applicable
Author

Hi henric

how it is calculating here for this expression above(sum(Sales), 2

above(sum(Sales), 2=?  what is output and  how  pls tell me

i am thankful to u

jagan
Partner - Champion III
Partner - Champion III

Hi Manoj,

Suppose you have a straight table like below then

S.No.      Sum(Sales)      Above(Sum(Sales), 2)

1               5                         -

2               10                        -

3               20                        5

4               25                       10 

5               30                       20

Here Above() will give the Previous row expression values, if you do not give second parameter (2) then it returns the above row value, if you specify 2 then it will return second above row.

Hope this helps you.

Regards,

Jagan.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Continuation to my previous post

For the first two rows you don't have second previous rows that is why you are getting Null values.

Regards,

Jagan.

Not applicable
Author

Thank u very much yar

like wise if u take below then it will give current line below rows right

jagan
Partner - Champion III
Partner - Champion III

Yes.

Regards,

jagan.

SunilChauhan
Champion II
Champion II

above(above(sum(Sales)))+above(sum(Sales))

Sunil Chauhan