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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
fheidenstecker
Partner - Creator II
Partner - Creator II

Above Function

Hi,

I have a question regarding the Above Function. I want to calculate the difference between the current line and the previous one.

I expect the result to be as in this Excel Table

Above.png

I simply can't get it to work. The problem I think is the rowno starts again at 1, because there are 2 different years (2012,2013)

Does anybody have an idea how to solve this?

Cheers,

Fabian

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try with the TOTAL qualifier:

sum(Betrag)- above(TOTAL sum( Betrag ))

View solution in original post

5 Replies
swuehl
Champion III
Champion III

Try with the TOTAL qualifier:

sum(Betrag)- above(TOTAL sum( Betrag ))

Not applicable

try this

sum( Sales )  - above( sum( Sales ))

or this one

above( sum( Sales )) - sum( Sales ) 

Not applicable

PFA.

Hope it helps!

fheidenstecker
Partner - Creator II
Partner - Creator II
Author

Thats was FAST!

Thanks swuehl and Shyamal Pandit

er_mohit
Master II
Master II

See the attached file