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: 
tseebach
Luminary Alumni
Luminary Alumni

Remove tail in Rolling R1/R12 chart

Hi,

I got a rolling months average, and I need some way to cut of the tails of the charts, see the image, the part outside the bar charts areas.

The formula for the green line is this:

(rangeavg(above(sum({$<KEY_ACCNO = {'1600'},Date = {">=$(=(MonthStart(AddMonths(Max(ALL [Date]),-40)))) "},Calender.Year= ,Calender.MonthName= >} $(=ValueFieldAcc)),0,13))*360)
/
rangesum(above(sum({$<KEY_ACCNO = {'80100'},Date = {">=$(=(MonthStart(AddMonths(Max(ALL [Date]),-40)))) "},Calender.Year= ,Calender.MonthName= >} -$(=ValueField)),0,12))


I've tried putting a If around to remove the dates which are not within 36 months. Any ideas?

3 Replies
Not applicable

Hi Torben,

Could you attach a file like example. It'll help us for finding a solution quickly.

Best regards.

tseebach
Luminary Alumni
Luminary Alumni
Author

Yep,

I've reproduced the issue in this example:

http://dl.dropbox.com/u/1773255/testRollingR12.qvw

tseebach
Luminary Alumni
Luminary Alumni
Author

Yep,

I've reproduced the issue in this example:

http://dl.dropbox.com/u/1773255/testRollingR12.qvw