SDI Lab / BI cockpit Demo on a made-up Swiss insurance-lead business, data as of 28.10.2026 18:00. Names, brokers and numbers are invented.

Leads (Marketing)

1'102

▲ +58% vs August (698) · by creation date

Trend * October 2026 so far: the data runs to 28.10.2026 18:00, so it is not a full month.

As a table
ProductLeadsRows
Basic health (KVG)702Rows →
Supplementary (VVG)197Rows →
Life107Rows →
Car96Rows →
How it's calculated

Every lead, counted on the day it arrived. Owner: Marketing.

Why other departments count differently →

Definition in metrics/leads.yml

name: leads_marketing
label: Leads
noun: leads
description: Every lead, counted on the day it arrived.
measure: lead_count
time_basis: created_at
owner: marketing
certified: true

The number

select count(distinct lead_id) as value
from leads
where created_at >= timestamp '2026-09-01 00:00:00' at time zone 'Europe/Zurich'
  and created_at < timestamp '2026-10-01 00:00:00' at time zone 'Europe/Zurich'

The trend

select to_char(created_at at time zone 'Europe/Zurich', 'YYYY-MM') as period,
       count(distinct lead_id) as value
from leads
where created_at >= timestamp '2026-04-01 00:00:00' at time zone 'Europe/Zurich'
  and created_at < timestamp '2026-11-01 00:00:00' at time zone 'Europe/Zurich'
group by 1
order by 1

The breakdown by product

select product as label,
       count(distinct lead_id) as value
from leads
where created_at >= timestamp '2026-09-01 00:00:00' at time zone 'Europe/Zurich'
  and created_at < timestamp '2026-10-01 00:00:00' at time zone 'Europe/Zurich'
group by 1
order by 2 desc, 1
limit 50

The app runs these queries with parameters; here the values are written in, so they can be read or pasted into psql.