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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to consider sum( Xi+1 - Xi ), where Xi - each record of thw field?

Hi all,
Can anyone help, how to consider sum( Xi+1 - Xi ) in chart, where Xi - each record of the field?

1 Reply
Miguel_Angel_Baeyens

Hello,

You can do something like the following in your load script:

LOAD FieldID, Amount, If(Previous(FieldID) = FieldID, RangeSum(Amount, Previous(Amount))) AS Acum FROM FILE.QVD (QVD)GROUP BY FieldIDORDER BY FieldID DESC


Hope that helps