Services · Data Engineering

SQL and data engineering

Pipelines, warehouses and governed views that pull your agency’s systems into one dataset every report reads from, documented and handed over.

Demo of a nightly data load on synthetic data: four agency exports, a finance ERP CSV of 31,204 rows, a payroll workbook of 9,880 rows, a permits reporting view of 6,415 rows and a program case workbook of 817 rows, go through staging where 48,316 rows are read, 212 duplicates removed and 37 rows rejected to an exceptions report, leaving 48,067 rows loaded into a governed star schema that feeds a Power BI report, a state submission file and the exceptions report
Demo: a sample nightly load. Synthetic data, not a client system.

What you get

One source of truth

Every report reads the same definitions.

Loads that run on a schedule

Logged and retried, with an alert when one fails.

Code and a data dictionary

The pipeline is yours when the work ends.

A messy export, and the report built from it

Sample raw export in a spreadsheet, labelled synthetic data: 1,862 rows of program visits where the date column mixes four formats, one site is spelled several ways, the same visit appears twice and the column headers repeat partway down the file
Before: a sample raw export. Synthetic data.
Demo report built from the same synthetic export: 1,846 visits after 16 duplicate rows were removed, 589 clients served, 3.1 visits per client, a 46 percent follow-up share, a monthly visits line from July to December 2025, visits by site for four sites and visits by service type
After: the report built from that export. Synthetic data, not a client report.

What happens to your data

Four-step diagram. 1, Your export: the files your systems already produce, such as CSV, Excel or a reporting view. 2, The model: measures defined once and written down, so every page counts the same way. 3, The report: pages built around your decisions, refreshed on a schedule. 4, Handoff and training: the files, the documentation and a working session with your staff.
Diagram of the four steps.

SQL and data pipelines for agency reporting

The foundation under reliable analytics: pipelines that run, warehouses that scale, and one governed source of truth. When a county, a city or a state program has the same number in four systems and four different answers, this is the layer that fixes it, and no dashboard built on top will fix it instead.

Blue Peak Data Consulting builds that layer on SQL Server, Azure, Azure Data Factory, Amazon Redshift and Oracle, or against the flat exports your software vendor will actually give you. Everything is documented, and the pipeline is yours when the work ends.

Data infrastructure that holds up

Four pieces of work. A first project is usually one or two of them rather than all four.

ETL and ELT development

Ingestion, transformation and scheduled refresh against warehouse, cloud and file sources, built to survive the late, malformed and half empty files your systems actually produce rather than the clean ones a demo assumes.

Warehouse and model design

Star schemas, source of truth views and staged layers designed around the reports you have to produce, not around a textbook diagram. Small enough to hold in your head, which is what makes it maintainable after we leave.

Query optimization

Common table expressions, window functions, indexing and refactoring that turn a job somebody starts before lunch into one that finishes while they read the email about it.

Data cleaning and integration

Deduplication logic, validation rules and reconciliation across systems that have never agreed with each other, with the exceptions surfaced in a report rather than silently dropped.

Sample star schema on synthetic data for budget to actual reporting: a fact_spend table of 31,150 rows joined by keys to five dimensions, dim_date with 3,652 rows, dim_department with 14, dim_fund with 9, dim_account with 212 and dim_project with 36, plus a governed view, vw_budget_to_actual, that every report reads
Sample star schema, synthetic data. One fact table, five dimensions and the view every report reads.

The data problems underneath your reporting problems

Five systems, five versions of the truthFinance says one number, the program office says another, and the report going to the board says a third. We consolidate the sources into governed views so every downstream report pulls from one definition.
The nightly load breaks most weeksFragile manual steps that live in one person’s calendar get rebuilt as monitored, documented, scheduled pipelines with failure alerting, so a break is a message rather than a discovery.
Queries crawl as the data growsModeling and indexing fixes that scale with your data instead of fighting it. The same query on the same server can be a very different query.
One person knows how it worksEverything we build is documented and trained on. When that person retires, transfers or takes a month off, the reporting does not go with them.

