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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get the difference of two row values of the same table?

Hi all,

i need some help..

table1:

value

23

34

56

67

i need the output to be in follwing manner.

output:

value     variation

23             11
34             22

56             12

68             68

1 Solution

Accepted Solutions
Not applicable
Author

Hi

I think it's better to do it in the script. See attached file.

View solution in original post

3 Replies
alexandros17
Partner - Champion III
Partner - Champion III

this is my example

Not applicable
Author

Hi

I think it's better to do it in the script. See attached file.

ankurakash
Contributor III
Contributor III

Hi Saugat,

The above function will do the needful.

Please check Henric blog post: The Above Function

Regards,

Ankur