Lesson 4 of 4 The FOCUS Specification

Working with Multi-Cloud FOCUS Data

Engineers often build or check the pipeline that turns several providers' billing data into one FOCUS dataset. This lesson covers native exports, converting sources that have none, combining providers, validating the result and writing queries that work across all of them.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain why native FOCUS exports are preferred.
  • Describe how to convert a source without a FOCUS export.
  • Identify the agreements needed to combine providers.
  • Explain how FOCUS supports allocation.
  • Choose FOCUS query patterns for common engineering questions.

Prefer native FOCUS exports

Where a provider offers a native FOCUS export, use it. The provider knows its own billing semantics best, maintains the mapping as its services change and publishes which FOCUS version it supports. On AWS, for example, AWS Data Exports can deliver a FOCUS table to Amazon S3; Azure Cost Management and Google Cloud provide FOCUS-formatted exports or views as well. Native exports also include provider-specific detail in x_ columns.

Converting sources without native exports

Some SaaS vendors, internal chargeback systems and older provider data have no FOCUS export. Converting them involves the following steps.

  1. Map columns

    Match each source column to its FOCUS column, for example an internal department code to SubAccountId and a line amount to BilledCost.

  2. Map values

    Translate the source's values to FOCUS values, for example its charge types to Usage, Purchase, Tax or Credit.

  3. Derive missing columns

    Calculate columns the source lacks, such as EffectiveCost from amortization schedules, or leave optional columns empty.

  4. Keep extras

    Store useful source columns that have no FOCUS equivalent as x_ columns.

  5. Validate

    Check that BilledCost totals match the source's invoices for each billing period.

Open-source conversion tools and FinOps platforms provide mappings for common sources, but their support for the latest FOCUS versions may lag, so check which version a converter produces.

The following diagram maps the columns of an internal chargeback file to FOCUS columns.

Mapping an internal chargeback CSV to FOCUS columns. Dept becomes the sub-account, VMHours the consumed quantity in hours, Rate the list and contracted unit prices, and Amount all four cost columns because there are no discounts. ChargeCategory, ServiceCategory and the provider names are set as fixed values, and the BilledCost total is validated against the source's own monthly total.
Provider name and charge period columns are also set.

Combining providers

Even with every source in FOCUS, combining them requires agreement on a few points. The following list describes them.

  • Currency: each row carries BillingCurrency. Converting to a reporting currency needs an agreed rate, such as a monthly corporate rate, and should keep the original value.
  • Versions: different providers may deliver different FOCUS versions; queries should use columns common to all.
  • Tags: FOCUS standardizes the Tags column, not the keys inside it, so a common tagging standard across providers is still needed.
  • Providers: FOCUS 1.3 introduced ServiceProviderName (who sells the service) and HostProviderName (where it runs), which keep marketplace and third-party charges distinct; FOCUS 1.4 removed the older ProviderName and PublisherName columns.
Select all that apply

Combining FOCUS data

Exam skills 3.2.2

Identify what is still needed when several providers deliver FOCUS data.

Log in to try this activity Interactive activities are free with an account.

Allocation with FOCUS data

FOCUS gives allocation a consistent foundation, but the allocation rules remain the organization's own. The SubAccountId column gives the account, subscription or project for every row from every provider, which supports allocation by hierarchy. The Tags column holds each resource's key-value pairs in a consistent structure, so the same team tag can be read from every provider once the tagging standard is shared.

Shared costs, such as support or shared networking, are distributed by the organization's own rules after ingestion. FOCUS 1.3 added columns that let a data generator describe charges it has already allocated, for example when a platform splits a shared cluster's cost among tenants, so that downstream users can see how a split was made. Keeping allocation rules in the pipeline, rather than in each report, means every team sees the same answer.

Validating the combined dataset

A combined dataset should be validated in the same way as any cost pipeline. BilledCost per billing account and billing period should match each invoice. Totals of EffectiveCost and BilledCost for each provider should agree over a full commitment term. Required columns should be populated, and allowed values should be respected. The FinOps Foundation provides a FOCUS validator that checks conformance to the specification for supported versions.

Troubleshooting scenario

A multi-cloud total that is too high

Exam skills 3.2.2

Find the error in a combined multi-cloud dataset.

Log in to try this activity Interactive activities are free with an account.

Common queries

The following table lists common engineering questions and the FOCUS pattern that answers them for every provider at once.

QuestionFOCUS pattern
Cost by teamSum EffectiveCost, ChargeCategory = Usage, grouped by team tag or SubAccountId
Invoice totalSum BilledCost, grouped by BillingAccountId and BillingPeriodStart
Savings from discountsSum ListCost - sum EffectiveCost for Usage rows
Unused commitmentsSum EffectiveCost where CommitmentDiscountStatus = Unused
Spot adoptionShare of compute EffectiveCost (or ListCost) with PricingCategory = Dynamic
Cost by regionSum EffectiveCost grouped by RegionId

Two rules prevent most errors: never add BilledCost and EffectiveCost in the same total, and exclude Purchase rows when summing EffectiveCost by team.

Worked example

Converting an internal chargeback file

A private cloud team publishes a monthly CSV with columns Dept, VMHours, Rate and Amount. The FinOps team wants it in the same FOCUS dataset as public cloud data. How should the engineer map it?

Dept maps to SubAccountId (and a name column), VMHours to ConsumedQuantity with ConsumedUnit Hours, Rate to ListUnitPrice and ContractedUnitPrice, and Amount to BilledCost, EffectiveCost, ContractedCost and ListCost, because there are no discounts. ChargeCategory is Usage, ServiceCategory is Compute, ServiceProviderName and HostProviderName name the internal team, and the charge period is the month. Validation compares the BilledCost total with the private cloud team's own monthly total.

Worked example

A multi-cloud total that is too high

A combined FOCUS report shows multi-cloud spend 18% higher than the sum of the invoices. Usage rows look correct. What is the most likely error?

The report probably sums EffectiveCost for all rows plus BilledCost for Purchase rows, or includes Purchase rows in an EffectiveCost total in a source where the conversion set the purchase's EffectiveCost incorrectly. Either way, commitment costs are counted twice: once when paid and once when amortized into usage. Using a single cost column consistently and validating BilledCost against invoices for each provider exposes the error.

Check yourself

Why is a common tagging standard still needed when every provider delivers FOCUS data?

Show answer

FOCUS standardizes the Tags column, not the keys and values inside it. Without a shared standard, one provider may use team=payments and another Team=Payments, which split the same team.

Exam Tips

Remember for the exam

  • Use native FOCUS exports where available; convert other sources by mapping columns and values.
  • Agree on currency conversion and a cross-provider tagging standard.
  • Validate by reconciling BilledCost with every invoice.
  • Never mix BilledCost and EffectiveCost in one total.