Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
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

15 Replies
Anonymous
Not applicable

I guess the labels are same as the data model fields in this case.....may be you can give a lable like 'Accumulated Sales' and Accumulated Product and then try to use the labels

syukyo_zhu
Creator III
Creator III
Author

Or how can i calculate a number accumulate in my straight without use option "full accumulation"

sunny_talwar

Did you look at the sample application I posted? It shows you how you can calculate the cumulative numbers without using full accumulations.

Hope it helps.

Best,

S

sunny_talwar

Application attached

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.

syukyo_zhu
Creator III
Creator III
Author

It works

thanks

sunny_talwar

Great, I am glad I was helpful.

Best,

S