Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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