- Use Cases
- Reporting & Analytics
- Report costs by service category
Report costs by service category
This query uses the Provider column. Provider is deprecated in v1.3 and will be removed in v1.4.
FOCUS Versions
v1.0
v1.1
v1.2
Context
Understanding costs across providers, billing periods, and service categories (Analytics, Compute, Database, Storage, etc.) provides valuable insight into total costs.
FOCUS SQL Query
SELECT
ProviderName,
BillingCurrency,
BillingPeriodStart,
ServiceCategory,
SUM(BilledCost) AS TotalBilledCost
FROM focus_data_table
WHERE BillingPeriodStart >= ? and BillingPeriodEnd < ?
GROUP BY
ProviderName,
BillingCurrency,
BillingPeriodStart,
ServiceCategory
ORDER BY TotalBilledCost DESC