Complete the code to calculate a 3-month rolling sum of Sales.
WINDOW_SUM(SUM([Sales]), -[1], 0)
The WINDOW_SUM function sums values over a window. To get a 3-month rolling sum including the current month and two previous months, use -2 as the start offset.
Complete the code to calculate a 7-day rolling average of Profit.
WINDOW_AVG(SUM([Profit]), -[1], 0)
For a 7-day rolling average including today and 6 previous days, the window starts at -6.
Fix the error in the rolling calculation to correctly compute a 12-month rolling sum of Quantity.
WINDOW_SUM(SUM([Quantity]), [1], 0)
The window should start 11 months before the current month (offset -11) to include 12 months total (current plus 11 previous).
Fill both blanks to calculate a 4-week rolling average of Sales with correct window offsets.
WINDOW_AVG(SUM([Sales]), [1], [2])
The window starts 3 weeks before (offset -3) and ends at the current week (offset 0) to cover 4 weeks total.
Fill all three blanks to calculate a 5-day rolling sum of Profit with correct window offsets and aggregation.
[1](SUM([Profit]), [2], [3])
Use WINDOW_SUM to sum over the window starting 4 days before (offset -4) and ending today (offset 0) for a 5-day rolling sum.