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

Running Total

Hi All,
I have a table which has following fields(Columns)
Date,Cdefect,CIDefects and Odefects.
As shown in the below screenshot.

Data.PNG
Now i have to come up with a output table which should show me running total.
where the Odefect will be added to Cdefect and the result will be Subracted from CIDefect and provides the output in Total
this is how it repeats.
Below is the screenshot of the Out put .

output.PNG

Can you please help me in achieving this

Thanks in Advance

 

1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

There you go:

clipboard_image_0.png

Build a new column (Total) at script level.

Refer attached qvw for the logic using peek() function.

Thanks and regards,

Arthur Fong

View solution in original post

1 Reply
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

There you go:

clipboard_image_0.png

Build a new column (Total) at script level.

Refer attached qvw for the logic using peek() function.

Thanks and regards,

Arthur Fong