Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

New Column to Running Value

Hi All, I have three columns in my data . Month , C and O .

I want to diplay this information in a table .My requirement is like

I have to show the data from the month of May where C=0 and O is also zero and there should be one more column of

Running to be shown in the table which should calculute the accumulation from previous months (Jan to APR) and carry

forward from MaY , How can i achieve this . I am attaching the QVW file for refrence and the out put should look like below screenshot

Basically it is accumulate calculation

Thanks in advance

1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

Maybe like attached.

clipboard_image_0.png

hope this helps

View solution in original post

5 Replies
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

try to see file attached

smilingjohn
Specialist
Specialist
Author

Thanks for the reply . 

But this is not as per my requirement . I wanted to ddiplay a chart which has Month, C , O and a new field called Runing . 

and this should start from the MOnth of May . and the Running Field should carry the calculations from previous monhts and start from month May ( Output of Runnig should be added to C abd the total should be subtracted from O and so on ) 

Thanks 

smilingjohn
Specialist
Specialist
Author

Any Help ?

Frank_Hartmann
Master II
Master II

Maybe like attached.

clipboard_image_0.png

hope this helps

smilingjohn
Specialist
Specialist
Author

Thanks for the  reply Frank_Hartmann

I dont know how you are getting this . 

My formula shoulb be like C-O= Running  for the next month (row ) Running +C - O . 

So when I am considering from the Month of May the C and the O values should remain the same only RUnning must be internaaly doing the calculating and shou;ld produce the result . ( Running total shoul calucute from jan and in the table when i am trying to shwo from may onwards then the output of RUnning should be added to C of May and Get subtracted from O , 

Below is my actual data :

MonthCO
JAN10
FEB11
MAR43
APR21
MAY00
JUN84
JUL125
AUG104
SEP53
OCT61
NOV34
DEC84

 

OUt PUT : ( INternally QLikvie shoul calculte the formula from Janaury that is , C-O) 

(If you look into the below table you see the values of C and O are directly coming from the data , but Running column is been calculted  from Janaulry till Aprill ) 

MonthCORunning
MAY003
JUN847
JUL12514
AUG10420
SEP5322
OCT6127
NOV3426
DEC8430

 

Thanks