Window Functions Part 2: practice questions
400 questions in four levels, all on RetailMart, the practice database of this course. Write every query yourself, get it wrong, read the error, fix it. That is how it sticks.
Answers are coming soon. Post your query in the WhatsApp Community or Discord and we will check it together.
Easy 100 questions Medium 100 questions Hard 100 questions Crazy 100 questions
Core syntax, applied directly
CONCEPTUAL Q1 How does SUM(x) OVER () differ from SUM(x) with GROUP BY? Q2 What does SUM(x) OVER (PARTITION BY g) compute for each row? Q3 What does adding ORDER BY inside OVER() do to SUM() (running total)? Q4 What is the default window frame when ORDER BY is present? Q5 What is the default frame when ORDER BY is absent? Q6 Define a "running total" in one sentence. Q7 How do you compute each row's % of the grand total with a window? Q8 How do you compute each row's % of its partition total? Q9 What does AVG(x) OVER (PARTITION BY g) give (group average on every row)? Q10 Why keep detail rows AND a group aggregate in the same result with windows? Q11 What does COUNT(*) OVER (PARTITION BY g) return? Q12 Explain ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW. Q13 Explain ROWS BETWEEN 6 PRECEDING AND CURRENT ROW (7-row window). Q14 Difference between ROWS and RANGE frame modes (intro). Q15 Why does a running total need a deterministic ORDER BY? Q16 Can you mix a window aggregate and a plain aggregate? (no - why) Q17 What is a moving (rolling) average conceptually? Q18 Why does SUM() OVER() avoid a self-join for "value vs group total"? Q19 What does MAX(x) OVER (PARTITION BY g) give? Q20 How is "share of total" different from a rank? Q21 Why must you be careful with frames and ties in the ORDER BY? Q22 What is a cumulative count and how do you build it? Q23 When would you PARTITION BY DATE_TRUNC('month', d)? Q24 Can window aggregates appear in WHERE? What's the workaround? Q25 Name one analyst use each for running total, moving avg, and % of total. AGGREGATE OVER Q26 Show each order with the grand total net_total alongside (SUM OVER ()). Q27 Show each order with its customer's total spend (SUM OVER PARTITION BY cust_id). Q28 Show each product with its brand's average price. Q29 Show each employee with their department's average salary. Q30 Show each order with the count of orders for its store. Q31 Show each product with the max price in its brand. Q32 Show each review with the average rating for its product. Q33 Show each order with its store's total revenue. Q34 Show each employee with the min and max salary of their store. Q35 Show each order_item with the order's total net_amount. Q36 Show each customer's order with the customer's order count. Q37 Show each product with its category's average price (via brand). Q38 Show each ticket with the count of tickets for its agent. Q39 Show each call with the average duration for its agent. Q40 Show each pay_slip with the company-wide average net_salary. Q41 Show each shipment with the average delivery days for its courier. Q42 Show each ad spend with the platform's total spend. Q43 Show each store with its region's total square_ft. Q44 Show each order with the customer's average order value. Q45 Show each product with the supplier's product count. Q46 Show each member with the average points_balance of their tier. Q47 Show each order with both the store total and the grand total. Q48 Show each review with the customer's review count. Q49 Show each employee with the company headcount (COUNT(*) OVER ()). Q50 Show each product with brand average and overall average side by side. RUNNING TOTALS & % OF TOTAL Q51 Running total of net_total over orders ordered by order_date. Q52 Running total of net_total per customer ordered by order_date. Q53 Running count of orders per store over time. Q54 Each order's % of the grand total revenue. Q55 Each order's % of its customer's total spend. Q56 Each product's % of its brand's total price (catalog share). Q57 Cumulative revenue by month (aggregate to month, then running sum). Q58 Running total of expenses per department (finance.expenses or stores.expenses). Q59 Each employee's salary as % of department payroll. Q60 Running total of points_balance per tier ordered by join_date. Q61 Each store's revenue as % of its region total. Q62 Cumulative order count per customer (purchase number). Q63 Each review's contribution to product's rating sum (running). Q64 Running total of ad spend per campaign over spend_date. Q65 Each order_item's % of the order total. Q66 Cumulative revenue by week across the whole company. Q67 Each category's revenue as % of grand total (aggregate + window). Q68 Running total of net_salary per employee across months. Q69 Each product's units as % of brand units sold. Q70 Cumulative new customers by registration month. Q71 Running total of refunds per customer over return_date. Q72 Each region's store count as % of all stores. Q73 Cumulative revenue per store ordered by date; show first/last. Q74 Each call's duration as % of the agent's total talk time. Q75 Pareto check: cumulative % of revenue by customer (sorted desc). FRAME BASICS (ROWS BETWEEN) Q76 3-row moving average of daily revenue (1 preceding, current, 1 following). Q77 7-day moving average of daily order count (6 preceding to current). Q78 Trailing 3-order average net_total per customer. Q79 Running max of net_total per customer (UNBOUNDED PRECEDING to CURRENT). Q80 Running min price seen so far per brand (ordered by product_id). Q81 Moving sum of last 5 orders' value per customer. Q82 Centered 3-point average of monthly revenue. Q83 Trailing 7-day sum of revenue (daily series). Q84 Difference of current revenue from its 3-row moving average. Q85 Running average rating per product as reviews accumulate. Q86 Last-3 average call duration per agent. Q87 Cumulative max points_balance per customer over join_date. Q88 4-week moving average of new signups. Q89 Trailing 30-row sum of expenses per department. Q90 Moving average of order value with frame ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING. Q91 Running total that uses an explicit UNBOUNDED PRECEDING frame. Q92 Compare default-frame running total vs explicit ROWS frame (same result?). Q93 3-month moving average of revenue per store. Q94 Trailing average delivery time over last 10 shipments per courier. Q95 Smoothed daily web page-view count (7-day moving average). Q96 Running sum that resets per customer (PARTITION BY) with a frame. Q97 Moving average of ratings over last 5 reviews per product. Q98 Trailing 3-period revenue growth setup (sum windows; growth itself is Topic 18). Q99 Cumulative units sold per product over order_date. Q100 Build a daily revenue table with 7-day moving avg AND cumulative total in one query. Combined ideas, multi-step thinking
CONCEPTUAL Q1 Why does PARTITION BY reset a running total at each partition boundary? Q2 Default frame (RANGE UNBOUNDED PRECEDING) vs ROWS UNBOUNDED PRECEDING - when do they differ? Q3 Why can RANGE with ties sum more rows than you expect? Q4 How to build a 7-day moving average correctly when some days are missing? Q5 Why is gap-filling (date series) sometimes required before a moving average? Q6 ROWS BETWEEN 6 PRECEDING AND CURRENT ROW - how many rows in the frame? Q7 How to reset a running total at the year boundary (PARTITION BY year)? Q8 Why compute % of partition total with SUM() OVER (PARTITION BY g) in the denominator? Q9 Difference between a trailing and a centered moving average. Q10 Why must the ORDER BY be deterministic for a reproducible running total? Q11 How does a frame interact with PARTITION BY (frame is within partition)? Q12 When is RANGE BETWEEN INTERVAL '7 days' PRECEDING ... valid (date/numeric ORDER BY)? Q13 Why might a moving average over ROWS differ from over RANGE on daily data? Q14 How to compute cumulative distinct counts (and why it's hard with windows)? Q15 Explain "percent of running total" vs "running percent". Q16 Why pre-aggregate to a grain (day/month) before windowing a time series? Q17 How to show both the partition total and the running total in one row. Q18 What does FIRST_VALUE/LAST_VALUE need (a frame) to be correct? (preview) Q19 Why is LAST_VALUE often "wrong" without an explicit full frame? Q20 How to compute a moving sum that ignores the current row (exclude current). Q21 Why does a running max never decrease and a running min never increase? Q22 How to combine a window aggregate with a GROUP BY in layered steps. Q23 When to use RANGE vs ROWS for financial running balances. Q24 How to compute share-of-total within multiple partition levels at once. Q25 Why are window aggregates ideal for "detail + subtotal" report rows? PARTITIONED RUNNING TOTALS Q26 Running total of net_total per customer over order_date. Q27 Running order count per store over order_date. Q28 Cumulative revenue by month per store (aggregate then window). Q29 Running total of expenses per department over expense_date. Q30 Cumulative units sold per product over order_date. Q31 Running total of points_balance per tier over join_date. Q32 Cumulative new customers per registration month per region. Q33 Running revenue per region by month. Q34 Running total of refunds per customer over return_date. Q35 Cumulative ad spend per platform over spend_date. Q36 Running count of reviews per product over review_date. Q37 Running net_salary total per employee over salary month. Q38 Cumulative orders per customer with the purchase number (1,2,3...). Q39 Running revenue per payment_mode by month. Q40 Cumulative shipments per courier by week. Q41 Running total of order value per store, reset each year. Q42 Cumulative call minutes per agent by day. Q43 Running revenue per category by month (via brand). Q44 Cumulative distinct products ordered per customer (approx via min order_date per product). Q45 Running headcount per department by joining_date. Q46 Cumulative revenue per city by month (via addresses). Q47 Running total of net_amount per order over order_item_id. Q48 Cumulative tickets per agent by created_date. Q49 Running revenue per brand by week. Q50 Running total per customer with both partition total and running total shown. MOVING AVERAGES & FRAMES Q51 7-day moving average of daily revenue. Q52 7-day moving average of daily order count. Q53 3-month moving average of monthly revenue per store. Q54 Trailing 5-order average net_total per customer. Q55 Centered 3-point moving average of monthly signups. Q56 4-week moving average of weekly revenue per region. Q57 Trailing 30-day sum of revenue (daily series). Q58 Moving average rating over last 5 reviews per product. Q59 7-day moving average of web page-views (gap-filled by date series). Q60 Trailing 3-month average expenses per department. Q61 Moving average delivery time over last 10 shipments per courier. Q62 Running average order value per customer (expanding window). Q63 Difference of daily revenue from its 7-day moving average (anomaly setup). Q64 5-period moving sum of units sold per product. Q65 Trailing 6-month average net_salary per employee. Q66 Moving average of call duration over last 20 calls per agent. Q67 3-row moving average with ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING. Q68 Rolling 90-day revenue total (RANGE INTERVAL on a date series). Q69 Trailing average review rating per customer (last 3). Q70 7-day moving average AND daily value side by side for spotting spikes. Q71 Moving average that excludes the current row (n PRECEDING to 1 PRECEDING). Q72 4-quarter moving average of revenue (quarterly aggregate). Q73 Trailing 10-order average margin per product. Q74 Rolling 7-day distinct-customer count approximation per day. Q75 Compare ROWS vs RANGE moving average on a series with duplicate dates. SHARE-OF-TOTAL & RESET-AT-BOUNDARY Q76 Each order's % of its customer's total spend. Q77 Each product's % of its brand's total units sold. Q78 Each store's revenue as % of its region total. Q79 Each category's revenue as % of grand total. Q80 Each employee's salary as % of department payroll. Q81 Running total of revenue reset at each year boundary (PARTITION BY year). Q82 Running total reset at each month per store. Q83 Each month's revenue as % of its year's revenue. Q84 Pareto: cumulative % of revenue by customer (sorted desc) - find the top 20%. Q85 Each agent's resolved tickets as % of their category total. Q86 Each product's review count as % of brand review count. Q87 Running revenue per store reset quarterly. Q88 Each campaign's spend as % of its platform total. Q89 Each region's contribution % to monthly company revenue. Q90 Cumulative % of units by product within category (ABC analysis setup). Q91 Each customer's monthly spend as % of their lifetime spend. Q92 Reset running headcount at each department. Q93 Each order line's % of order total (basket composition). Q94 Each city's spend as % of region spend (via addresses). Q95 Running revenue reset at year boundary AND % of that year's total. Q96 Each warehouse's stock as % of its region's stock. Q97 Each tier's points as % of all points. Q98 Each weekday's revenue as % of the week (PARTITION BY ISO week). Q99 Top-20% revenue customers via cumulative share (Pareto cutoff). Q100 Build a monthly report: revenue, running YTD total, and % of year - per store. Interview grade, edge cases
CONCEPTUAL Q1 Why is LAST_VALUE wrong by default, and what frame fixes it? Q2 ROWS vs RANGE vs GROUPS frame modes - precise differences. Q3 Why does a 7-day moving average need a complete date series first? Q4 RANGE BETWEEN INTERVAL '7 days' PRECEDING AND CURRENT ROW - requirements and gotchas. Q5 How to compute a moving average that's correct at series edges (partial windows). Q6 Why FIRST_VALUE + frame = the partition's anchor value on every row. Q7 How to exclude the current row from a frame (and why for "peer average"). Q8 Cumulative distinct count - why windows can't do it directly; the workaround. Q9 Reset-at-boundary running totals: PARTITION BY period vs frame tricks. Q10 Why pre-aggregate to a grain before applying frames on a fact table. Q11 Detect anomalies as deviation from a trailing moving average - design. Q12 Share-of-total at two partition levels in one query (region and grand). Q13 Why RANGE with duplicate ORDER BY keys sums all ties into one frame step. Q14 NTH_VALUE use-cases and its frame dependency. Q15 Rolling median - why it's hard with standard window functions. Q16 Why "running total then % of final" needs the partition total, not the frame. Q17 How to compute month-to-date and prior-month-to-date in one pass (no LAG). Q18 Window aggregate + HAVING-like filter: where does the filter go? Q19 Frame performance: why huge RANGE frames can be O(n^2) without care. Q20 Gap-filling with generate_series + LEFT JOIN before windowing - pattern. Q21 Why a centered moving average shifts trend timing vs trailing. Q22 Compute "% to peak" using a running MAX with a frame. Q23 Building a contribution-to-cumulative (Pareto) curve correctly. Q24 Why FILTER (WHERE ...) inside a window aggregate is not allowed; alternative. Q25 Combining multiple frames (trailing-7 and trailing-30) in one query. ROLLING METRICS Q26 SCENARIO: Finance wants a gap-filled daily revenue series with a 7-day moving average. Q27 30-day rolling revenue total per store (RANGE on a date series). Q28 7-day rolling distinct-customer count (approximation) per day. Q29 Trailing 3-month revenue and its growth base (no LAG - just the trailing sum). Q30 Rolling 28-day order count with a 4-week moving average. Q31 Moving average of delivery time over last 20 shipments per courier. Q32 Deviation of daily revenue from its trailing 7-day average (flag > 2x). Q33 Rolling 90-day revenue per region, gap-filled. Q34 Trailing-10 average margin per product; flag drops. Q35 7-day moving average of web page-views per device_type. Q36 Rolling 6-month average net_salary per department. Q37 Cumulative revenue with a 30-day trailing sum side by side. Q38 Rolling 14-day ticket volume per category with moving average. Q39 Trailing 5-order average basket size per customer. Q40 Rolling weekly active customers (distinct per trailing 7 days). Q41 Moving average of ratings over last 10 reviews per product. Q42 Rolling 30-day refund total per customer. Q43 3-month moving average revenue per category, gap-filled. Q44 Trailing 7-day cumulative units sold per product. Q45 Rolling 4-week signups with moving average per region. Q46 Trailing-20 average call duration per agent; flag fatigue (rising trend). Q47 Rolling 90-day GMV with a 7-day smoothed line. Q48 Moving average of order value excluding the current order (peer baseline). Q49 Rolling 12-month revenue (TTM) per store. Q50 Daily revenue, 7-day MA, 30-day MA in one query (multiple frames). FIRST_VALUE / LAST_VALUE / NTH_VALUE Q51 First order value per customer on every row (FIRST_VALUE). Q52 Last (most recent) order value per customer with a correct full frame. Q53 Each order's value vs the customer's first order value (ratio). Q54 First and last review rating per product on every row. Q55 NTH_VALUE: the 2nd order value per customer on every row. Q56 Each product's price vs its brand's cheapest (FIRST_VALUE by price asc). Q57 Each employee's salary vs their department's top salary (FIRST_VALUE desc). Q58 First and current cumulative revenue per store (anchor vs running). Q59 Each month's revenue vs the year's first month (indexing to 100). Q60 Last delivered date per courier on every shipment row. Q61 Each call's duration vs the agent's longest call (FIRST_VALUE desc). Q62 First purchase date per customer attached to every order. Q63 Each order's value vs the store's max order value (peak). Q64 % to peak: running value / running MAX per series. Q65 Each product's price vs its supplier's most expensive product. Q66 First and last snapshot quantity per (warehouse, product). Q67 Each campaign's spend vs the platform's biggest campaign. Q68 NTH_VALUE: 3rd-highest order value per customer on every row (with frame). Q69 Each region's monthly revenue vs its best month (FIRST_VALUE by revenue desc). Q70 Each customer's latest tier vs first tier (anchor comparison). Q71 Each pay_slip vs the employee's first recorded net_salary. Q72 Each product's units vs brand's best-seller units (FIRST_VALUE). Q73 First and last order value per customer in one row (both ends). Q74 Each store's revenue vs region's top store revenue. Q75 Anchor every row to the partition's first AND last values, compute the span. SHARE / RESET / REPORTS Q76 SCENARIO: CFO wants a monthly P&L strip: revenue, YTD revenue, and % of year - per region. Q77 Pareto curve: cumulative % of revenue by customer; identify the top-20% set. Q78 ABC product classification via cumulative % of units within category. Q79 Each order's % of customer spend AND % of store revenue (two windows). Q80 Running revenue reset per year with % of that year's total per month. Q81 Contribution analysis: each category's monthly % of company revenue. Q82 Month-to-date vs full-month revenue per store (frame to month end). Q83 Each employee's salary percentile-ish share within department payroll. Q84 Rolling 7-day revenue with its % of trailing 30-day revenue. Q85 Weekly revenue as % of its month (reset monthly). Q86 Each product's running share of brand revenue over time. Q87 Customer cohort: cumulative spend per customer indexed to first month = 100. Q88 Each region's quarter revenue as % of its year. Q89 Detect anomaly months: revenue > 1.5x trailing 3-month average. Q90 Each store's daily revenue as % of its trailing 7-day total. Q91 Cumulative refunds as % of cumulative revenue per customer. Q92 Each agent's daily resolved tickets as % of their trailing-week total. Q93 Reset running GMV quarterly and show quarter-to-date %. Q94 Top-20% products by cumulative units (Pareto) per category. Q95 Each campaign's spend as running % of platform spend over time. Q96 Monthly revenue with YTD total and YTD % growth-base (growth itself is Topic 18). Q97 Each customer's order as % of their trailing-90-day spend. Q98 Region revenue contribution waterfall (cumulative share, sorted). Q99 Each warehouse's stock as % of region stock AND % of company stock. Q100 Executive dashboard query: per region per month - revenue, YTD, %-of-year, 3-mo MA. Production scenarios, optimisation
CONCEPTUAL Q1 Architect a daily KPI query with 7-day, 30-day, and YTD windows in one pass. Q2 RANGE vs ROWS vs GROUPS - precise frame semantics and when each is correct. Q3 Why gap-filling must precede rolling windows; build the date spine. Q4 LAST_VALUE/NTH_VALUE frame correctness; the UNBOUNDED FOLLOWING fix. Q5 Rolling distinct counts: why windows fail and how to approximate/solve. Q6 Rolling median: approaches (percentile_cont per window via LATERAL) and cost. Q7 Performance of large RANGE INTERVAL frames; mitigation strategies. Q8 Multi-level share-of-total in one query (line/order/customer/grand). Q9 Reproducible reset-at-boundary cumulative metrics across refreshes. Q10 Anomaly detection: deviation-from-trailing-MA, z-score within a window. Q11 Why FILTER isn't allowed in window aggregates; CASE-inside-aggregate alternative. Q12 Building Pareto/ABC curves correctly with cumulative share + cut-points. Q13 Combining window aggregates with GROUP BY in layered CTEs (grain discipline). Q14 Centered vs trailing MA: trend-timing tradeoffs for forecasting inputs. Q15 Exclude-current-row frames for unbiased peer baselines. Q16 Index-to-100 time series (each row / partition's first value) at scale. Q17 % to running peak (drawdown) using running MAX frames. Q18 TTM (trailing-twelve-month) metrics with monthly grain. Q19 Why duplicate ORDER BY keys + RANGE inflate frames; ROWS as the fix. Q20 Designing a query that emits detail + subtotal + grand total rows. Q21 Rolling cohort retention inputs purely from aggregation windows (no LAG). Q22 Multi-frame correctness when partitions have sparse/uneven dates. Q23 Materializing the date spine + facts before windowing for speed. Q24 Contribution waterfall ordering and cumulative share semantics. Q25 When to push windowing to an MV (Topic 25) vs compute on the fly. MULTI-FRAME ROLLING KPIs Q26 SCENARIO: Build the daily revenue KPI line: value, 7-day MA, 30-day MA, YTD - gap-filled. Q27 Per store: daily revenue with 7/28/90-day moving sums. Q28 Rolling 7-day and 30-day active-customer counts per day. Q29 Trailing-3-month and trailing-12-month revenue per region. Q30 Daily orders with 7-day MA and deviation flag (> 2x MA). Q31 Rolling 30-day GMV and its % of trailing 90-day GMV. Q32 Per product: trailing-7 and trailing-30 units with both moving averages. Q33 Rolling weekly signups, 4-week MA, and 12-week MA per region. Q34 Delivery time: trailing-20 and trailing-100 moving average per courier. Q35 Per agent: trailing-week and trailing-month resolved-ticket counts. Q36 Daily refunds with 7-day MA and refund-spike flag. Q37 Rolling 90-day revenue per category, gap-filled, with 7-day smoothing. Q38 Per warehouse: trailing-30-day stock movement (snapshots) moving average. Q39 Web page-views: 7-day MA per device and the device's share of daily total. Q40 Rolling 6-month and 12-month net_salary average per department. Q41 Per customer: trailing-90-day spend and trailing-365-day spend. Q42 Daily revenue z-score within a trailing 30-day window (anomaly score). Q43 Rolling 14-day ticket volume with MA per priority. Q44 Per brand: trailing-30-day revenue and its rank-free % of trailing-90. Q45 Rolling 7-day and 30-day average basket size per store. Q46 Trailing-12-month revenue (TTM) with month-over-month base (sums only). Q47 Per region: 4-week and 12-week moving average of new customers. Q48 Rolling 30-day distinct products sold per store (approximation). Q49 Daily revenue, 7-day MA, and % deviation from MA per store. Q50 One query: per store per day - revenue, 7/30-day MA, YTD, and YTD %-of-year. ANCHORED VALUES, PARETO & ABC Q51 SCENARIO: Product team wants ABC classification: cumulative % of revenue per category -> A/B/C. Q52 Pareto: top-20% of customers driving what % of revenue (cumulative share). Q53 Index each store's monthly revenue to its first month = 100. Q54 Each order vs the customer's first and last order value (FIRST/LAST_VALUE). Q55 % to peak (drawdown) of cumulative revenue per store. Q56 ABC classification of products by units within brand. Q57 Each region's month vs its best month (FIRST_VALUE by revenue desc). Q58 Cumulative revenue contribution curve per category (waterfall order). Q59 NTH_VALUE: each customer's 2nd and 3rd order values on every row. Q60 Each product's price vs brand cheapest and dearest (FIRST + LAST_VALUE). Q61 Customer spend indexed to first active month per acquisition cohort. Q62 Pareto cutoff: smallest set of products making 80% of revenue. Q63 Each campaign vs platform's biggest campaign spend (anchor). Q64 Drawdown from running max of cumulative GMV (max underwater %). Q65 ABC by margin contribution per category. Q66 Each store's revenue vs region's top and bottom store (span). Q67 Top-20% SKUs by cumulative units within each warehouse. Q68 Each employee's salary vs department first/last by hire order. Q69 Cumulative % of refunds by customer (who drives returns). Q70 Each month indexed to year's first month per region (=100). Q71 Contribution of each payment_mode to cumulative revenue. Q72 First/last snapshot per (warehouse, product) and net change. Q73 Pareto of agents by resolved-ticket contribution. Q74 ABC customers by lifetime spend (A=top 80% cum, etc.). Q75 Each product's running share of brand revenue with peak-share month. EXECUTIVE DASHBOARDS Q76 SCENARIO: Build the exec monthly dashboard per region: revenue, YTD, %-of-year, 3-mo MA, contribution %. Q77 Daily company KPI: revenue, orders, AOV, 7-day MA of each, gap-filled. Q78 Store scorecard: revenue, region-share %, YTD, trailing-90 MA. Q79 Product performance board: units, brand-share %, ABC class, trailing-30 MA. Q80 Customer value board: lifetime spend, spend percentile (window), recency, trailing-90. Q81 Category monthly board: revenue, % of company, cumulative YTD, 3-mo MA. Q82 Courier SLA board: avg delivery, trailing-100 MA, % of shipments under 2 days. Q83 Agent productivity board: resolved/day, trailing-week MA, share of category. Q84 Region waterfall: monthly revenue contribution to company cumulative. Q85 Marketing board: platform spend, share %, trailing-30 MA, cumulative. Q86 Warehouse health board: stock, region-share %, trailing-30 movement MA. Q87 Cohort revenue board: per signup-month cumulative spend indexed to 100. Q88 Daily anomaly board: revenue, 7-day MA, z-score, flagged spikes. Q89 Pareto board: cumulative customer revenue share with the 80% line. Q90 P&L strip: revenue, expenses (windowed), running margin per month per region. Q91 Retention input board: rolling weekly active customers + 4-week MA. Q92 Brand board: revenue, category-share %, YTD, ABC class. Q93 Store-of-month: highest trailing-30 revenue store per region (aggregate window). Q94 Inventory turns board: trailing-90 COGS / avg stock per product. Q95 Channel board: web sessions, conversion proxy, 7-day MA per device. Q96 Executive "one big query": region x month with 8 windowed KPIs. Q97 Top-line board: company revenue, YTD, %-of-year, TTM in one query. Q98 Quartile-free contribution board (pure cumulative share, no NTILE). Q99 Returns board: refund total, % of revenue, trailing-30 MA per category. Q100 Full monthly exec pack: revenue, YTD, %-of-year, 3-mo MA, contribution %, drawdown - per region.