- Use Cases
- Reporting & Analytics
- Effective Cost by Service and Region
Effective Cost by Service and Region
FOCUS Versions
v1.4
Context
Aggregates EffectiveCost by billing period to align accrual-based cost reporting with invoice cycles.
FOCUS SQL Query
SELECT
ServiceProviderName,
BillingPeriodStart,
BillingPeriodEnd,
ServiceCategory,
ServiceName,
RegionId,
RegionName,
PricingUnit,
SUM(EffectiveCost) AS TotalEffectiveCost,
SUM(PricingQuantity) AS TotalPricingQuantity
FROM focus_data_table
WHERE
BillingPeriodStart >= ? AND BillingPeriodEnd < ?
GROUP BY
ServiceProviderName,
BillingPeriodStart,
BillingPeriodEnd,
ServiceCategory,
ServiceName,
RegionId,
RegionName,
PricingUnit