SQL and data engineering for public agencies

Public sector data is rarely in one place and rarely under one owner. Finance runs an ERP, the program office runs a case system, permits run somewhere else, and the state wants a file in a format none of them produce. Here is what we build for that.

  • One dataset behind the council packet. Finance, payroll, permitting and program exports pulled into one governed model on a schedule, so budget to actual by department, headcount and capital project status all come from the same load and reconcile to each other before anyone opens the report.
  • Reconciling what you report with what you count. State and federal submission files loaded alongside your local counts, with a difference report that shows which records fell out and why. This is the work that stops an amended submission from becoming an annual event.
  • Grant and subrecipient rollups. Twelve spreadsheets from twelve subrecipients, each with its own column order, validated on load and rolled up to award level. Spend against budget, burn rate and performance measures land in one table your grants manager can actually check.
  • History that survives a system migration. When a records or permitting system gets replaced, the old data usually stops being readable long before anyone stops needing it. We stage the retired system into a queryable archive and map its codes to the new ones, so a five year trend line still runs across the seam.
  • Public health and vital statistics feeds. Scheduled loads of state extracts, deduplication across name and date variants, standardized geography down to ZIP code or census tract, and case counts that hold still once published.
  • The nightly job that used to be a person. The download, the paste, the pivot and the email become one scheduled pipeline with logging, retry and an alert when it fails. The person gets the first week of the month back.

Most of this work starts from exports rather than direct database access, because that is what a public agency can approve quickly. A scheduled CSV, a reporting view your vendor already publishes, or a workbook your analyst already maintains is enough to build a real pipeline against, and it keeps the security conversation short.

Blue Peak grant command center demo on synthetic data: tiles for total awarded, spent year to date, projected year end and reports due, a spend against budget line chart, spend by program bars and a table of compliance deadlines
Working demo, synthetic data. Open the grant command center
Blue Peak public safety demo: a crime density heat map of Olathe, Kansas, January 2021 to August 2026, counted per 300 meter hexagon with City Council ward outlines, built from records the Olathe Police Department publishes
Demo on Olathe Police Department published records. Open the public safety demo

Systems we work with

Databases and warehouses

  • Microsoft SQL Server
  • Azure and Azure Data Factory
  • Amazon Redshift
  • Oracle SQL, including pattern extraction from free text fields with regular expressions
  • Staged and layered warehouse design on any of the above

Microsoft 365 and the Power Platform

  • Power BI semantic models and DAX as the reporting layer
  • Power Query for transformation close to the report
  • SharePoint and Dataverse as governed sources and destinations
  • Power Automate for scheduled movement and alerting
  • Tableau on SQL Server, where an agency already reports there

Files and line of business exports

  • Excel workbooks, including the ones with merged headers
  • CSV and fixed width scheduled exports
  • Reporting views your software vendor already publishes
  • Salesforce and other CRM extracts
  • State submission and reporting files

We will not claim familiarity with a records system, ERP or permitting platform we have not worked in. What we do instead is read your export, ask about every ambiguous field, and write down what each one means, so the next person does not have to ask. On a first project we usually do not need direct access to the source system at all.

SQL ServerAzureAzure Data FactoryAmazon RedshiftOracle SQLPower QueryPower BISharePointDataverseExcelCSV

How the work runs

Four phases, the same on every Blue Peak project (how we work). Each phase is its own written scope, its own acceptance and its own invoice, which is what makes it easy to fit inside a small purchase.

01

Discovery

We inventory the sources, read a real extract from each one, and list the fields with you. Out of that comes a written scope, a written quote and an honest read on which of your reporting problems are actually data problems. Sometimes the answer is that one query fixes it and no pipeline is needed.

02

Solution design

The target model, the load schedule, the keys, the validation rules and the definition of every derived field get written down and reviewed with you before anything is built. This is where the disagreements between departments get settled on paper, which is much cheaper than settling them in production.

03

Implementation

