ROI — Retorno sobre Investimento
Quanto se ganhou em relação ao que foi investido em uma iniciativa.
Fórmula
ROI = (Retorno - Investimento) / Investimento
Exemplo de tabela
| Campanha | Investimento | Retorno | ROI |
|---|---|---|---|
| Black Friday | 250000 | 1200000 | 380% |
| Branding Q1 | 180000 | 210000 | 16,7% |
Query SQL
sql
SELECT
campanha,
SUM(receita_atribuida) AS retorno,
SUM(investimento) AS investimento,
(SUM(receita_atribuida) - SUM(investimento)) * 1.0
/ NULLIF(SUM(investimento), 0) AS roi
FROM resultados_campanhas
GROUP BY campanha
ORDER BY roi DESC;Como interpretar
ROI isolado não conta tudo: olhe também o payback (em quanto tempo o investimento se paga).