Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Moving Sales

I've a requirement to display moving sales for monthwise where the sales should between current month and 12 month from current month .

that is value for 201112 = sum of 201001 to 201112 ,

201201 = sum of 201002 to 201201....

sales for month

20100110
20100211
20100312
20100413
20100514
20100615
20100716
20100817
20100918
20101019
20101120
20101221
20120122
20120223
20120324
20120425
20120526
20120627

Requirement:

201111165
201112186
201201198
201202210
201203222
201204234
201205246
201206258

Please help me on this.

Thanks

4 Replies
Not applicable
Author

Hi.

Try this model. Maybe can help you.

Maybe someone create a better way.

Alessandro Furtado

Not applicable
Author

Thanks Furtado.

I need this to be implemented in set analysis . I can't change the script.

Thanks.

Not applicable
Author

Any clues on this ? I need your help

Thanks.

shree909
Partner - Specialist II
Partner - Specialist II

Hi   Try this..

for the actual Month

sum(if(Period=Dt_Period, Qtd))--> set analysis sum({<period={'Dt_Period'}>}qtd)

Last 12 monts...sum(if(Period>= Dt_Period2 and Period<= Dt_Period, Qtd))

set analyis   sum({<period={'>=Dt_Period2, <=Dt_Period,'} >}qtd)