Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Cumulative Percentages in a Chart

I have a chart with an expression of SUM(x) / SUM(y) that gives me results as percentages.

If I turn on "Full Accumulation", it sums the percentages.

What I would like is for each SUM() in my expression to sum the values from the preceding data points.

Example Data:

Series DimensionTime DimensionAnother DimensionXY
A1a12
A1b14
A2a23
A2b33
A3a34
A3b23
B1a23
B1b12
B2a34
B2b11
B3a34
B3b22

Which gives the following results:

Series DimensionTime DimensionPercentage
Cumulative
A1(1 + 1) / (1 + 4)(1 + 1) / (1 + 4)
A2(2 + 3) / (3 + 3)(1 + 1 + 2 + 3) / (1 + 4 + 3 + 3)
A3(3 + 2) / (4 + 3)(1 + 1 + 2 + 3 + 3 + 2) / (1 + 4 + 3 + 3 + 4 + 3)
B1(2 + 1) / (3 + 2)(2 + 1) / (3 + 2)
B2(3 + 1) / (4 + 1)(2 + 1 + 3 + 1) / (3 + 2 + 4 + 1)
B3(3 + 2) / (4 + 2)(2 + 1 + 3 + 1 + 3 + 2) / (3 + 2 + 4 + 1 + 4 + 2)

Is there a standard way to accomplish this in QlikView without doubling the number of fields in the data?  (field1 AND cumulativeField1, etc, etc)

Cheers,

Mat.

10 Replies
swuehl
MVP
MVP

Sorry, this thread is almost 4 years old and your expression is missing context (like how the fields are related in your data model).

Please create a new thread and attach a sample QVW or some example data as shown above.