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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Accumulating values on each time range

Hello!

Well i think this should be easy but the worse thing is that i can not solve it yet.

I have a table containing an order list and time span. I am having a chart viewing the value for each month which is working fine. Now i want to create a chart to list the accumulated value from the previous month/months on each month. That is to say jan will show only jan values but feb with show the sum of values from jan and feb, and so on at last dec will show the sum of the values from jan to dec.

How can i achieve this in the easiest way ?

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

OK, here's what I think you're asking for, using basically the technique above.

View solution in original post

11 Replies
Not applicable
Author

Hi,

In your graph properties and in the Expression tab , try to check the full accumulation (bottom left ).

Philippe

Not applicable
Author

Hi,

try to check "Full Accumulation" in Expression tab.

I hope this will work 🙂

Milda

Not applicable
Author

Thanks for your answer.

Sorry but i already tried that and it does not work. Full accumulation accumulates the values of the expression (y-axis) and does not help my % expression (X/Y*100) as i need to accumulate both the X values and the Y values before dividing other wise it will be wrong in the % numbers. Below is one of my expressions that is working for values for each month only. I want to modify this to use it for accumulated values in the expression:

= Count(distinct if(type = 'X', wo)) / Count(distinct wo)) * 100



Not applicable
Author

May be i did not explain my problem correctly from the beggining.

I need to accumulate the value in my expression before deviding and not after.

Not applicable
Author

Do you have an exemple of your application ?

You can probably do what you want to achieve using the Set Analysis Syntax.

To help you , we need more information . The application could be a good start.

Philippe

johnw
Champion III
Champion III

Here's one way to accumulate data. If it's conditional, like a YTD accumulation for multiple years, you can add an if() statement around the above():

rangesum(above(ExpressionName),Expression)

So for your expression, I think you'd want this:

rangesum(above(FirstExpressionName) ,count({<type={'X'}>} distinct wo))
/ rangesum(above(SecondExpressionName),count( distinct wo))

And then display it as a percentage using the Number tab instead of multiplying by 100. I used set analysis for the type='X' check because it's usually faster, not because it's necessary here.

Not applicable
Author

Hello Philippe and all !

here comes an example file.

johnw
Champion III
Champion III

OK, here's what I think you're asking for, using basically the technique above.

Not applicable
Author

Thanks alot it really works as i wanted