You are building a Looker dashboard and need to calculate the year-over-year growth rate. Which feature should you use to perform this without modifying the underlying SQL?
Trap 1: BigQuery query parameters.
Query parameters are for filtering, not for performing complex row-wise math.
Trap 2: LookML derived tables with persistent caching.
While possible, it is overkill compared to a simple table calculation.
Trap 3: Database-level User Defined Functions (UDFs).
UDFs modify the underlying database logic, which is unnecessary here.
- A
BigQuery query parameters.
Why wrong: Query parameters are for filtering, not for performing complex row-wise math.
- B
Looker Table Calculations.
Table calculations provide flexible, on-the-fly math capabilities.
- C
LookML derived tables with persistent caching.
Why wrong: While possible, it is overkill compared to a simple table calculation.
- D
Database-level User Defined Functions (UDFs).
Why wrong: UDFs modify the underlying database logic, which is unnecessary here.