Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Accumulation Chart

I am attempting to do an accumulation chart of our Freight Costs YTD and LYTD.   The LYTD is working great... but with the YTD I only want to see the chart up to the Previous Month.

Currently - it is adding "0" freight costs so my chart flat lines.  This is causing my trend line to be inaccurate based on YTD trends.

Capture.JPG

1 Solution

Accepted Solutions
sunny_talwar

Try this without full accumulation:

=If(Sum({<Year= {'2015'}>}FreightCost) <> 0, RangeSum(Above(Sum({<Year= {'2015'}>}FreightCost), 0, RowNo(TOTAL))))

View solution in original post

5 Replies
sunny_talwar

I am assuming you are using two expressions. For the expression which is adding bars for future month, you can do something like this:

If(Sum(Value) <> 0, thenAccumulateExpression)

Not applicable
Author

I have added that to my my formula.  But still getting the same results.

This is the formula I am using - Sum({<Year= {'2015'}>}FreightCost)

And then I select full accumulation at the bottom.

I think my formula needs to do the accumulation instead of the hot key in the chart properties.  But I don't know how to write it.

sunny_talwar

Try this without full accumulation:

=If(Sum({<Year= {'2015'}>}FreightCost) <> 0, RangeSum(Above(Sum({<Year= {'2015'}>}FreightCost), 0, RowNo(TOTAL))))

Not applicable
Author

YOU ARE MY HERO!

sunny_talwar

Hahahaha, I am glad it worked

Sunny