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: 
Not applicable

Running total in a pivot table

Hi,

Table.PNG

In the table above I have used the expression

$(vBalance)+RangeSum(Above(TOTAL Column(1) - Column(2), 0, NoOfRows(TOTAL)))

to get the Balance column. Now I need to represent the same data in a pivot table as follows

Balnc.PNG

I've used ($(vBalance)+RangeSum(before(TOTAL sum(Arrival) - sum(Dispatches), 0, ColumnNo(TOTAL))))

which gives the 1st row(for Jan) of the pivot table right.But gives incorrect results for the other rows.

I have attached the application I've been working.

Can anyone help me with creating the table I wish for?

0 Replies