Text-based requirement: “Find the 14-day rolling average purchase amount for each store, using each purchase’s local store date.” Which implementation best satisfies this requirement with correct handling of local dates and rolling windows in a Looker+BigQuery setup?
Answer
Convert event timestamps to local dates in the warehouse, then compute rolling windows using the local date field and join the rolling result back to store_id
Explanation
Rolling windows must be defined on the same date key used for grouping; converting timestamps before calculating ensures correct local-day boundaries. Joining back keeps store attribution consistent without grain drift.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You need to design a Looker model for a KPI that is time-zone aware (e.g., “day” boundaries depend on the store’s local time). Which modeling approach most reliably preserves correct grouping across dimensions and avoids double-counting?
View question →
A multi-tenant organization uses separate BigQuery datasets per region but one shared Looker model. Some tenants occasionally see “field not found” errors for measures that work for others. What is the most plausible modeling cause?
View question →
A company uses Looker with BigQuery and implements row-level security to restrict customer data by account. A user reports that totals at higher aggregation levels still reveal restricted customer counts. What is the most likely issue?
View question →
You must optimize a Looker Explore that frequently filters by customer_region and date_range. BigQuery shows high scan volume even when filters appear selective. Which change is most likely to improve partition and clustering effectiveness without changing business logic?
View question →
A Looker semantic model uses persistent derived tables (PDTs) for performance. After a schema change in BigQuery (renamed column) a subset of dashboards continues to work until a refresh occurs. Which behavior most accurately explains this?
View question →
A Looker dashboard shows “active users” increasing during weekends, but an internal audit reveals bot traffic. The data pipeline tags bots, and you have both a boolean is_bot and a bot_confidence score. Which approach best supports a robust and auditable definition of “active users” for stakeholders?
View question →