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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
tseebach
Partner - Creator III
Partner - Creator III

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
Partner - Creator III
Partner - Creator III
Author

Yep,

I've reproduced the issue in this example:

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

tseebach
Partner - Creator III
Partner - Creator III
Author

Yep,

I've reproduced the issue in this example:

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