Source
FOCUS 1.0 sample
Result rows
30
Status
Runs on sample
Execution
PrecomputedRead-only
Result snapshot (UTC)
2026-10-11

Calculates daily billed cost per GB for descriptions containing the case-sensitive substring transfer; matching sample charges are in USD. The denominator retains full numeric consumption precision instead of rounding each row to two decimal places before summing.

Daily transfer cost per GB

Query results
Charge period dateCost per gb
2026-03-01$0.02
2026-03-02$0.01
2026-03-03$0.02
2026-03-04$0.05
2026-03-05$0.03
2026-03-06$0.02
2026-03-07$0.02
2026-03-08$0.01
2026-03-09$0.04
2026-03-10$0.02
2026-03-11$0.03
2026-03-12$0.00531
2026-03-13$0.00521
2026-03-14$0.00216
2026-03-15$0.00871
2026-03-16$0.00363
2026-03-17$0.00319
2026-03-18$0.0031
2026-03-19$0.00166
2026-03-20$0.00243
2026-03-21$0.00511
2026-03-22$0.03
2026-03-23$0.00296
2026-03-24$0.00232
2026-03-25$0.00196
2026-03-26$0.00185
2026-03-27$0.00254
2026-03-28$0.02
2026-03-29$0.00312
2026-03-30$0.00451

30 rows. Scroll inside the table to see more.

Precomputed result

Inspect Postgres SQL and original FOCUS SQL

Postgres SQL, as run

select (charge_period_start at time zone 'UTC')::date as charge_period_date,
       round(sum(billed_cost) / nullif(sum(consumed_quantity), 0), 6) as cost_per_gb
from focus.cost_and_usage
where charge_description like '%transfer%'
  and consumed_unit = 'GB'
group by (charge_period_start at time zone 'UTC')::date
order by charge_period_date asc
limit 500

Original FOCUS SQL

SELECT
    CAST(ChargePeriodStart AS DATE) AS ChargePeriodDate,
    SUM(BilledCost) / NULLIF(SUM(CAST(ConsumedQuantity AS DECIMAL(10, 2))), 0) AS CostPerGB
FROM focus_data_table
WHERE
    ChargeDescription LIKE '%transfer%'
    AND ConsumedUnit = 'GB'
GROUP BY
    CAST(ChargePeriodStart AS DATE)
ORDER BY
    ChargePeriodDate ASC;