Analyze Margin Variance

What You Will Learn

You will learn how to use Gemini to identify drivers of gross margin, contribution margin, and EBITDA change using a P&L dataset.

Required Dataset

Use the FinanceCo_PL_Dataset.

Use these tabs:

Monthly_PL

Budget

Create three new tabs:

Margin_Variance_Practice

Margin_Variance_Summary

Margin_Check

Before You Start

Copy Monthly_PL into Margin_Variance_Practice. Make sure it includes Month, Business Unit, Revenue, Cost of Goods Sold, Gross Profit, Sales & Marketing Expense, R&D Expense, G&A Expense, EBITDA, and EBITDA Margin %.

Define two comparison periods:

Base Period

Current Period

Step-by-Step Instructions

Step 1. Ask Gemini to structure the analysis

Use this prompt:

Act as a finance and profitability consultant.

Use the Margin_Variance_Practice tab.

Objective: Recommend a margin variance analysis.

Focus on gross margin, contribution margin, operating expenses, EBITDA, EBITDA margin, business unit mix, and data-quality risks.

Return the key analyses, formulas needed, summary tables to create, and caveats.

Step 2. Add calculated fields

Add these fields to Margin_Variance_Practice:

Analysis Period

Gross Margin %

Contribution Profit

Contribution Margin %

Operating Expense

Operating Expense % of Revenue

EBITDA Margin % Recalc

Review Needed

Use formulas such as:

=IFERROR(Gross Profit/Revenue,””)

=Gross Profit-Sales & Marketing Expense

=Sales & Marketing Expense+R&D Expense+G&A Expense

=IFERROR(EBITDA/Revenue,””)

Step 3. Create a variance summary

In Margin_Variance_Summary, summarize base and current period values for:

Revenue

Gross Profit

Gross Margin %

Contribution Profit

Contribution Margin %

Sales & Marketing Expense

R&D Expense

G&A Expense

Operating Expense

EBITDA

EBITDA Margin %

Use SUMIFS for dollar values. Calculate percentages from totals, not by averaging row-level percentages.

Step 4. Ask Gemini to interpret the variance

Use this prompt:

Interpret the Margin_Variance_Summary tab.

Identify whether margin change appears driven by revenue, gross margin rate, operating expenses, business mix, or productivity.

Separate observed facts from possible explanations. Do not claim root cause without evidence.

Expected Result

You should have a margin variance view showing what changed between periods and which drivers may explain the movement.

Check Your Work

Confirm that margin percentages are calculated from totals, expense increases reduce EBITDA, base and current periods are clearly defined, and Gemini’s interpretation is supported by the numbers.

Optional Extension

Ask Gemini:

Create three executive-ready margin variance headlines with supporting evidence, caveats, and recommended follow-up analysis.

How to get started

1

arrow-down-blue

Tell us about your project

2

arrow-down-blue

Interview candidates

(We’ll provide bios within 48 hours on average)

3

Select your consultant and start work

Find a Consultant

or email us at: [email protected]