Use cost categories
You can use cost categories in both perspectives and dashboards. When you create or modify a cost category, the changes are immediately reflected in perspectives, including historical data. However, in Dashboards, it may take up to 24 hours for the changes to be reflected on the current month or the last three days' data, depending on the cloud service provider.
Use cost categories in perspectives
The cost categories can be used in perspectives in the following ways.
Group By
Consider the following scenario where the Perspective rule has a cost category:
Cost category | Cost bucket | Shared Cost buckets |
---|---|---|
CC1 |
|
|
In this setup, if you group the Perspective by AWS > Account
, the cost of B1 and SB1 are displayed against the respective AWS accounts. However, the total cost of the cost bucket B2, and the shared cost bucket SB2 in GCP are displayed under No Account.
Consider the following scenario with two cost categories:
Cost category | Cost bucket | Shared cost buckets |
---|---|---|
CC1 |
|
|
CC2 |
|
|
If you have added CC1 (CB1, CB2, and Unattributed) in your Perspective rule and grouped by the same cost category, then the Perspective displays the following costs:
Name | Total Cost |
---|---|
CB1 | $30 + shared cost (SB1 and SB2) |
CB2 | $20 + shared cost (SB1 and SB2) |
Unattributed | The sum of all the other costs |
If you have added CC1 (CB1, CB2, and Unattributed) in your Perspective rule and grouped by the cost category CC2, then the Perspective displays the following costs:
Name | Total Cost |
---|---|
CB3 | $10 + shared cost (SB3 and SB4) |
CB4 | $20 + shared cost (SB3 and SB4) |
No CC2 | $20 + shared cost (SB1 and SB2) |
Unattributed | The sum of all the other cost |
Here, the No CC2 cost includes the costs that are not in CC2 but in CC1.
Filter
Select one or more cost categories as a filter.
You can use Group By and filters together. For example, your filter could select Manufacturing from the Department Cost Category, and then you can select GCP: SKUs in Group By.
When including multiple cost categories in your filter, it is important to check for any shared cost buckets between them. If you have shared cost buckets with overlapping rules in both cost categories, the cost of these buckets is counted twice, resulting in duplication of costs. Therefore, it is recommended not to have multiple cost category filter in a Perspective. However, if you must add a multiple cost category filter, avoid overlapping shared cost buckets between cost categories to prevent any potential errors.
Perspective rule
When creating a Perspective, you can define a rule using cost categories.
The benefit of using a cost category as a rule in a Perspective is that the cost category definition is separated from all the Perspectives that use it.
If you modify the definition of a cost category, any Perspective that uses the cost category automatically displays the changes.
For example, if a new product is added to the Manufacturing department, you can simply update the Manufacturing bucket in the Departments Cost Category, and that change is automatically reflected in all the Perspectives that use that Cost Category.
Consider the following scenario where the Perspective rule has two cost categories:
Cost category | Cost bucket | Shared buckets |
---|---|---|
CC1 |
|
|
CC2 |
|
|
In this scenario, if you choose to include both cost categories in your Perspective rule, the total cost of the cost buckets in both categories is counted only once. However, the cost of the shared buckets between the two categories is duplicated because of overlapping rules. Therefore, it is recommended to avoid using multiple cost categories with overlapping shared cost buckets in your perspective rule to prevent any potential errors.
Use cost categories in dashboards
You can visualize cost categories in your custom dashboard. To learn how to create a custom dashboard, go to Create Dashboards.
Cost Categories is available in the Unified explore on the Dashboards page.
- When you create a new cost category or make changes to an existing one, it may take up to 24 hours for the changes to be reflected in the dashboard data.
- If you are using AWS or Azure, cost categories update the data fetched from the current month onwards through CUR and Billing Exports. It is not applied to historical data. On the other hand, if you are using GCP, cost categories update the data that is equal to or more recent than the last three days' data.
- When you delete a cost category, the deleted category remains visible in the dashboard until the end of the month, as it is applied to data for the ongoing month. For instance, if you delete a cost category on January 24th, the category is visible in the dashboard until the end of January 31st.
- Shared cost buckets are ignored when you add cost category context.
In AWS, you cannot use cost categories as a dimension in custom dashboards if you have selected any of the following fields in the explore:
- Resource ID
- Line Item Type
- Market Type
- Amortised Cost
- Net Amortised Cost