Hi everyone,
I am trying to develop an SSRS project that will publish weekly performance of sales. However I got stuck at some point which I have to take average of particular weeks.
On the Sql Server side and SSRS side, my data columns are as follows.
[Region] [Week] [Sale Amount] [Revenue]
North America 50 100 $300
Far East 49 500 $1900
There is 7-week data of every region, i.e 44,45,46,47,48,49,50. According to our calculation, we take a performance average with respect to week 49 like,
Region (Week Revenue/Sale Amount)-(average of preceding 5 weeks), namely I have to take the average of the weeks 44,45,46,47,48.
However I was not able to develop such a formulation, except general avg() formula. Could anybody help me?