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

Commulative Stock

Hi Friends,

I have three fields like below table for year 2010-11

Projects
Opening StockClosing StockMonth
A100120Apr
A120160May
A160200Jun
A200210Jul
A210230Aug
A230280Sep
A280300Oct
A300350Nov
A350360Dec
A360390Jan
A390400Feb
A400500Mar

my requirement is to find Total Opening Stock for the Year and Closing stock cumulative for all projects. There are three projects A,B and C. the table only showing A.There are data available for B and C in the same format. Does anyone has any Idea how to solve this query.

Regards

Bhawna    

2 Replies
senarath
Creator III
Creator III

Hi,

You may have to attach data sample for expert advice from anybody.

However, Please check data model preview and see whether you have uploaded data for B and C. If you have supressed null values in Dim, you normaly get this situation.

thanx

Not applicable
Author

use following expression for the cumulative  sum

(above(sum(Close_Stock),0,RowNo()))