Machine Learning Powered KPI Monitoring

Marina Tosic9 May 2022

Problem

An analytics team tracks KPIs for 40+ online shops. Each KPI needs an expected range, so one KPI at shop level needs 80+ targets: an upper and a lower limit per shop. Tracking it by shop and by country multiplies the count: number_of_shops × number_of_countries × 2 targets. Defining that many targets is hard for business users, and the effort grows with every new series.

Example from the article: marketing costs, cost revenue ratio (CRR) and return on ad spend (ROAS) per shop for 40+ shops, with targets for each.

Solution in brief

Split the KPIs by type. For continuous measures such as marketing costs, a BigQuery ML time-series model (ARIMA_PLUS) trained per shop produces the predicted value and its bounds, which serve as the targets. For ratio measures such as CRR and ROAS, targets are hard-coded once per shop group as Looker constants. A LookML view joins actuals to targets, and Looker shows a control chart and a control table.

Questions this case answers
  • How to define expected-range targets for a KPI measured across many entities when setting each target by hand does not scale
  • How to monitor a ratio KPI against fixed targets per group of entities in a BI tool without a forecasting model
  • How to set upper and lower KPI targets for dozens of shops without typing each one by hand?
  • How to monitor ratio KPIs such as cost revenue ratio and return on ad spend per shop group?

Tools and methods

  • BigQuery ML ARIMA_PLUS — one model trained on all shops, gives predicted cost and bounds per shop and day
  • Looker (LookML) — manifest constants for ratio targets, a derived table that joins actuals and targets, charts and tables
  • Control chart — actual KPI line against lower and upper bound lines
Continue reading — it's free

Google or a one-time email code. No password.