Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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

1 Solution

Accepted Solutions
tresesco
MVP
MVP

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
tresesco
MVP
MVP

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!