From CSV exports to SQL dashboards: business reporting without a data warehouse
When spreadsheets stop working, how to import CSV and Excel exports into typed tables, keep them current with syncs, check data quality, write SQL queries and share dashboards, without building a full data warehouse.
Summary
- Spreadsheets break down when several people need the same numbers, when the same export is pasted in every week, or when one file has to combine data from several systems. That is the point to move the data into typed tables.
- You do not need a full data warehouse for that. Import the exports into tables with fixed column types and a key, replace manual exports with scheduled syncs, add data quality rules and calculate the figures with saved SQL queries.
- Build dashboards on top of those saved queries, not on copies of the data, and share them read-only. Most problems come from ambiguous dates and number formats, missing keys and figures that nobody owns.
Most business reporting starts in a spreadsheet. Someone exports invoices from the accounting tool, orders from the shop and contacts from the CRM, pastes them into a workbook, adds a few formulas and a chart, and sends the file around every Monday. That works for a while. Then a second person builds their own version, the formulas drift apart, an export arrives with a different column order, and the meeting starts with a discussion about which revenue figure is correct.
The usual answer is "we need a data warehouse". For a large data team, that may be right. For a small or mid-sized company that wants a reliable revenue overview, a list of overdue invoices and a few key figures for management, a full warehouse project with pipelines, modelling layers and a BI tool is often more than the problem requires. This guide shows the middle path: from CSV to dashboard with typed tables, scheduled syncs, quality checks and plain SQL.
When spreadsheets break down
Spreadsheets are excellent for exploring data, quick calculations and one-off analyses. They become a risk when they turn into the system of record for recurring figures. Typical warning signs:
- Several versions of the same number. Revenue is calculated in more than one file, and the values do not match.
- Copy and paste as a process. The same export is pasted into the same sheet every week, and the report depends on one person remembering to do it.
- Lookups across systems. Invoices from one tool are matched with customers from another via lookup formulas that break when a row is inserted.
- Silent type errors. Amounts are stored as text, dates are interpreted differently on different computers, and a sum quietly ignores half the values.
- No history and no owner. Nobody knows who changed a formula, when the data was last refreshed or who answers questions about it.
If two or more of these apply, the data deserves a proper home. That home can be much simpler than a data warehouse.
What you need instead of a full data warehouse
A data warehouse is a central database built for analysis, usually fed by pipelines that extract, load and transform data from many sources. For business reporting in a smaller company, four building blocks cover most of what matters:
- Typed tables: one table per data set (invoices, orders, customers), with fixed column types and a key that identifies each record.
- Reliable loading: file imports for one-off or monthly data, scheduled syncs for everything that changes often.
- Quality checks: rules that run on a schedule and say when data is missing, duplicated, out of range or out of date.
- Saved SQL queries and dashboards: the calculation lives in one place, and every chart reads from it.
Spreadsheet vs. data tables: a comparison
| Aspect | Spreadsheet | Typed data tables with SQL |
|---|---|---|
| Data types | Per cell; text and numbers can be mixed in one column | Fixed per column (text, number, date, ...); values are converted on load |
| Updating data | Paste a new export by hand | Import with upsert by key, or a scheduled sync |
| Duplicates | Easy to create by pasting twice | Prevented by a key column |
| Combining sources | Lookup formulas across sheets | SQL joins across tables |
| Calculation | Formulas spread across cells, often copied | One saved query, reused everywhere |
| Quality control | Manual checks, if any | Rules that run on a schedule and raise alerts |
| Sharing | Files sent by email, many copies | A dashboard or read-only link on the same data |
| Best for | Exploration, one-off analysis, planning | Recurring figures several people rely on |
Step 1: Import CSV and Excel files into tables
Almost every system can export a file, so a file import is the fastest way to start. The hard part is not reading the file, it is getting the types right. Watch out for:
- Separators. CSV files from German-language systems often use a semicolon, because the comma is the decimal sign. A file read with the wrong separator becomes one long column.
- Number formats.
1.234,56and1,234.56are the same amount in German and English notation. Currency and percent signs such as99,90 €should become numbers, not text. - Dates. ISO dates such as
2026-11-17are unambiguous.17.11.2026or11/17/2026are not. Export ISO dates wherever the source allows it. - Header rows and extras. One header row, one record per row, no totals at the bottom, no merged cells, no notes above the table.
- Old Excel formats. Many tools only read
.xlsx; save legacy.xlsworkbooks as .xlsx or CSV first.
Before you import, remove columns you do not need. That makes the table easier to use and, for exports with names, email addresses or bank details, is the simplest form of data minimisation under GDPR.
Step 2: Design the table and its data types
A table that will feed dashboards for years deserves five minutes of design:
- Column types. Amounts as numbers, counts as integers, flags as yes/no, dates as date or date-time. A wrong type is much harder to fix later than at the first import.
- Key column. The field that identifies a record: invoice number, order ID, customer ID or email. With a key, the next load updates existing rows instead of adding duplicates.
- Write mode. Append for data that never changes after it is created, upsert for records whose status changes (invoices, orders, deals), replace when the source always delivers the complete data set.
- Ownership and retention. An owner who answers questions, a description of what the table contains, and a retention period if old rows should not be kept forever. Mark columns that hold personal data.
Step 3: Replace manual exports with syncs
A file import is perfect for a first load and for systems without an interface. If you import the same export every day, a scheduled sync is better. It does not forget, it writes the same fields into the same table every time, and a failed run shows up with an error message instead of leaving an old file in a folder.
Three points decide whether a sync is reliable:
- Upsert by key. When the same invoice arrives again with a new status, it replaces the old row.
- Pagination. APIs return data in pages. A sync must follow them to the last page, or the table silently holds only the first few hundred records. After the first run, compare the row count with the source system.
- Incremental loading. Where the source supports a filter such as "changed since", later runs only load what changed. A small overlap between runs is harmless with upsert; a gap is not.
Step 4: Add data quality checks
A dashboard is only as good as the data behind it, and bad data rarely announces itself. Turn your expectations into rules that run on a schedule:
- Completeness: the customer ID and amount of every invoice are filled.
- Uniqueness: invoice numbers appear only once.
- Range: amounts are not negative, discounts stay between 0 and 100.
- Pattern: email addresses or IBANs match the expected format.
- Freshness: the newest row is not older than 24 hours. This catches broken syncs before anyone looks at a stale chart.
- Row count: the table holds roughly as many rows as expected.
Anything more specific can be written as a query that returns the rows that violate a rule. Zero rows means everything is fine:
-- Invoices without a known customer
SELECT invoice_number, customer_id
FROM `invoices` FINAL
WHERE customer_id NOT IN (SELECT customer_id FROM `customers` FINAL)
A failing rule should notify the owner of the table, not just change a colour on a page nobody opens.
Step 5: Write the SQL queries
The queries behind a business dashboard are usually simple: filter, group, sum and join. The examples below use ClickHouse SQL, the dialect of the SQL editor in Obseria Data. FINAL after a table name returns only the latest version of each row in tables that are updated by key.
Revenue per month
SELECT toStartOfMonth(paid_at) AS month,
round(sum(amount), 2) AS revenue,
count() AS invoices
FROM `invoices` FINAL
WHERE paid_at >= toStartOfYear(now())
GROUP BY month
ORDER BY month
Revenue per customer, joining two tables
SELECT c.name AS customer,
round(sum(i.amount), 2) AS revenue
FROM (SELECT * FROM `invoices` FINAL) AS i
JOIN (SELECT * FROM `customers` FINAL) AS c
ON c.customer_id = i.customer_id
WHERE i.paid_at >= toStartOfMonth(now())
GROUP BY customer
ORDER BY revenue DESC
LIMIT 20
Overdue invoices
SELECT invoice_number, customer_id, amount, due_date,
dateDiff('day', due_date, today()) AS days_overdue
FROM `invoices` FINAL
WHERE NOT paid AND due_date < today()
ORDER BY days_overdue DESC
A few habits keep queries trustworthy: always set a LIMIT while exploring, group time series with date functions such as toStartOfMonth or toStartOfWeek, give every saved query a name and a description that says what it calculates, and agree on definitions ("revenue" means paid invoices, net, by payment date) before building charts.
Step 6: Build the dashboard
A good business dashboard answers a small number of questions at a glance. Some practical rules:
- Start from saved queries. Each tile reads from a named query, so the same figure is calculated the same way everywhere.
- Choose the simplest view. A number for a key figure, a line chart for a trend over time, a bar chart for comparing categories, a table for lists such as overdue invoices.
- Put the most important figures first. Three to six key figures at the top, details below.
- Show the time range. Every figure needs a period. "Revenue" without "this month" invites misunderstandings.
- Refresh on a schedule that matches how often the data changes. A dashboard that refreshes every minute on data synced nightly creates false confidence.
The dashboard glossary entry covers the general concept.
Step 7: Share without creating copies
The point of the exercise is one version of the numbers. Share the dashboard, not exported files. For people without an account, such as an advisor or a partner, a read-only link is enough. Treat such a link like a password: anyone who has it can see the figures. Switch it off when it is no longer needed. When someone needs raw data, export a filtered list as CSV from the table instead of handing over the whole data set.
Recurring reports can be automated as well, for example a weekly email with the result of a query. Our guide to approval workflow automation shows how workflows like this are designed.
Common pitfalls
- No key column. Every import adds the same rows again, and sums double without anyone noticing.
- Calculations in the dashboard instead of the query. When each tile has its own logic, the dashboard drifts just like the spreadsheets did.
- No owner. A table nobody owns is the next shadow spreadsheet.
- Personal data everywhere. Full CRM exports with every column, kept forever, are a GDPR problem waiting to happen. Import only what you need, mark personal data and set a retention period.
Checklist: from CSV export to SQL dashboard
- The recurring figures and their exact definitions are written down.
- Each data set has its own table with fixed column types.
- Each table has a key column, a write mode, an owner and a description.
- Exports use a header row, ISO dates and unformatted numbers where possible.
- Columns with personal data are marked, unneeded columns are removed, and a retention period is set.
- Exports that are repeated daily or weekly are replaced by scheduled syncs.
- After the first sync, the row count was compared with the source system.
- Quality rules check completeness, uniqueness, ranges and freshness, and failing rules notify someone.
- Every dashboard tile reads from a named, saved query.
- Dashboards are shared by link or account, not as file copies; share links are reviewed and switched off when no longer needed.
How Obseria helps
Obseria Data is the business data area of the Obseria platform. It covers the path described above, from the first file to a shared dashboard:
- CSV and Excel import: CSV, TSV and text files, JSON and Excel workbooks (.xlsx and .xlsm), up to 25 MB and 200,000 rows per file. Separators (comma, semicolon, tab, pipe), numbers in German or English notation, yes/no values and ISO dates are detected, and a preview shows the columns with their types before anything is written. Legacy .xls files have to be saved as .xlsx or CSV first; other date formats are imported as text.
- Data tables: six column types (text, number, integer, yes/no, date, date & time), a key per table, append, upsert or replace on every write, labels, personal-data flags, owner, description and an optional retention period. The personal-data flag is a marker for your team; it does not mask data.
- Data syncs: scheduled loads from connected systems with ready-made packages for systems such as Stripe, Shopify, HubSpot, lexoffice or Jira, any GET endpoint with automatic pagination, or SQL on PostgreSQL and MySQL. Schedules run in UTC, from every 15 minutes to monthly, and failed runs show their error message.
- Quality rules: checks per table for filled columns, unique values, value ranges, patterns, freshness, row counts or custom SQL that must return no rows, run every 15 minutes up to weekly. A failing rule raises an event that a workflow can turn into an email, Slack or Teams message.
- Data explorer: filters, facets, column statistics, a quick group-by, editing a single value in tables with a key, and filtered CSV export.
- SQL editor: read-only ClickHouse SQL across all tables of your organization, with saved queries, bar, line or number charts, CSV export and "save as table". Each query has a 30-second limit and returns up to 5,000 rows.
- Questions in plain language: an AI language model turns a question into SQL, a result and a chart, and the SQL is always shown. AI usage is billed through AI credits.
- Dashboards: tiles built by picking table, value, grouping and filters, by writing SQL or from a saved query, shown as number, bar chart, line chart or table, with auto-refresh, drill-down and a read-only share link that works without sign-in and keeps the SQL hidden.
- Workflows: tables connect to Obseria Workflow. Steps read and write tables, a query can become a scheduled email report with CSV, and other systems deliver rows through a webhook workflow that writes to a table.
Obseria Data is billed by rows written and data stored: $0.50 per million rows written, with 1 million rows included per month, and $0.50 per GB-month stored, with 1 GB included. Queries, dashboards and quality rules are included. Details are on the pricing page. To try it with your own exports, start a free trial.
Frequently asked questions about CSV dashboards
Do I need a data warehouse to build business dashboards?
Not necessarily. For recurring figures from a handful of systems, typed tables, scheduled syncs, quality checks and saved SQL queries are often enough. A full warehouse becomes worth it when many sources, complex transformations and a dedicated data team come together.
How do I import a CSV file into SQL tables without errors?
Export with one header row and one record per row, use ISO dates and unformatted numbers, check the detected column types in a preview, and set a key column so the next import updates rows instead of duplicating them.
Should I import files or set up a sync?
Files suit first loads, systems without an API and data that changes rarely. If you import the same export every day or every week, a scheduled sync is more reliable.
Can I turn an Excel workbook into a dashboard directly?
Yes, if each sheet is a clean table with a header row. Import the sheet into a table, write a saved query for each figure and build the dashboard on those queries, rather than on formulas in the workbook.
How do I know the data on a dashboard is current?
Add a freshness rule that fails when the newest row is older than expected, and let failing rules notify the table owner. Also show the time range on every tile.
Is it safe to share a dashboard by link?
A read-only link is convenient for people without an account, but anyone who has it can see the figures. Share it only with people who should see the data, and switch it off when it is no longer needed.