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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

cummulative data

Hi ,

Here my data and result is given below

PlantPlant1DateAmount
P1PP11-Jan-102000
P1PP12-Jan-10-100
P1PP11-Feb-10200
P1PP11-Mar-10-3000
P2PP11-Jan-102000
P2PP12-Jan-10-100
P2PP11-Feb-10200
P2PP11-Mar-10-3000


Result

PlantPlant1DateCummulative Amount
P1PP11-Jan-102000
P1PP12-Jan-101900
P1PP11-Feb-102100
P1PP11-Mar-10-900
P2PP11-Jan-102000
P2PP12-Jan-101900
P2PP11-Feb-102100
P2PP11-Mar-10-900


Please help me.

regards,

Aruensh

3 Replies
Not applicable
Author

If you are showing it in a straight table check the complete ackumulation box on the expression (sum(amount).

Make sure your dimensions are sorted.

/Michael

Not applicable
Author

thanks u support ..

But i want to built this logic in script and selection basis .

I wrote this script



Transactions:

LOAD

Plant

,

Plant1

,

Date

,

Amount

as Amount

,

(



numsum(Amount, peek([Cummulative Amount]))) as

[Cummulative Amount]

FROM

(

ooxml, embedded labels, table is Sheet1

)

but problem is that i cant group plant and date wise

regards,





Arunesh kumar

brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi Arunesh,

the script looks like this:

Amount,

(Amount + If(Not IsNull(peek(Amount)),peek(Amount),0)) as [Cummulative Amount]