microsoft / microsoft/finops-toolkit

Add x_TotalSavingsInUsd to the data model

Open
#2,076 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Skill: KQL Tool: FinOps hubs Tool: FOCUS Type: Feature 💎
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.