Charge back cost, shared cost included
Charge cloud cost to cost centres from your tags, split shared cost by the keys your policy sets, report each cost centre in the ledger currency and hand finance the figures.
By the end of this guide, every cost centre has a report of the cloud cost charged to it, its share of shared cost included, in the currency finance books, and the cost no rule claims is small enough to explain. It is for the finance lead who posts the internal charges, and for the engineering lead who maps the cost to its owners. Chargeback books each cost centre's cost against its own budget, where showback only shows it, so every figure must add up and every key must be agreed. The path goes from a policy through the cost centres in your tags and the split of shared cost to one report per cost centre. Each step links to the page that owns the detail.
Before you start
- At least one connection with some history; see Quickstart.
- Adding segments and rules needs the right to edit the workspace; see Access model.
- Read Allocation model once. It explains why rules, not filters, decide which cost centre owns a cost line, and how shared cost is split.
- Steps 2 to 6 work on the sample data a new organization starts with, whose tagged rows carry a
cost-centertag with the valuesCC-1100andCC-2100. Step 7 compares with a month a saved report recorded, so it needs a report saved before that month's record day.
1. Agree the policy
Decide with finance whether to charge at all or to stay with showback, then write down which cost goes to which cost centre, on which cost basis, with which keys for shared cost and at which cut-off. The chargeback policy template holds those decisions; Cost centres and team ownership weighs showback against chargeback. To show teams their cost without charging it, follow Showback for teams instead.
2. Read the cost centres your tags carry
Open Cost reports, set Group by to Tag and choose cost-center under Tag key: each value is a cost centre, and its row shows what the tag already assigns. A filter clause on the same tag with "has no value" lists the cost no cost-center tag names. Where the same cost centre is written in several ways or under several keys, a virtual tag merges them for reports, but an allocation rule cannot read a virtual tag, so the rules of step 3 match the provider's tag keys and values themselves. See Use tags in reports and rules and Virtual tags.
3. Make each cost centre a segment
On Segments, select Add segment and enter the Team, Product and Cost centre that own the cost, such as CC-1100 as the cost centre. Then, on the Rules card, select Add rule, build a Filter on the cost-center tag with the cost centre's value, choose the segment under Segment, select Preview to see what the rule would move, and Save. The first rule that matches a cost line claims it, so put a rule for a named account or resource above a rule on a tag. See Add a segment and Add a rule.
4. Pool the shared cost and split it
Cost no single cost centre owns, such as a shared platform account, goes into a shared segment. Select Add segment, choose Shared: a pool spread across direct segments under Segment type, give it a Label, and under Split choose the key your policy sets: Proportional to direct cost, Even or Fixed percentages. Then add a rule that points at it; on the sample data, the OpenAI and Anthropic rows carry no cost-center tag, so a rule on their provider fills the pool. Coverage then shows how much of the last whole month is Direct, Shared and Unallocated, and under Shared pools each cost centre's share. See Add a shared segment and Read coverage.
5. Build a report per cost centre
Set the workspace's Currency conversion to the currency finance books in; see Currency settings. Then select Open as report on a cost centre's segment, set the Date range and what the report counts under Options as the policy's cost basis says, and select Save as report. A report filtered to a segment shows the cost the rules assign to it plus its share of shared cost, while a report grouped by Segment lists shared cost as Unallocated, so charge from the filtered reports. A workspace that spreads commitment discounts gives the eligible AWS usage of every cost centre the same share of commitment savings. See Filter a report to a segment and Cost amounts.
6. Hand the figures to finance
On each cost centre's report, open Export and choose CSV or Excel under Costfluent columns. The workbook's Settings sheet records the filter, the currency and what the report counts, so finance can see which cost centre and cost basis a file holds. See Export to CSV or Excel, and Close the month with finance for checking the month's total against the invoice first.
7. Change rules, not reports, when the organization changes
When a team moves to another cost centre, edit the segment or the rule rather than the reports: rules point at a segment by identity, so a renamed segment keeps its rules. A changed rule or split restates every past month at once, months already charged included. Opened on a month it recorded, a saved report shows "Recorded on" with the recorded and the current total and names the allocation rule or segment that changed, so finance can book the difference. See Edit or delete a segment and Recorded months.
Check the result
- On Segments, the Coverage card's Unallocated share of the last whole month is one you can explain, and Shared pools lists each cost centre's share.
- The Rules card lists a rule for each cost centre and for each shared pool, each Active.
- Each cost centre's report is filtered to its segment and reads in the currency finance books.
Keep it true
- New resources arrive untagged, and their cost lands in Unallocated. Costfluent recommends checking the Coverage card before each month's charges, and adding a rule where it grows; see Raise tag coverage and keep it up.
- Review the keys for shared cost at the cadence your policy sets, and change the split, not the reports.
From your assistant
With the Costfluent MCP server connected, your assistant answers these with query_costs.
Code
Code
Related
- Segments and allocation rules and Allocation model
- Tags and tag coverage and Virtual tags
- Chargeback policy template, to agree the cost basis, the keys and the cut-off with finance
- Measure cost per customer or per unit