Source
FOCUS 1.0 sample
Result rows
500
Status
Adapted to v1.0
Execution
PrecomputedRead-only
Result snapshot (UTC)
2026-10-11

Shows daily amortized effective cost by service provider and subaccount for anomaly investigation; the source query does not calculate anomaly flags. ServiceProviderName is reconstructed for this sample using publisher_name for observed marketplace sellers where publisher differs from invoice issuer, otherwise provider_name for direct-provider charges. UTC dates and the source's strict charge-period-end boundary are preserved; the chart plots daily cost per subaccount (largest 7 plus Other) and the table below keeps every row. Results are the 500 largest daily totals, not a complete daily series.

Column adaptations (1)
  • ServiceProviderName → case when publisher_name is not null and publisher_name is distinct from invoice_issuer_name then publisher_name else provider_name end: Sample-scoped reconstruction: PublisherName identifies the observed AWS marketplace seller (Datadog or Red Hat) when distinct from InvoiceIssuerName; otherwise v1.0 ProviderName supplies the direct-provider identity without splitting legal invoicing subsidiaries.

Daily effective cost by sub account

Chart controls and notes

The largest 7 series keep their own colors; the remaining series are combined as Other.

Query results
DayService provider nameSub account idDaily effective cost
2026-03-27AWS11353890204$103.00
2026-03-26AWS11353890204$93.00
2026-03-18Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$63.31
2026-03-19AWS11353890204$51.00
2026-03-04Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$49.10
2026-03-16AWS11353890204$48.00
2026-03-29AWS11353890204$39.00
2026-03-09Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$37.42
2026-03-25AWS11353890204$35.00
2026-03-16Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$33.39
2026-03-14Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$32.38
2026-03-20AWS11353890204$31.00
2026-03-12Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$30.55
2026-03-14AWS11353890204$26.00
2026-03-02Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$25.50
2026-03-13AWS11353890204$25.00
2026-03-24AWS11353890204$25.00
2026-03-28AWS11353890204$22.00
2026-03-10Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$20.25
2026-03-12Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$18.21
2026-03-18Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$17.66
2026-03-08Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$17.62
2026-03-13Microsoft/subscriptions/9ec51cfd-5ca7-4d76-8101-dd0a4abc5674$16.88
2026-03-15Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$16.10
2026-03-03Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$14.49
2026-03-09AWS11353890204$14.00
2026-03-03Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$13.35
2026-03-11AWS11353890204$13.00
2026-03-04Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$12.79
2026-03-10Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$10.92
2026-03-04Microsoft/subscriptions/299611fd-f57d-4591-a2ce-b485ba0021cd$10.66
2026-03-15Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$10.30
2026-03-14AWS18938484842$10.00
2026-03-14Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$9.91
2026-03-02Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$9.88
2026-03-02Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$9.75
2026-03-05Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$9.70
2026-03-07Microsoft/subscriptions/9ec51cfd-5ca7-4d76-8101-dd0a4abc5674$9.15
2026-03-04Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$8.99
2026-03-07Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$8.77
2026-03-11Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$8.32
2026-03-23AWS18938484842$8.00
2026-03-18Microsoft/subscriptions/9ec51cfd-5ca7-4d76-8101-dd0a4abc5674$7.78
2026-03-05Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$7.38
2026-03-13Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$7.32
2026-03-03Datadog Inc.69918885631$7.20
2026-03-20Datadog Inc.69918885631$7.20
2026-03-21Datadog Inc.69918885631$7.20
2026-03-30Datadog Inc.69918885631$7.20
2026-03-03Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$7.03
2026-03-22AWS11353890204$7.00
2026-03-19Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$6.99
2026-03-11Microsoft/subscriptions/9ec51cfd-5ca7-4d76-8101-dd0a4abc5674$6.65
2026-03-05Microsoft/subscriptions/9ec51cfd-5ca7-4d76-8101-dd0a4abc5674$6.20
2026-03-05AWS11353890204$6.00
2026-03-06AWS18938484842$6.00
2026-03-09AWS69460568468$6.00
2026-03-10Oracleocid6.tenancy.oc6..aaaaaaaalnpeq6xok1okj8vknc9pzancima2g8bwvk2kk9jgwhgycacrie2q$6.00
2026-03-18AWS18938484842$6.00
2026-03-25AWS18938484842$6.00
2026-03-28AWS18938484842$6.00
2026-03-09Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$5.73
2026-03-17Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$5.49
2026-03-14Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$5.40
2026-03-06Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$5.06
2026-03-01Datadog Inc.69918885631$5.04
2026-03-02AWS18938484842$5.00
2026-03-03AWS18938484842$5.00
2026-03-04AWS18938484842$5.00
2026-03-09AWS18938484842$5.00
2026-03-24AWS18938484842$5.00
2026-03-29AWS18938484842$5.00
2026-03-30AWS18938484842$5.00
2026-03-11Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$4.83
2026-03-17Microsoft/subscriptions/1caaa5a3-2b66-438e-8ab4-bce37d518c5d$4.75
2026-03-11Microsoft/subscriptions/73c0021f-a37d-433f-8baa-7450cb54eea6$4.60
2026-03-08Microsoft/subscriptions/73c0021f-a37d-433f-8baa-7450cb54eea6$4.51
2026-03-15Microsoft/subscriptions/73c0021f-a37d-433f-8baa-7450cb54eea6$4.51
2026-03-11Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$4.35
2026-03-13Microsoft/subscriptions/64e355d7-997c-491d-b0c1-8414dccfcf42$4.28
2026-03-08Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$4.08
2026-03-06AWS11353890204$4.00
2026-03-10AWS18938484842$4.00
2026-03-11Oracleocid6.tenancy.oc6..aaaaaaaalnpeq6xok1okj8vknc9pzancima2g8bwvk2kk9jgwhgycacrie2q$4.00
2026-03-13Oracleocid6.tenancy.oc6..aaaaaaaalnpeq6xok1okj8vknc9pzancima2g8bwvk2kk9jgwhgycacrie2q$4.00
2026-03-13Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$3.95
2026-03-17Microsoft/subscriptions/ed570627-0265-4620-bb42-bae06bcfa914$3.94
2026-03-15Microsoft/subscriptions/9ec51cfd-5ca7-4d76-8101-dd0a4abc5674$3.88
2026-03-06Microsoft/subscriptions/9ec51cfd-5ca7-4d76-8101-dd0a4abc5674$3.81
2026-03-14Datadog Inc.69918885631$3.60
2026-03-01AWS18938484842$3.00
2026-03-01AWS69460568468$3.00
2026-03-11AWS15196455530$3.00
2026-03-17AWS18938484842$3.00
2026-03-21AWS69918885631$3.00
2026-03-21Oracleocid6.tenancy.oc6..aaaaaaaa2fs7w19bi9iupcjqv8zayogd78eziinl2hu7rkdvmuhsavhbmkma$3.00
2026-03-22AWS17370686428$3.00
2026-03-24AWS70077301883$3.00
2026-03-28AWS52305261521$3.00
2026-03-11Datadog Inc.69918885631$2.88

