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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Tricky sum set analysis excercise

Hi,

need to find a way to sum as per the below example.

I guess some kind of set analyisis approach would be suitable but I cannot get it to work properly.

Pls see attached QV-example file and *expected result* excel file.

//O

Capture.JPG

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Expression for 1 Year:

RangeSum(Below(
FABS((SUM({<Type= {'1 year'}>}Volume))*(1-Period*vPrepayment/4)
-
(SUM({<Type= {'1 year'}>}Volume)))

/Period
,1,Count(Distinct Total QYear)))

Try similar for others

Edit: added 'Distinct'

View solution in original post

2 Replies
tresB
Champion III
Champion III

Expression for 1 Year:

RangeSum(Below(
FABS((SUM({<Type= {'1 year'}>}Volume))*(1-Period*vPrepayment/4)
-
(SUM({<Type= {'1 year'}>}Volume)))

/Period
,1,Count(Distinct Total QYear)))

Try similar for others

Edit: added 'Distinct'

Not applicable
Author

great, thank you!