Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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

1 Solution

Accepted Solutions
sunny_talwar

Try this:

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

View solution in original post

2 Replies
sunny_talwar

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