I have a report with the following metrix:
Item
, Total item quantity in month
, Total item quantity in previous week
, Total item quantity in 2 previous weeks
, Total item quantity in 3 previous weeks
I write this matrix in a single query but it is very complex and take time to execute.
So is there any better solution?