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

SUM of rows with from and To accounts

Hi All,

I need to sum up the rows with the follwing conditions.

should display totals when CODE=7 and Total should be sum of the amounts of FROM to TO ACCOUNTNO.

It should sum if REVSIGN=0 and subtract if REVSIGN=1.

Example from below table for 107 is

sum (108,109,115)-sum(101,102,103) i.e. (2070+2080+2140)-(2000+2010+2020)=260.

this 260 should be displayed against the AMOUNT of 107 ACCOUNTNO.

Excel is attached for your reference.

ACCOUNT NOFROMTOIDAMOUNTCODEREVSIGN
101100120001
102100220102
103100320203
104100420304
105100520405
106100620506
107101103100771
107108109100770
107115115100770
108100820701
109100920802
110101020903
111101121004
112101221105
113101321206
114104106101471
114110113101470
115101521401


Thanks in advance

Veman Reddy

1 Reply
Not applicable
Author

Hi Veman,

Her is a solution to your problem. The solution also allows you to have sum-accounts that includes other sum-accounts.

Br,

Thomas