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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
anat
Master
Master

cumulative sum of cumulative output

Hi,

how to implement below scenario in qlikview

    

time salcumulative sum required output
period 1100100 100
period 210110 210
period 320130 340
period 4100230

340

if i select period 1 o/p=100

period 2 o/p=210(100+110)

period 3 o/p=340(100+110+130)

Regards

............

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

10 Replies
sunny_talwar

What is period 4 required output? 340 or 570?

anat
Master
Master
Author

period 4 o/p=570

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps like this:

Data:

LOAD *, rangesum(cumsal, peek(req_out)) as req_out;

LOAD

     time,

     sal,

     rangesum(sal,peek(cumsal)) as cumsal

FROM ...


talk is cheap, supply exceeds demand
nithin_miryala
Creator
Creator

Hi Ananth,

Where you want to achieve this scenario (which object) ??

anbu1984
Master III
Master III

Check this app

anat
Master
Master
Author

Thanks Gysbert,

in source i have only 2 columns(time,sal) ,remaining columns how to implement in qlikview report level( in text object)

anat
Master
Master
Author

Hi @anbu

this is working fine  in table level ,same thing how  to implement in text object .

anbu1984
Master III
Master III

Check this app

anat
Master
Master
Author

Thanks @anbu cheliyan

its working perfectly .............