This query uses the Provider column. Provider is deprecated in v1.3 and will be removed in v1.4.

Capabilities
Reporting & Analytics
Source
FOCUS 1.0 sample
Result rows
37
Status
Runs on sample
Execution
PrecomputedRead-only
Result snapshot (UTC)
2026-10-11

Computes the source effective savings rate, (contracted cost - effective cost) / contracted cost, by v1.0 provider and service as the raw effective_discount_ratio. Services with under $0.01 of contracted cost are excluded, because in this sample their ratios explode (Azure Data Factory has $0.0000000006 contracted, giving about -50,000×). AWS effective costs here are rounded to whole dollars, so small negative rates are sample noise.

Effective savings rate by service

Chart controls and notes

Showing the first 20 categories. Open full screen to explore all 37 categories.

Query results
Provider nameService nameTotal contracted costTotal effective costEffective discount ratio
AWSAmazon Elastic Compute Cloud$221.00$214.003.17%
MicrosoftVirtual Machines$168.15$188.30-11.99%
MicrosoftAzure SQL Database$149.04$149.040%
MicrosoftSQL Database$108.73$108.730%
AWSDatadog$40.32$40.320%
MicrosoftAzure App Service$35.98$35.980%
MicrosoftAzure Synapse Analytics$30.24$30.25-0.02%
AWSAmazonCloudWatch$23.00$23.000%
MicrosoftMicrosoft.Fabric$19.28$19.280%
MicrosoftStorage Accounts$17.55$17.460.49%
MicrosoftVirtual Network$13.09$13.090%
MicrosoftAzure Load Testing$10.00$10.000%
AWSAmazon Relational Database Service$9.00$9.000%
MicrosoftAzure Monitor$8.75$8.750%
MicrosoftAzure Kubernetes Service$8.36$8.360%
AWSAmazon Elastic File System$8.00$8.000%
AWSAWS Config$6.00$6.000%
MicrosoftAzure Machine Learning$5.05$5.05-0%
MicrosoftAzure Container Instances$5.02$5.020%
MicrosoftAzure ExpressRoute$4.19$4.190%
AWSAmazon Elastic Container Service for Kubernetes$4.00$4.000%
AWSAmazon Simple Storage Service$4.00$4.000%
AWSElastic Load Balancing$3.00$3.000%
AWSSavings Plans for AWS Compute usage$2.00$0.00100%
MicrosoftAzure Private Link$1.85$1.850%
MicrosoftMicrosoft Defender for Cloud$0.50$0.65-30.06%
MicrosoftAzure Container Registry$0.17$0.170%
MicrosoftAzure Site Recovery$0.16$0.160%
MicrosoftKey Vault$0.02$0.02-0.25%
MicrosoftAzure DNS$0.02$0.02-0.71%
MicrosoftAzure Data Factory v2-$0.05-$0.0410.04%
MicrosoftLoad Balancer-$1.39-$1.390%
AWSAmazon Virtual Private Cloud-$2.00-$2.000%
AWSAWS Lambda-$2.00-$2.000%
AWSAmazon CloudFront-$3.00-$3.000%
MicrosoftAzure DB for MySQL-$4.89-$4.890%
MicrosoftVirtual Machine Scale Sets-$12.74-$12.75-0.1%

37 rows. Scroll inside the table to see more.

Precomputed result

Inspect Postgres SQL and original FOCUS SQL

Postgres SQL, as run

select provider_name as provider_name,
       service_name as service_name,
       sum(contracted_cost) as total_contracted_cost,
       sum(effective_cost) as total_effective_cost,
       (sum(contracted_cost) - sum(effective_cost)) / nullif(sum(contracted_cost), 0) as effective_discount_ratio
from focus.cost_and_usage
where charge_period_start >= $1::timestamptz
  and charge_period_end < $2::timestamptz
group by provider_name, service_name
having abs(sum(contracted_cost)) >= 0.01
order by total_contracted_cost desc nulls last, provider_name, service_name
limit 500

Parameters: $1 = period_start, $2 = period_end_before

Original FOCUS SQL

SELECT
  ProviderName,
  ServiceName,
  SUM(ContractedCost) AS TotalContractedCost,
  SUM(EffectiveCost) AS TotalEffectiveCost,
  (SUM(ContractedCost) - SUM(EffectiveCost)) / NULLIF(SUM(ContractedCost), 0) AS EffectiveSavingsRate
FROM focus_data_table
WHERE ChargePeriodStart >= ? AND ChargePeriodEnd < ?
GROUP BY
  ProviderName,
  ServiceName

Columns used

Column names from the source use case.

  • Provider Name
  • Service Name
  • Contracted Cost
  • Effective Cost
  • Charge Period Start
  • Charge Period End
Read the source on focus.finops.org ↗