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: 
r_vdbraak
Contributor III
Contributor III

Create table with substrackt values

Hello all,

I'm having a table with date (Datum) and a value (Stand).

DatumStand Verbruik
31-12-20131883
28-2-20142281

398

30-4-20142577296
24-6-20142767190

What I need is to add a column named Verbruik, containing the difference between Stand and Stand of the Previous Datum.

I hope sombody can help me.

Labels (1)
1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

order by datum then use this expression

sum(Stand)-Above(Stand)

View solution in original post

1 Reply
alexandros17
Partner - Champion III
Partner - Champion III

order by datum then use this expression

sum(Stand)-Above(Stand)