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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
thanhphongle
Creator II
Creator II

Accumulation per invoice number

!Hello Community,

is it possible to define the accumulation per invoice number?

Example

invoice_nopaymentsaccumulation
11010
12030
13070
2100100
2200300
2300700

This is what QV returns when I set the accumulation active in the expression tab

invoice_nopaymentsaccumulation
11010
12030
13070
2100170
2200370
2300770
Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Seems to be working? What is wrong??? PFA

Capture.PNG

View solution in original post

17 Replies
sunny_talwar

Try using an expression like this

RangeSum(Above(Sum(payments), 0, RowNo()))

I am assuming that you have more than 1 dimension in your chart because how else will you see repeated invoice_no

Anil_Babu_Samineni

Perhaps this

RangeSum(Above(Sum(payments), 0, RowNo(TOTAL)))


Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

I don't think TOTAL is needed within RowNo() here

thanhphongle
Creator II
Creator II
Author

It still continues to accumulate in a recursive way through all invoice number

thanhphongle
Creator II
Creator II
Author

I mean it doesnt restart the accumulation for the next invoice numeber

sunny_talwar

What all dimensions do you have in your chart?

thanhphongle
Creator II
Creator II
Author

invoice_no and start_date
I added the expression dual(invoice_no, start_date) in the dimension, so i can see duplicated invoice numbers, as every invoice number has another payment

sunny_talwar

May be this

Aggr(RangeSum(Above(Sum(payments), 0, RowNo())), invoice_no, start_date)

thanhphongle
Creator II
Creator II
Author

I shared my qv-file to you !