Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

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:

error loading image

Thanks.

1 Solution

Accepted Solutions
pover
Luminary Alumni
Luminary Alumni

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.

View solution in original post

5 Replies
pover
Luminary Alumni
Luminary Alumni

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.

Not applicable
Author

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]

Not applicable
Author

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.

deepakk
Partner - Specialist III
Partner - Specialist III

Hi,

Check out the attach application for Range Sum calculation

Not applicable
Author

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.