The WINDOW_AVG function calculates the average of an expression over a range of data points. Using offsets -2 to 0 includes the current day and the two previous days, making a 3-day moving average.
Option D uses a line chart with clear distinction between daily sales and moving average lines, proper legend, and axis labels, which is best practice for trend visualization.
Larger window sizes average more data points, smoothing short-term fluctuations but causing lag in reflecting recent changes.
WINDOW_AVG(SUM([Sales]), 0, 4)
The offsets 0 to 4 include the current day and the next 4 days, so it looks forward only, which can cause lag and misleading trends.
Option A uses a single chart with distinct line styles and colors plus a legend, making it easy for users to compare daily sales and moving averages.