Back to Corrently in Excel
SheetXAI logo
Corrently logo
Corrently · Excel Guide

Pull the German Electricity Generation Mix From Corrently Into an Excel workbook

2026-05-14
5 min read

The Scenario

It's the third week of the quarter and your carbon dashboard is due Friday. You're a corporate sustainability analyst and the executive team wants a snapshot of Germany's current electricity generation mix — how much is wind, solar, gas, coal — broken out by source and percentage, dropped into the reporting workbook so the finance team can calculate the carbon intensity of your German operations.

There's no scheduled feed. Nobody set one up. The dashboard gets built manually every quarter, and this quarter it landed on your plate.

The bad version:

  • Open the Corrently API documentation, find the generation mix endpoint
  • Run the request, get back a JSON array with 12-plus source entries, decide which fields to extract and in what order
  • Paste the source names into column A and the percentages into column B, manually adjusting for the fact that JSON arrays don't come sorted the way your template expects

Twelve energy sources, manually transcribed. Then a stakeholder asks what the numbers looked like last quarter and you realize there's no record.

The Easy Way: One Prompt in SheetXAI

SheetXAI is an AI agent that lives inside your Excel workbook. It reads your workbook, calls the Corrently generation mix endpoint for the German national grid, and writes each energy source and its current percentage into your rows — no JSON parsing, no manual transcription.

Fetch the current German electricity generation mix from Corrently and write each energy source and its percentage share to rows starting at row 2, with source names in column A and percentages in column B

What You Get

  • Column A: energy source names (e.g., "wind_onshore", "solar", "natural_gas", "coal") for each entry in the Corrently generation mix response
  • Column B: current percentage share of total generation for each source
  • Rows sorted by source share descending so the dominant sources appear first
  • A timestamp written to cell E1 indicating when the data was pulled

What If the Data Is Not Quite Ready

You want the sources mapped to human-readable labels

The API returns internal identifiers. Your report uses "Onshore Wind" not "wind_onshore".

Fetch the current German electricity generation mix from Corrently, map the source identifiers to human-readable labels (e.g., "wind_onshore" → "Onshore Wind"), and write the labels to column A and percentages to column B sorted by share descending

You want to separate renewables from fossil sources

Your sustainability report uses a "renewable vs. fossil" split as the headline figure.

Fetch the German electricity generation mix from Corrently, write all sources and percentages to columns A and B, then add column C with "Renewable" or "Fossil" for each source, and write the total renewable share as a percentage to cell D2

You want to compare this snapshot to a baseline stored in the workbook

Column D already has the target renewable share per source from last quarter.

Fetch the current German generation mix from Corrently, write each source and current share to columns A and B, then calculate the difference from column D (last quarter baseline) and write it to column C, flagging any source that dropped more than 5 percentage points with "DECLINE" in column E

End-to-end: fetch, label, categorize, and summarize in one prompt

You need the full mix, human-readable labels, a renewable/fossil flag, and a headline percentage.

Fetch the current German electricity generation mix from Corrently, map source identifiers to readable names in column A, write percentages to column B, add a "Renewable" or "Fossil" tag in column C, calculate the total renewable share and write it to cell E2 with the label "Current Renewable Mix" in E1, and sort rows by percentage descending

One ask, the whole dashboard section done.

Try It

Get the 7-day free trial of SheetXAI and open your carbon reporting workbook, then ask it to pull the live German generation mix from Corrently and write the breakdown into your template. For related reads, see pulling green power forecasts and the Corrently integration overview.

Stop memorizing formulas.
Tell your spreadsheet what to do.

Join 4,000+ professionals saving hours every week with SheetXAI.

Learn more