Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
syukyo_zhu
Creator III
Creator III

accumulate in straight table

i have a table A in which i have my sales et sales of product A per date.


datesalesproduct A
01/01/201510050
02/01/201510151
03/01/201510252
04/01/201510353
05/01/201510454
06/01/201510555
07/01/201510656
08/01/201510757
09/01/201510858
10/01/201510959

I want to calculate the rate cumulate product/sale, so i use "full accumulation" in my expression, it's ok for columns sales et product, but false for column rate cumulate

datesalesproduct Arate cumulate
01/01/2015100500,5
02/01/20152011011,002487562
03/01/20153031531,507438057
04/01/20154062062,01482722
05/01/20155102602,524631141
06/01/20156153153,036826263
07/01/20157213713,55138937
08/01/20158284284,068297583
09/01/20159364864,587528352
10/01/201510455455,109059452

. i want to get a result like this one.

datesalesproduct Arate cumulate
01/01/2015100500,5
02/01/20152011010,502487562
03/01/20153031530,504950495
04/01/20154062060,507389163
05/01/20155102600,509803922
06/01/20156153150,512195122
07/01/20157213710,514563107
08/01/20158284280,516908213
09/01/20159364860,519230769
10/01/201510455450,5215311

thanks

1 Solution

Accepted Solutions
sunny_talwar

Update: Expressions Used

1) RangeSum(Above(Sales, 0, 500))

2) RangeSum(Above([Product A], 0, 500))

3) RangeSum(Above([Product A], 0, 500))/RangeSum(Above(Sales, 0, 500))

All these are without accumulation.

Is this what you are looking for? I have used RangeSum(Above(...)) instead of accumulation.PFA

Best,

S

View solution in original post

15 Replies
sunny_talwar

How is rate getting calculated here? Is it Product A/sales?

Best,

S

Anonymous
Not applicable

Did you try  the following ?

[product A]/[Sales]

Anonymous
Not applicable

Here basically you are trying to use the chart labels and not Qlikview Data model fields

its_anandrjs

Hi,

In any straight chart try this way

Dim:- date

Expr1:-  sum(sales) // With full accumulation select

Expr2:- sum([product A])  // With full accumulation select

Expr3:- Sum( [product A] )  / Sum( sales ) //No Accumulation

You expecting this output

Opstright.PNG

Regards

Anand

sunny_talwar

Update: Expressions Used

1) RangeSum(Above(Sales, 0, 500))

2) RangeSum(Above([Product A], 0, 500))

3) RangeSum(Above([Product A], 0, 500))/RangeSum(Above(Sales, 0, 500))

All these are without accumulation.

Is this what you are looking for? I have used RangeSum(Above(...)) instead of accumulation.PFA

Best,

S

syukyo_zhu
Creator III
Creator III
Author

yes

syukyo_zhu
Creator III
Creator III
Author

it don't work

syukyo_zhu
Creator III
Creator III
Author

yes but it don't work

Anonymous
Not applicable

Can you please share the application if it is ok?