A sales dataset omits dates with no transactions. A report needs each region's average daily revenue over the current date and six preceding calendar dates, counting no-sale dates as zero; which calculation is appropriate?
Show the answer
Correct answerB. Aggregate daily totals, fill missing dates with zeros, then average seven calendar days.
AWhy not this: Seven recorded rows can span more than seven calendar days when dates are missing.
BWhy this is right: Daily aggregation and zero-filled dates ensure the rolling window represents exactly seven calendar days per region.
CWhy not this: Calendar-week grouping is not a rolling window, and transaction averages are not averages of daily revenue.
DWhy not this: Pivoting changes layout; averaging only nonempty dates excludes the required zero-revenue dates.
A seven-calendar-day rolling average requires daily totals and a complete date series for each region, with missing totals set to zero. Averaging seven recorded rows can span more than seven calendar days and exclude zero-revenue dates.