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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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

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!