Pipelines get built against your real data, run in parallel with whatever they replace, and compared row by row until the numbers match. Logging, retry and failure alerting are part of the build, not a later phase.

04

Optimization and handoff

Tuning after the first production runs, then you get the code, the schema documentation, the field level data dictionary and a working session with whoever will maintain it. The pipeline runs in your environment on your schedule. There is no hosted product to keep paying for and no code held back.

Who does the work

The senior consultant who scopes your pipeline is the one who writes it, with twelve years in production analytics, most of it in SQL Server, Azure and the Microsoft stack.

That consultant led reporting on a $30M multi jurisdictional federal initiative from 2019 to 2022, building Tableau reporting on SQL Server, integrating grantee data across jurisdictions, and producing grant compliance reporting that passed federal funder review. At a national telecom the same consultant unified a sales pipeline spanning six source systems into one environment on Azure Data Factory and SQL Server, wrote Oracle SQL that pulled structured codes out of unstructured free text in production, and built an analytics product line used by more than 100 people.

That record was earned before Blue Peak was formed, so we describe it as our principal’s experience rather than as the firm’s past performance, on purpose. What you get is the person who did that work, with no junior handoff.

6Source systems unified into one environment
100+People using an analytics product line our principal built
12Years in production analytics

Questions agencies ask

Do we need a data warehouse, or is that over engineering for us?

Often it is. A single agency with three sources and one monthly report usually needs a set of governed views and a scheduled load, not a warehouse program. The test is how many places a definition currently lives and how often the same extract gets rebuilt by hand. We will tell you in discovery if the smaller answer is the right one, because a warehouse nobody maintains is worse than the spreadsheets it replaced.

Our vendor will not give us direct database access. Can you still help?

Yes, and this is the normal case. A scheduled CSV export, a reporting view the vendor already publishes, or a workbook your analyst maintains is enough to build a real pipeline against. Starting from exports also keeps the security review short, since nothing new touches the source system.

What happens when a load fails at two in the morning?

Somebody gets a message, and the message says which step failed and what it was reading. Logging, retry and alerting are part of the build. The pipeline also fails loudly rather than quietly: a load that would publish half a month of data stops instead, so nobody reports on a partial file.

Can the work stay inside our own environment?

Yes. Pipelines are built and run in your tenant or your subscription, against your storage, under your identity and access rules. Nothing is copied to a Blue Peak server and nothing goes to an outside service for processing. Where data can be aggregated or stripped of identifiers before it moves, that is the version we would rather work with.

Who owns the pipeline afterward?

You do. Handover includes the SQL and pipeline definitions, the schema documentation, a field level data dictionary and a working session with whoever will maintain it. It runs on your schedule in your environment. If you never call us again, it keeps running.

Do you work with agencies in other states?

Yes. Blue Peak is based in Olathe, Kansas and works with agencies in any state. The build happens inside your environment, so distance changes nothing about the work. Blue Peak is a SAM.gov active small business, UEI PRPBEM9HEND3, CAGE 15CS5, registered under nine NAICS codes (541611 primary), and will complete whatever vendor registration your state or agency requires before an award.

More from Blue Peak

Analytics and reporting built for government work covers how Blue Peak contracts with public agencies, including UEI, CAGE and registered NAICS. Power BI dashboards for police departments shows what this foundation gets used for at a small agency, and the public safety demo is a working dashboard built on published city data you can check against the source. The other two service pages are Power BI consulting, for the reporting layer on top, and workflow automation and custom apps, for the manual steps around it.

Tell us about your reporting problem

Name the recurring report that costs your team the most time, and tell us roughly where the data comes from. The monthly reconciliation, the quarterly state file, the spreadsheet four departments email back and forth. One line is enough, plus a rough figure for how long it takes today.

You get an honest read back within one business day: what it would take, roughly what it would cost, and whether it is worth doing at all. If one query would fix it, we will say so.

SAM.gov active small business. UEI PRPBEM9HEND3, CAGE 15CS5. Based in Olathe, Kansas. Available to teams in any state.
Scroll to Top