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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Prabhu1204
Creator
Creator

Cumulative is is not working as expected

I need to perform for the field Name OLD. According to year and program name.

 

Prabhu1204_1-1604588571574.png

 

In the screeshot,

It works fine for first year 2016-01, but for 2017 it should have values as 0.28 but it is summing up with the previous one.

 

I tried both the below script.. both not working fine as expected.

LOAD
"Year",
OLD,
RangeSum(peek('Cumulative') , OLD) AS Cumulative
Resident EXT

ORDER by Year;


Load


OLD,
Year,
"Program Name",
rangeSum(peek('Cumulative') ,OLD) AS Cumulative
Resident EXT;

 

 

what i am doing wrong here

-Prabhu
2 Replies
QFabian
MVP
MVP

hi, you should add more fields to the order sentence, for example 'program name'

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
Prabhu1204
Creator
Creator
Author

Tried and no lucj

-Prabhu