In Looker, a measure is built on top of a join that is not one-to-one (e.g., orders to line_items). Which strategy best prevents inflated revenue metrics?
Answer
Aggregate line_items in a derived table to one row per order_id before joining to orders for revenue
Explanation
Pre-aggregating to the correct grain prevents many-to-many multiplication during joins. Aligning grain ensures measures are computed from consistent row-level facts.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
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?
View question →
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 →