THE LINUX FOUNDATION PROJECTS
Docs navigation
On this page

    Allocate multi-currency charges per application

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

    FOCUS Versions

    v1.0 v1.1 v1.2

    Context

    Finance needs to allocate costs and perform chargeback for charges for all applications that come from different geographic locations and are in different currencies.

    FOCUS SQL Query

    SELECT 
      Tags["ApplicationId"],
      ProviderName,
      BillingAccountId,
      BillingAccountName,
      BillingCurrency,
      SUM(BilledCost) AS TotalBilledCost
    FROM focus_data_table
    WHERE
      BillingPeriodStart >= ? AND BillingPeriodEnd < ?
    GROUP BY
      Tags["ApplicationId"],
      ProviderName,
      BillingAccountId,
      BillingAccountName,
      BillingCurrency

    FOCUS Datasets

    FOCUS Columns