Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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!