STL Solar

Example
Code files
NameKindSizeUpdated
Power Query pack (M), API edition Code 19.6 KB Oct 19, 2026
Warehouse schema (schema dw) Schema or flowchart 19.5 KB Oct 16, 2026

Power Query pack (M), API edition

Code Download

The file holds nine queries. SolarProduction runs PVWatts v8 at a pinned coordinate. DW_Coefficients, DW_StateFactors, DW_Benchmark, DW_Portfolio and DW_YieldBenchmark read the five warehouse views as JSON over HTTPS from the API. OpexEstimate applies the fitted cost curve on the sheet, SiteGeocode runs the Census geocoder once to propose the coordinate a human pins, and ProductionSummary returns the one row the Overview formulas read. Each query degrades to an empty typed table or a Status sentence rather than an error.

STLSolar_PowerQuery_pack.m: 382 lines

Licensed CC BY-NC-ND 4.0: share with credit, no commercial use, no changes. The Project Shelf Team, Fall 2026.

Created by the course instructor as a worked example of the Final Project.