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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help needed on cumulative range sum in Straight table

Hi All,

I need some advice on complex Range sum or set analysis expression which can accumulate Column 1 previous 12 records net value to be displayed in column2.

Here i am attaching example.

In the below excel is exported straight table from qlikview

Sum of 4A(Net Elgbl $) 12 months value is 643,910.565.26 but my expression returns incorrect value.

Can some one advice whats the wrong with formula or advice me if it is aggregating incorrectly.

4A(12M Elgbl $) Expression is

Sample qvw attached.

Appreciate your help

16 Replies
Anonymous
Not applicable
Author

Hi ,

This is what i need, Can you send me the updated file what you have

Anonymous
Not applicable
Author

Hi Swuehl,

This is what i need, Can you tell me what was the change in the expression?

Or send me updated file.

Thanks

swuehl
MVP
MVP

See my previous post, applying only() with set expression around Ratio.

Anonymous
Not applicable
Author

Thanks that works.

Anonymous
Not applicable
Author

Hi

Can you see whats the wrong with my formula again when i select specific year then value not accumulated.

sum( aggr( rangesum( above(

(Sum({}ProductSales)

,0,12) ),NDC11,Period))

swuehl
MVP
MVP

sum( aggr( rangesum( above(

(Sum({}ProductSales)

,0,12) ),NDC11,Period))

This is your formula? Why should this accumulate over Year bounderies when you are not clearing selection in your calendar fields like in the previous expression. I would expect at least a set expression in the inner aggregation like

{<Year= >}

[or add up all calendar fields the user may select in].

Anonymous
Not applicable
Author

Hi,

This is my Formula.

sum( aggr( rangesum( above(

((Sum({}ProductSales)

)

,0,12) ),NDC11,Period))