5 Replies Latest reply: Nov 16, 2010 3:51 AM by Pavel Moskanov

# how to divide volumes in Straight table between Full Accumulation and No Accumulation columns

Hello,

I have Straight table with two columns, one column is "Balance" with Full Accumulation, another "Consumptions" with No Accumulation. How I can divide Balance with Consumption columns:

Thanks.

• ###### how to divide volumes in Straight table between Full Accumulation and No Accumulation columns

With the option Full Accumulation the value that is divided is not the accumulated value, but the individual value, so I would change strategy to use the rangesum(above()) formula to accumulate the balance and then your ratio calculation should work.

Regards.

• ###### how to divide volumes in Straight table between Full Accumulation and No Accumulation columns

Hello,
Thanks for solution, rangesum(above()) calculated well, but need to write also steps and SUM. Formula look like:
rangesum(above(sum({<[Operation type]={consumption}>}[Quantity],0,99)
99 is steps how many rows need calculate.

• ###### how to divide volumes in Straight table between Full Accumulation and No Accumulation columns

Pavel,

What are you trying to acheive? If you want to divide balance by consumption and you want to use calumns then column (3) / column (2)

or

[Balance] / [Consumption]

• ###### how to divide volumes in Straight table between Full Accumulation and No Accumulation columns

Hi,

Check out the attach application for Range Sum calculation

• ###### how to divide volumes in Straight table between Full Accumulation and No Accumulation columns

Hello,

Sample.qvw also very good solution to make full accumulation for one column with Quantity, but if need to calculate diferente colums with diferente types like Consumption, Sales, Purchase and Output. Formula will be like:
rangesum(above(sum({<[Operation type]={consumption}>}[Quantity],0,99) +
rangesum(above(sum({<[Operation type]={Sales}>}[Quantity],0,99) + ......

Thanks for help it is work well.