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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
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