Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Running Total In Script

Hai,

I'm trying to get the running in total in script.Please refer my atatchment.Also i 've tried with the following script:

IF(ACCOUNT=PEEK(ACCOUNT), ([AMOUNT] + PEEK(RAMOUNT)),[AMOUNT]) AS RAMOUNT

Please do the needul..

Thanks in Advance..

1 Reply
cotiso_hanganu
Partner - Creator III
Partner - Creator III

It works, reading from your file.

Beware: field names are case sensitive !

Sempre fi,
Cotiso

load *,
I
F ([Account Code]=peek([Account Code]), (Amount + peek(RAMOUNT)),Amount) AS RAMOUNT;

LOAD [Account Code], Yearmm, Amount, [What I want]
FROM
.\Data.xls (biff, embedded labels, table is Sheet1$);