Personas
FinOps Practitioner, Finance
Capabilities
Budgeting, Invoicing & Chargeback
Source
FOCUS 1.0 sample
Result rows
8
Status
Adapted to v1.0
Execution
PrecomputedRead-only
Result snapshot (UTC)
2026-10-11

Shows billing periods where the cash view (billed cost) and accrual view (effective cost) differ by more than $0.01, per service provider and invoice issuer. ServiceProviderName (v1.3+) is derived from provider_name, or publisher_name for marketplace sellers. AWS and Oracle effective_cost values in this sample are whole-dollar rounded, so many AWS rows show 0 effective cost.

Column adaptations (1)
  • ServiceProviderName → case when publisher_name is not null and publisher_name is distinct from invoice_issuer_name then publisher_name else provider_name end: v1.0 ProviderName for direct cloud services; v1.0 PublisherName for the marketplace sellers (Datadog, Red Hat) whose publisher differs from the invoice issuer, matching the v1.3+ seller semantics.

Accrual minus cash by invoice issuer

Query results
Service provider nameInvoice issuer nameBilling period startBilling period endTotal billed costTotal effective costCost basis difference
AWSAmazon Web Services, Inc.2026-03-012026-04-01$768.86$260.00-$508.86
MicrosoftMicrosoft2026-03-012026-04-01$567.21$587.28$20.07
AWSAmazon Web Services Canada, Inc.2026-03-012026-04-01$12.97$0.00-$12.97
Red Hat Inc.Amazon Web Services, Inc.2026-03-012026-04-01$3.42$0.00-$3.42
AWSAmazon Web Services EMEA SARL2026-03-012026-04-01$7.37$4.00-$3.37
OracleOracle2026-03-012026-04-01$23.53$21.00-$2.53
Datadog Inc.Amazon Web Services, Inc.2026-03-012026-04-01$40.98$40.32-$0.66
OracleOracle2026-04-012026-05-01$2.55$2.00-$0.55

8 rows. Scroll inside the table to see more.

Precomputed result

Inspect Postgres SQL and original FOCUS SQL

Postgres SQL, as run

select case when publisher_name is not null and publisher_name is distinct from invoice_issuer_name then publisher_name else provider_name end as service_provider_name,
       invoice_issuer_name as invoice_issuer_name,
       billing_period_start as billing_period_start,
       billing_period_end as billing_period_end,
       sum(billed_cost) as total_billed_cost,
       sum(effective_cost) as total_effective_cost,
       sum(effective_cost) - sum(billed_cost) as cost_basis_difference
from focus.cost_and_usage
where billing_period_start >= $1::timestamptz
  and billing_period_end < $2::timestamptz
group by 1, invoice_issuer_name, billing_period_start, billing_period_end
having abs(sum(effective_cost) - sum(billed_cost)) > 0.01
order by abs(sum(effective_cost) - sum(billed_cost)) desc, service_provider_name, invoice_issuer_name
limit 500

Parameters: $1 = billing_period_start, $2 = billing_period_end

Original FOCUS SQL

SELECT
  ServiceProviderName,
  InvoiceIssuerName,
  BillingPeriodStart,
  BillingPeriodEnd,
  SUM(BilledCost) AS TotalBilledCost,
  SUM(EffectiveCost) AS TotalEffectiveCost,
  SUM(EffectiveCost) - SUM(BilledCost) AS CostBasisDifference
FROM focus_data_table
WHERE
  BillingPeriodStart >= ? AND BillingPeriodEnd < ?
GROUP BY
  ServiceProviderName,
  InvoiceIssuerName,
  BillingPeriodStart,
  BillingPeriodEnd
HAVING
  ABS(SUM(EffectiveCost) - SUM(BilledCost)) > 0.01

Columns used

Column names from the source use case.

  • Billed Cost
  • Contracted Cost
  • Effective Cost
  • List Cost
  • Billing Account ID
  • Billing Account Name
  • Billing Currency
  • Billing Period End
  • Billing Period Start
  • Charge Category
  • Charge Period End
  • Charge Period Start
  • Commitment Discount ID
  • Invoice Issuer Name
  • Service Name
  • Service Provider Name
Read the source on focus.finops.org ↗