microsoft / microsoft/finops-toolkit
Add x_TotalSavingsInUsd to the data model
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 603
- Forks
- 248
- Avg merge
- 7d 11h
- Merged PRs (30d)
- 11
Description
⚠️ Problem
We currently have the column x_TotalSavings but that is in the default currency of the customer
🛠️ Solution
We should add this column.
x_TotalSavingsInUsd = Costs[x_ListCostInUsd] - Costs[x_EffectiveCostInUsd]
ℹ️ Additional context
This is a workaround. I think this column should be created at KQL level.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the KQL-level data model or query that defines x_TotalSavings and inspect how Costs[x_ListCostInUsd] and Costs[x_EffectiveCostInUsd] are exposed. Add the x_TotalSavingsInUsd field using the stated formula, then verify that it reports savings in USD rather than the customer's default currency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100