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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ecabanas
Creator II
Creator II

Accumulative Field

Hi all,

I have a table with the number of lines of each product. = Count(line)   Dimension ItemId

I wanna know the accumulative number of lines in number and %

Any suggestion?

2016-01-28_16h13_01.png

Many thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Ended up using expressions to do the accumulation

1) RangeSum(Above(TOTAL Count(SalesId), 0, RowNo(TOTAL)))

2) RangeSum(Above(TOTAL Count(SalesId), 0, RowNo(TOTAL)))/Sum(TOTAL Aggr(Count(SalesId), ItemId, name))

Capture.PNG

View solution in original post

6 Replies
sunny_talwar
MVP
MVP

For Accumulation try using Full Accumulation option within the expressions tab:

Capture.PNG

For % Accumulation try full accumulation + Relative checked on expression tab:

Capture.PNG

ecabanas
Creator II
Creator II
Author

Hi Sunny

I already tryied this but did not work

sunny_talwar
MVP
MVP

Would you be able to share a sample?

ecabanas
Creator II
Creator II
Author

Here it is

Many thank's

sunny_talwar
MVP
MVP

Ended up using expressions to do the accumulation

1) RangeSum(Above(TOTAL Count(SalesId), 0, RowNo(TOTAL)))

2) RangeSum(Above(TOTAL Count(SalesId), 0, RowNo(TOTAL)))/Sum(TOTAL Aggr(Count(SalesId), ItemId, name))

Capture.PNG

ecabanas
Creator II
Creator II
Author

WOWWWWWW

Bravo!!!

Many many thank's