Tech Stack: SQL (Window Functions) | Power BI | Sustainability Engineering
This analysis summarizes CO₂ emission trends over a 29-year period (1995–2024) to evaluate Thailand’s progress toward its 2065 Net Zero target (Ref: Thailand’s LT-LEDS). By benchmarking national data against regional peers—Indonesia and Vietnam—this work identifies the key factors and structural challenges involved in the transition to cleaner energy sources.
The primary goal is to examine the relationship between economic growth and environmental impact. The analysis focuses on Thailand’s Energy Mix and its long-term reliance on fossil fuels. By processing three decades of historical data, this study transforms statistical metrics into a clear overview of the country’s current energy trajectory and future outlook.
A structured pipeline ensures data integrity and a “Single Source of Truth”:
Workflow: [Data Source] → [SQL] → [Power BI] → [Strategic Roadmap]
Comparison of carbon intensity between regional peers to evaluate “Carbon Fairness” relative to population size.
Key Insight: Thailand maintains a consistently higher emission rate per person compared to Vietnam, highlighting a more carbon-intensive energy infrastructure.
An analysis of fuel source distribution over three decades, identifying the core dependencies within Thailand’s power sector.
Key Insight: Fossil fuels remain the dominant energy source, with a heavy reliance on Natural Gas. While Renewables show growth, the pace is currently insufficient to meet the aggressive 2065 Net Zero timeline.
A direct comparison between traditional energy reliance and the expansion of clean energy initiatives.
Key Insight: Despite increasing investment in solar and wind, the sheer scale of fossil fuel consumption continues to create a “Carbon Lock-in” effect (Ref: Environmental Economics Framework) that complicates the rapid transition.
This pillar examines the “Decoupling” effect—determining whether Thailand can grow its GDP without a proportional increase in CO₂ emissions.
Key Insight: While Thailand shows signs of relative decoupling, the correlation remains strong. Achieving absolute decoupling requires a more aggressive shift in industrial efficiency and low-carbon investment.
To prepare the dataset for visualization, Window Functions were utilized to calculate year-over-year (YoY) growth and regional rankings directly within the SQL layer.
/* Calculating Year-over-Year (YoY) Growth for CO2 Emissions using Window Functions (LAG) */
WITH CarbonData AS (
SELECT
country,
year,
co2,
-- Fetch previous year's CO2 value
LAG(co2) OVER (PARTITION BY country ORDER BY year) AS prev_year_co2
FROM co2_emission_1950_2024
WHERE country IN ('Thailand', 'Indonesia', 'Vietnam')
)
SELECT
country,
year,
co2,
-- Calculation: ((Current - Previous) / Previous) * 100
ROUND(((co2 - prev_year_co2) / NULLIF(prev_year_co2, 0)) * 100, 2) AS yoy_growth_percent
FROM CarbonData
WHERE year BETWEEN 1995 AND 2024;
Key Insight: Handling data logic at the SQL level ensures high performance in Power BI, allowing for seamless filtering across three decades of historical data.
Based on the data trends, three strategic pillars are essential for Thailand to bridge the gap toward Net Zero 2065:
| Strategy | Action Plan | Expected Impact |
|---|---|---|
| Grid Modernization | Implement Smart Grid & ESS (Energy Storage) | Reduce intermittency of Renewables |
| Industrial Efficiency | Deploy AI-driven energy monitoring systems | Absolute decoupling of GDP and Emissions |
| Carbon Market | Finalize Thailand’s Emission Trading System (ETS) | Accelerate low-carbon investment |
Thailand stands at a critical crossroads. While the transition to a low-carbon economy is underway, the data suggests that current efforts must be doubled to meet the 2065 Net Zero commitment. This analysis serves as both a progress report and a call to action for systemic change in our energy infrastructure.