Skip to content

Test your gross margin definition

Calculates gross margin twice, once the way you report it and once from the raw accounts, and names the accounts behind every quarter where the two disagree.

Workflow · Variance Analysis | Role · FP&A Analyst | Intermediate | Updated Nov 10, 2026
The prompt

Copy and customize

Runs through the AI Connector. Returns an Excel report on DR.GET formulas that re-runs the check with every close.

prompt.txt
Using my authorized FinanceOS data, build an Excel report with live DR.GET formulas that calculates gross margin for the last four quarters two ways, so I can see whether our defined metric still agrees with the accounts underneath it.

Build it to refresh, not as a one-off:
- Method A: pull our defined gross margin metric for each of the last four quarters with DR.GET, in the pattern =DR.GET(Value, "[Scenario]", "Actuals", "[Reporting Date]", C$4), using the dimension names in my model, with the period row driven by cells rather than hardcoded dates.
- Method B: pull the underlying revenue and cost of revenue accounts for the same quarters, the same way, and calculate margin from them as plain Excel formulas. Decide for yourself which accounts belong in each, and list your reasoning for every account you include or exclude above the table.
- Put the two methods side by side with the difference in currency and in percentage points of margin.

Then tell me:

1. For every quarter where the two methods disagree, which specific accounts explain the gap and how much each one contributes. If the same account explains it in every quarter, say so: that is a definition issue rather than a one-off.

2. Which of the two treatments you would defend for each disagreement, and why. Where it is a judgment call rather than an error, say that instead of picking one.

3. Anything you could not resolve from the data alone, and what someone would need to confirm.

Note: If the two methods agree in every quarter, say so plainly and stop. Do not manufacture a difference.
Open in
We’ll copy the selected version and open the chat.
When to use

When to reach for this prompt

Run it quarterly or after changes to your chart of accounts. New accounts, reclassifications, or outdated mappings can quietly change what goes into gross margin. Comparing four quarters helps distinguish a one-off discrepancy from a recurring issue. Use it to identify potential problems before they make their way into financial reporting.
Limitations · Worth knowing

This prompt has real limitations you should understand.

Method B is a second opinion, not a second source of truth.

Method B works from the underlying accounts without relying on your existing metric definition. That's what makes it useful for spotting potential mapping issues, but it also means it can misclassify accounts based on assumptions that don't apply to your company. A disagreement is a reason to investigate, not proof of an error.

Both methods are limited by the data available. If manual adjustments or reclassifications made at close aren't included, the comparison may miss them, and both results could still be inaccurate.

Agreement doesn't guarantee accuracy, either. If your metric definition and account mappings share the same underlying mistake, both methods may produce the same result, even if the number is wrong.

Prerequisites

What your data needs to look like

  • The gross margin definition, with its formula, accounts and filters
  • Account-level revenue and cost of revenue data for the same quarters
  • At least four closed quarters, so a recurring gap can be told apart from a one-off
See it run on real data

See how FinanceOS handles this prompt on real financial data.

Book a 20-minute walkthrough. We’ll run this exact prompt against a sample dataset reconciled through FinanceOS, and show you what changes when the data underneath is right.

Book a walkthrough
Discussion

Start the discussion

Sign in to join the discussion

Reading stays open to everyone. Posting takes a moment — sign in with LinkedIn or a one-time email link.

Continue with LinkedIn Sign in with email

Be in the know

Join the FinanceOS Hub.

We add new webinars, prompts, and live events regularly. Leave your email and we'll reach out when something relevant drops.