# QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Not applicable

## Cumulative figures on a graph

Hi,

I really need someone help.

I have a data set that has a weight column and the weight cumulative column is calculated base on the direction .i.e. if the weigh was its added to cumulative ans if its out its removed from the cumulative.

I want to plot the cumulative weight on a chart, dependent on the dimension I use i.e. if I use the stockdate field, i want to see the last figure recorded for each date. If I use the stockmonthyear field, I want to use the last field for each stockmonthyearfield. I created the row column as I thought I could somehow get the max for each date and use that in set analysis somehow, but I cant get it working.

See snapshot of the data below, I have attached the full data set.

 RowID StockDate StockMonthYear Direction Weight WeightCum 1 04/12/2012 Dec 2012 In 1574.7 1574.7 2 04/12/2012 Dec 2012 Out 235 1339.7 3 05/12/2012 Dec 2012 In 115.9 1455.6 4 05/12/2012 Dec 2012 In 115.9 1571.5 5 05/12/2012 Dec 2012 In 97.2 1668.7

Any help would be much appreciated. Working example would be great.

Cheers

Simon

Tags (3)
1 Solution

Accepted Solutions
Contributor III

## Re: Cumulative figures on a graph

create 2 additional dimensions as is demonstrated in the example.

Cheers!

3 Replies
MVP

## Re: Cumulative figures on a graph

try with

Dimension = RowID

Expression = rangesum(Above(sum(Weight) * if(Direction='Out',-1,1), 0, RowNo()))

see attachment

Contributor III

## Re: Cumulative figures on a graph

create 2 additional dimensions as is demonstrated in the example.

Cheers!

Not applicable

## Re: Cumulative figures on a graph

Thank you, thats exactly what I wanted, much appreciated.

Cheers

Simon