Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Moving annual total

I am trying to display a moving annual total of sales data (i.e. the total sales of the last 365 days, or 52 weeks) as a function of of date (or week). I have all orderline information (sales amount, sales date, customer, product). I thought this would be easy, but I have already wasted a couple of hours without any progress. Does anybody have a suggestion?

Thanks, Marc.

1 Solution

Accepted Solutions
Not applicable
Author

Hi Marc,

the attached example will, hopefully, give you an idea how it could work.

Good luck!

Rainer

View solution in original post

9 Replies
Not applicable
Author

Hi Marc,

the attached example will, hopefully, give you an idea how it could work.

Good luck!

Rainer

Not applicable
Author

Hope the file is attached now.

Not applicable
Author

You will find the file using this link:

http://community.qlik.com/forums/t/23598.aspx

Rainer

Not applicable
Author

Rainer,

Thank you for the quick reply. Unfortunately, I have no clue as to how this would answer my question.

Maybe I should elaborate a bit. I want to make a line graph with invoicedate as the dimension. For each invoicedate, I want to plot the sum of the sales of the past 365 days. The issue I have trouble with is: how do I ignore the dimension (invoicedate) in the calculation?

Regards,

Marc

Not applicable
Author

Hi Marc,

here are another idea. Combined "Rangesum" and "Above" function.

Hope we are a step closer to solve your problem.

Good luck!

Rainer

Not applicable
Author

RangeSum

(Above(Sum(Value),

(Above(Sum(Value),

(Above(Sum(Value),

0,2

))





Not applicable
Author

It´s a bad system today!

RangeSum

(Above(Sum(Value),

(Above(Sum(Value),

(Above(Sum(Value),

0,2))

Rainer

Not applicable
Author

Hi,

hope the application is attached now.

Merry Christmas!

Rainer

Not applicable
Author

Hi Rainer,

Thanks a lot for the alternative solution. I think this might work. I am having some trouble accessing the data because of network issues, so I cannot try now. As soon as the problem is fixed, I will give your suggestion a try and will let you know.

Regards,

Marc.