Showing 100 of 500 rows. Scroll inside the table to see more.

Precomputed result

Inspect Postgres SQL and original FOCUS SQL

Postgres SQL, as run

select (charge_period_start at time zone 'UTC')::date as day,
       case when publisher_name is not null and publisher_name is distinct from invoice_issuer_name then publisher_name else provider_name end as service_provider_name,
       sub_account_id as sub_account_id,
       sum(effective_cost) as daily_effective_cost
from focus.cost_and_usage
where charge_period_start >= $1::timestamptz
  and charge_period_end < $2::timestamptz
group by (charge_period_start at time zone 'UTC')::date, case when publisher_name is not null and publisher_name is distinct from invoice_issuer_name then publisher_name else provider_name end, sub_account_id
order by daily_effective_cost desc nulls last, day asc, service_provider_name asc nulls last, sub_account_id asc nulls last
limit 500

Parameters: $1 = period_start, $2 = period_end

Original FOCUS SQL

SELECT
  DATE(ChargePeriodStart) AS Day,
  ServiceProviderName,
  SubAccountId,
  SUM(EffectiveCost) AS DailyEffectiveCost
FROM focus_data_table
WHERE ChargePeriodStart >= ? and ChargePeriodEnd  < ?
GROUP BY
  DATE(ChargePeriodStart) AS StartDay,
  ServiceProviderName,
  SubAccountId

Columns used

Column names from the source use case.

  • Service Provider Name
  • Sub Account ID
  • Contract Period Start
  • Contract Period End
  • Effective Cost
Read the source on focus.finops.org ↗