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: 
shamitshah
Partner - Creator
Partner - Creator

Column calculations

Hi,

Please see attached.

I have two tables - Table A has the raw data and Table B has the same data except with Full Accumulation.

In Table B, Column(2)/Column(1)  does not come out with the right result.

Any idea on what the correct expression should be for Table B?

Thanks

Shamit

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

=num(RangeSum(Above(Sum(Margin), 0, RowNo()))/RangeSum(Above(Sum(Sales), 0, RowNo())))

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Try this:

=num(RangeSum(Above(Sum(Margin), 0, RowNo()))/RangeSum(Above(Sum(Sales), 0, RowNo())))

shamitshah
Partner - Creator
Partner - Creator
Author

Hi Sunny,

Many thanks.

Shamit