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