Documentation
Welcome to Personalytics! This guide covers everything you need to know to analyze your local CSV and Parquet files using SQL queries and interactive visualizations.
Overview
Personalytics is a native macOS desktop application that runs SQL queries on your personal computer, over your local data files. It features:
- Bucket Browser — Browse and explore CSV/Parquet files in any folder
- SQL Query Engine — Powered by a fast OLAP engine
- Interactive Charts — KPI Card, Bar, Line, Area, Pie, Donut, Bubble, and US Map visualizations
- Dashboard Designer — Create multi-panel dashboards with filters
- Draft SQL — Describe what you want in plain English and get a query, generated entirely on your Mac (requirements)
- Export & Share — Save results as CSV, or export a dashboard as JSON and import it on another Mac (sharing dashboards)
- Sync — Pull CSV, Parquet and JSON files from SFTP, S3, Azure Blob or Google Cloud Storage into a local folder — and the basis for sharing curated data and ready-made dashboards across an organization (Sync)
- MCP Server — Give an AI assistant read-only access to your bucket, so you can ask about your data in plain language (MCP Server)
- Fully Offline — All data stays on your computer, no cloud required
The main Personalytics interface
First Launch
When you first open Personalytics, the app will:
- Check if the OLAP engine is installed
- If not found, automatically download and install it
- Display the main interface with the Query tab selected
Working Offline
Personalytics is designed to be used with no network at all. The query engine, the charts, the dashboards and the Draft SQL model all run on your Mac, so a flight, a train, a cabin, a dropped VPN or a cloud provider outage makes no difference to what you can do.
Only two things ever touch the network, and neither is needed to analyze data:
- The one-time engine install — on first launch the app downloads the OLAP engine if it isn’t already on your system. Once that’s done it is never downloaded again.
- The Sync tab — pulling files from SFTP, S3, Azure Blob or Google Cloud Storage obviously needs a connection. Once the files are in your local folder, querying them doesn’t.
Everything else — Bucket Browser, Query, Draft SQL, Saved Queries, Charts, Dashboards, CSV to Parquet, CSV export and the MCP server — works with the network off.
Before a long trip
- Launch the app once while connected, so the engine is installed.
- Run your Sync mappings to pull down the latest remote files (Sync).
- Check your bucket path points at a local folder, not a network mount or a cloud-storage folder that only downloads on demand.
- Open the dashboards you’ll want once, to confirm their queries resolve against the files you have.
Bucket Browser
The Bucket Browser lets you explore data files in a selected folder (your "bucket").
Bucket Browser showing files and schema
Setting the Bucket Path
- Click the folder icon in the Bucket Browser panel
- Select a folder containing your CSV or Parquet files
- The file tree will display all matching files
Viewing Schema
Click on any file in the Bucket Browser to view its schema (column names and data types) in the Schema panel on the right.
File Type Toggle
Use the CSV / Parquet toggle at the top to switch between viewing CSV files or Parquet files in your bucket.
- CSV mode: Shows all
.csvfiles in your bucket - Parquet mode: Shows all
.parquetfiles in your bucket
This toggle also affects the {path-to-files} variable in your queries. When set to CSV, queries using {path-to-files} will read CSV files; when set to Parquet, they will read Parquet files.
Query Tab
The Query Tab is where you write and execute SQL queries against your data files.
Query Tab showing SQL editor and results table
Writing Queries
Enter your SQL query in the text area. You can reference files using:
- {path-to-files} variable (recommended):
SELECT * FROM {path-to-files}— automatically uses your bucket path - Relative paths from your bucket:
SELECT * FROM 'data/sales.csv' - Wildcards for multiple files:
SELECT * FROM 'logs/*.csv' - Full paths:
SELECT * FROM '/Users/name/data.parquet'
Running Queries
- Click the Play button to execute the query
- Or press Cmd + Enter
Query Results
Results are displayed as a table by default. For aggregation queries, you can switch to different chart types using the dropdown menu.
Draft SQL (on-device AI)
Describe the result you want in plain English and Personalytics writes the SQL for you. The query appears in the editor for you to read and change — it is never run automatically.
The Draft SQL prompt box, with its wand button, sits above the SQL editor
Requirements
This feature uses Apple’s built-in on-device language model, which ships with macOS itself. Nothing is downloaded and no account or API key is needed, but the model is only present on recent Apple hardware:
| Requirement | Needed |
|---|---|
| macOS version | macOS 26 (Tahoe) or later |
| Processor | Apple Silicon (M1 or newer) |
| Apple Intelligence | Turned on in System Settings › Apple Intelligence & Siri |
Using It
- Select a folder in the Bucket Browser so Personalytics knows which files to read
- Type what you want in the prompt box, for example total fare by month for card payments
- Click the wand button below the box, or press Cmd + Enter
- Read the query that appears in the SQL editor, edit it if needed, then press the Play button to run it
A draft usually takes two to four seconds. The status line next to the wand button reports how long it took and whether anything needed adjusting.
What It Understands
Draft SQL handles single-step requests well:
- Totals and counts — how many records in 2026, what is the average trip distance
- Breakdowns — total fare by month, trips by payment type
- Filters — total fare by year for card payments from 2021 to 2026
- Ranges and buckets — total fare by range of the fare
- Row listings — show me 5 rows, the most recent 10 trips, the 20 longest trips
It is a small model running on your Mac, not a large cloud one. Multi-step requests such as the top 3 vendors by total fare, then their monthly trend are beyond it — ask for one thing at a time and combine the results yourself.
It Learns From Your Saved Queries
When you ask for something similar to a query you have already saved, Personalytics shows that query to the model as an example. Drafts then follow your own naming and conventions rather than generic ones, so the more queries you save, the better your drafts become. See Saved Queries.
Checks Before You See It
Every draft is validated before it reaches the editor:
- It must be a single read-only
SELECT. Anything that would write files or change state is rejected. - It is planned against your real files to confirm the columns exist and the SQL is valid.
- If it fails, Personalytics asks the model once more with the error, and corrects some mistakes automatically.
If it still cannot produce a valid query, you get the attempt plus the error message — usually a near miss you can fix in one edit.
Your Data Stays Put
The model runs on your Mac. Your prompt, your column names and sample values from your files are passed to it in memory and never leave the machine. Draft SQL works with Wi-Fi switched off, like the rest of Personalytics.
Saved Queries
Save frequently used queries for quick access. Saved queries are also used as examples by Draft SQL, so building up a library improves the queries it writes for you.
Saved Queries dropdown with rename and delete buttons
Saving a Query
- Write and run your query
- Click the Save icon (floppy disk)
- Enter a name for the query
- Click Save
Loading a Saved Query
- Click the Saved Queries dropdown
- Search or scroll to find your query
- Click to load it into the editor
Renaming a Query
- Select the query from the dropdown
- Click the pencil icon (Rename)
- Enter the new name
- Click Rename
The rename operation automatically updates all dashboards that reference the query.
Deleting a Query
- Select the query from the dropdown
- Click the trash icon (Delete)
Charts & Visualization
Personalytics supports multiple chart types for visualizing aggregated query results.
Bar Chart visualization
Pie and Donut Chart visualizations
| Chart Type | Best For | Required Columns |
|---|---|---|
| Table | Viewing raw data | Any |
| Paginated Table | Large result sets | Any |
| KPI Card | One metric, its total and month-over-month growth | Month + 1 numeric column, oldest first |
| Bar Chart | Comparing categories | Label + 1+ numeric columns |
| Line Chart | Trends over time | Label + 1+ numeric columns |
| Area Chart | Cumulative trends | Label + 1+ numeric columns |
| Pie Chart | Proportions | Label + 1 numeric column |
| Donut Chart | Proportions with total | Label + 1 numeric column |
| Bubble Chart | 3D comparisons | Label, X, Y, Size |
| US Map | Geographic data | State code + numeric columns |
Chart Tooltips
Hover over any chart element to see detailed values in a tooltip.
Dashboard Designer
Create interactive dashboards with multiple panels and filters.
Dashboard Designer with multiple panels
Creating a Dashboard
- Go to the Dashboards tab
- Click New Dashboard
- Enter a name for your dashboard
- Set the Path to Files for your data source
Adding Panels
- Click Add Row to create a new row
- Click Add Panel within a row
- Select a saved query from the dropdown
- Choose a chart type
- Adjust panel width using the slider
Dashboard Filters
Dashboard filters are dropdown controls that let users interactively filter data across all panels. When a filter is applied, every query in the dashboard that contains the filtered column will be updated.
Adding Filters (Edit Mode)
- Click the filter icon in the toolbar while editing
- Choose a column from your data to filter on
- The filter dropdown will appear in the filter bar
- Save the dashboard to persist the filter configuration
Using Filters (View Mode)
- Click on a filter dropdown in the filter bar
- Select one or more values to filter by
- All panels automatically refresh to show filtered data
- Clear the filter by deselecting values or clicking the X
Chart Slicing (Click-to-Filter)
Chart slicing allows you to click on any chart element (bar, pie slice, line point, etc.) to filter all other panels in the dashboard. This creates a powerful drill-down experience.
How It Works
- Click on a bar, pie slice, or data point in any chart
- The clicked element gets highlighted with a blue border
- All other panels (especially paginated tables) filter to show only matching records
- Click elsewhere or on the same element again to clear the filter
Automatic Column Detection
The app automatically detects filterable columns from your query's GROUP BY clause. For example:
SELECT category, SUM(amount) as total
FROM {path-to-files}
GROUP BY category
Clicking on a bar will filter other panels by category = 'clicked_value'.
Date-Based Slicing
Queries using date functions like DATE_TRUNC also support slicing:
SELECT DATE_TRUNC('month', order_date) as month, COUNT(*) as orders
FROM {path-to-files}
GROUP BY 1
Clicking on a month in the chart filters other panels to that specific month.
Range-Based Slicing
For CASE-based range groupings, use the $rangeFilters directive to define click behavior:
-- $rangeFilters(< 100::amount < 100;;100-500::amount >= 100 AND amount < 500;;500+::amount >= 500)
SELECT
CASE WHEN amount < 100 THEN '< 100'
WHEN amount < 500 THEN '100-500'
ELSE '500+' END as range,
COUNT(*) as count
FROM {path-to-files}
GROUP BY 1
Clicking "100-500" filters other panels to show records where amount >= 100 AND amount < 500.
Saving Dashboards
Click Save to save your dashboard. Changes are persisted locally.
Dashboard view with interactive filters
Sharing Dashboards (Export & Import)
A dashboard can be exported to a single JSON file and imported on another Mac. The file carries the dashboard itself — panels, layout and filters — together with a full copy of every saved query its panels use, so the person importing it does not have to rebuild the queries.
Exporting
- Go to the Dashboards tab and select the dashboard from the dropdown
- Click the export icon (the up arrow beside the dropdown)
- Choose where to save. The file is named after the dashboard, for example
Yellow_Taxi.json
The result is plain, readable JSON — you can open it in any editor to check what it contains before sending it on.
Importing
- On the other Mac, go to the Dashboards tab
- Click the import icon (the down arrow) and pick the JSON file — or several at once, with ⌘-click or shift-click
- When prompted with Select Data Folder, choose the folder holding that machine’s copy of the data files. One folder is asked for and applied to every dashboard in the selection
Importing several files is all-or-nothing per file, never per batch: each one is checked on its own, the good ones are imported, and a summary lists what went in and what did not, with the reason beside each failure. A single file that imports cleanly skips the summary and simply opens.
That second step is what makes a dashboard portable. Panel queries refer to their data as {path-to-files} rather than as a fixed path, so on import the dashboard is re-pointed at whichever folder you select. The two machines do not need matching folder layouts, usernames or drive names.
The file picker offers only .json files, and every selected file is checked before anything is written or asked of you. If it is not a dashboard export — a missing dashboard, a layout that is not a list of rows, a saved query with no SQL, two queries sharing a name, or a panel pointing at a query that is neither in the file nor already on this Mac — the import stops and lists every problem it found, so a hand-edited file can be fixed in one pass.
Name conflicts
A saved query that already exists on this Mac is left alone and not re-imported — the incoming dashboard simply uses your existing query of that name. Only the dashboard name has to be free. A file whose dashboard name is taken, either by one you already have or by another file in the same selection, is skipped and reported:
✗ yellow-taxi.json
A dashboard named "Yellow Taxi" is already on this Mac.
Rename the one in this file, or delete your existing copy.
Nothing from that file is written. To proceed, either delete your existing dashboard first, or open the JSON file in a text editor and rename the incoming one, then import again.
name, and the query field of each panel that uses it.
CSV to Parquet Conversion
Convert CSV files to Parquet format for better performance with large datasets.
CSV to Parquet conversion modal
- In the Bucket Browser, find the CSV file
- Click the convert icon next to the file
- Select which columns to include
- Optionally add a WHERE clause to filter rows
- Click Convert
Sync (Remote Files)
The Sync tab brings CSV, Parquet and JSON files from a remote location onto this Mac, so you can query data that lives on a server or in cloud storage. It is strictly one-way: files are copied remote → this Mac, never back up, and nothing on the remote is renamed, written or deleted.
It is also how Personalytics is adopted by a whole organization rather than one person: a data owner publishes a curated, PII-free extract and a designer publishes the dashboards built on it, and everyone else syncs both down and simply reads the dashboards made for them. See Rolling Out Across an Organization.
The Sync tab — saved mappings on the left, the add/edit form on the right
Mappings
Everything on this tab is built around a mapping: one remote location, one local folder, and the file types to bring across. A mapping is saved, so a routine pull is one click from then on.
The card on the left lists your mappings; the card on the right is the add/edit form. Press + to add one, or the pencil on a row to change it. Each row shows the remote type, where it pulls from and to, which file types it takes, and when it last ran — or the error from the last attempt, in red. The three buttons on a row are Run now (the triangle), Edit and Delete.
Remote Types
Four kinds of remote are supported. Pick one in Remote type and the form shows only the fields it needs:
| Remote type | What you provide |
|---|---|
| SFTP | Host, port, user, and either an SSH private key file (with its passphrase, if it has one) or a password |
| AWS S3 / S3-compatible | Bucket, region, access key ID and secret access key. The Endpoint field is only for non-AWS services — R2, B2, MinIO, Wasabi, Spaces, Ceph. Leave it blank for AWS |
| Azure Blob Storage | Container, plus either a storage account name and shared key, or a SAS URL |
| Google Cloud Storage | Bucket, an optional project number, and the service account JSON file downloaded from the Google Cloud console |
The Rest of the Form
- Remote path — the folder to pull, read recursively. Folder structure is preserved, which is what keeps Hive partition columns (
year=2024/) readable in queries - Destination folder — any folder on this Mac, chosen with the Choose... button
- File types — Parquet, CSV and JSON, matched at any depth. Nothing else is downloaded. JSON is there to carry dashboard exports across, to be imported from the Dashboards tab; the Query tab itself reads only CSV and Parquet
- Convert downloaded CSV to Parquet — runs the same conversion as the Query tab’s
→ Parquetbutton on each CSV that arrives, and rebuilds it whenever a CSV is re-downloaded, so the Parquet never lags the CSV beside it
Test Connection
Test connection works from whatever is currently typed in the form, so a mapping can be verified before its credentials are committed. A successful test reports how many matching files it found at that path, which also tells you the remote path and file-type filters are right. A failure quotes what the transfer engine actually said, with any secret stripped out of the message.
Running a Sync
- Press the triangle on a mapping’s row
- The status line under the list counts files and bytes as they transfer, and names the file in flight
- The Downloaded log below it lists each file as it lands, with its size, and keeps a running total in its heading
- Cancel stops a transfer in progress; files already downloaded stay
One transfer runs at a time — starting a second while one is in flight is refused rather than queued. The log stays on screen after a run (the live status line moves far too fast to read on a quick transfer) until the next run or the Clear button. If every matching file was already current, the log says so rather than going blank.
Repeat runs are cheap: a file already present with a matching size and modification time is skipped, and nothing in the destination is ever deleted.
Where Credentials Are Kept
Typed secrets — the S3 secret key, an Azure shared key or SAS URL, an SFTP password, an SSH key passphrase — go into the macOS Keychain, never into the app’s config file, and are handed to the transfer engine through its environment rather than on a command line where other processes could read them. The two file-based credentials, the SSH private key and the Google service account JSON, are referenced by path and stay where you put them — so keep those files somewhere they will not be deleted.
A stored secret is never handed back to the form. On an edit the secret field starts empty, and leaving it empty means “keep the one already stored”. Deleting a mapping removes its Keychain entry; files already downloaded are left alone.
~/.ssh/known_hosts. A host that is not in that file is refused rather than trusted blindly, so a new server has to be added first:
ssh-keyscan HOST >> ~/.ssh/known_hosts
Rolling Out Across an Organization
Sync is also how Personalytics stops being a single-person tool. One shared remote folder is enough to split the work between the people who prepare data and dashboards and the people who only want to read them:
| Role | What they do |
|---|---|
| Administrator / data owner | Prepares the extract — chooses which columns and rows leave the source system — and publishes it to an SFTP server or a cloud storage bucket |
| Dashboard designer | Builds the dashboards against that extract, exports each one as JSON (Sharing Dashboards) and drops the JSON into the same remote folder |
| Everyone else | Adds one mapping, presses Run, imports the dashboard JSON once, and from then on just opens the dashboards that were built for them — no SQL to write, no files to find |
Setting it up
- Publish the data files and the exported dashboard JSON to one remote folder — per audience, if different groups should see different data
- Give each user read-only credentials scoped to their folder, and have them add a mapping pointed at it with Parquet, CSV and JSON ticked, so the dashboards travel down with the data
- On first run they import the dashboard JSON from the Dashboards tab and choose the mapping’s destination folder when asked for a Data Folder. That re-points every panel at their own copy of the files
- After that, pressing Run refreshes the data in place and the same dashboards show the new numbers. A re-published dashboard is imported again under a new name, or after deleting the old one
What the data owner controls
Because the extract is a file the data owner publishes, they decide exactly what reaches anyone — and the filtering happens before the data ever leaves their side:
- Leave PII out of the extract. Publish only the columns a dashboard actually needs; drop or pre-hash names, emails, phone numbers and account identifiers. The CSV to Parquet converter is a convenient way to build a reduced file: it lets you pick the columns to keep and add a
WHEREclause to limit the rows - Aggregate where detail is not needed. A dashboard that reads totals by month and region does not need row-level records, and an aggregated extract cannot leak what it does not contain
- Separate audiences by folder. One folder, one prefix or one bucket per group, with credentials scoped to it, means a user cannot pull data outside their own even if they edit their mapping
- Nothing travels back. Sync is pull-only, so a reader cannot alter, overwrite or delete the shared copy — and nothing they do locally is visible to anyone else. Their credential stays in their own Keychain
- Queries stay on the reader’s Mac. Once the files are down, everything runs locally — no server sees which dashboards are opened or what is queried
MCP Server (AI Assistant Access)
Personalytics ships a small MCP server — a second way into the same data layer, meant for AI assistants rather than for you. Once a client is connected, you can ask it questions about your own data in plain language: it lists your datasets, reads their schemas, and runs SELECT queries against the bucket. The MCP tab is where you point a client at it.
Access is read-only. Only single SELECT or WITH statements are allowed, file paths are confined to your bucket folder, and the server never writes anything — not your data, not the app’s own settings.
The MCP tab, just after Test connection — the server answered with its eight tools. The two clients marked Old server path were connected to an earlier copy of the app and need Update
Server Card
The left card shows the two values a client needs and that you could not easily supply yourself: the server’s absolute path on this Mac, and the bucket folder it will read. It also warns when something would make a connection useless — no bucket set yet (pick one on the Query tab first), or a license problem, which the server refuses every request over.
Test connection starts the server from here and reports what it answered, listing the tools it offers. This is worth pressing before blaming a client: a client that cannot start the server usually says no more than “failed to connect”, with the real reason buried in a log, whereas this puts it on screen.
What the Assistant Can Do
| Tool | What it does |
|---|---|
list_datasets | Lists every CSV and Parquet file in the bucket as a tree, with sizes and relative paths |
describe_dataset | Column names and types for one folder or file |
schema_context | A profiled schema for one folder: types, distinct counts, the values of low-cardinality columns, any $labels() maps you have defined, and relevant saved queries as examples |
query | Runs one read-only SELECT (or WITH) against the bucket, with results capped |
list_saved_queries | The queries you have saved in the app |
run_saved_query | Runs one of your saved queries by name |
list_dashboards | Your saved dashboards, plus any dashboard export files |
get_dashboard | One dashboard’s full definition: panels, their SQL, and filters |
Connecting a Client
The right card lists the supported MCP clients actually installed on this Mac — Claude Code, Claude Desktop, Cursor, Zed and VS Code. Each row carries a status:
| Status | Meaning |
|---|---|
| Not configured | This client has no Personalytics entry yet |
| Configured | Connected, and pointed at the current server and bucket |
| Different bucket | Connected, but aimed at a bucket other than the one the app uses now. Press Update |
| Old server path | Connected, but aimed at a copy of the app that has since moved. Press Update |
| Unreadable | That client’s config file could not be parsed, so it is left strictly alone. Fix the file by hand, or use Copy |
Configure (or Update) writes the entry for you and keeps everything else in that file; the previous version is saved alongside it as a .personalytics.bak file first. Copy shows the exact entry instead, to paste in yourself.
Claude Code is configured through its own command line rather than by editing its JSON, and the entry is added for every project. Zed and VS Code are Copy only, on purpose: their settings files allow comments, and rewriting them automatically would strip your annotations.
SQL Syntax
Personalytics uses standard SQL syntax. Here are some useful patterns:
The {path-to-files} Variable
Use the special {path-to-files} variable as a placeholder for your data source. It automatically expands to include all files in your selected bucket path.
SELECT * FROM {path-to-files} LIMIT 100
This gets replaced at runtime with:
- Query Tab: Uses your selected Bucket Browser path (e.g.,
read_csv('/path/to/bucket/**/*.csv')) - Dashboards: Uses the dashboard's configured Data Path
Basic Query
SELECT * FROM {path-to-files} LIMIT 100
Aggregation
SELECT category, SUM(amount) as total
FROM {path-to-files}
GROUP BY category
ORDER BY total DESC
Multiple Files (Wildcard)
You can also use explicit wildcards for specific file patterns:
SELECT * FROM 'logs/2024-*.csv'
Join Tables
SELECT a.*, b.name
FROM {path-to-files} a
JOIN 'customers.csv' b ON a.customer_id = b.id
Date Functions
SELECT DATE_TRUNC('month', date) as month,
COUNT(*) as count
FROM {path-to-files}
GROUP BY 1
Labels Directive
Use the $labels directive to map values in the first column to human-readable labels. This is useful when your data contains codes or IDs that you want to display as friendly names.
-- $labels(1::Active;;2::Pending;;3::Closed)
SELECT status, COUNT(*) as count
FROM {path-to-files}
GROUP BY status
This will display "Active", "Pending", "Closed" instead of 1, 2, 3 in charts and tables.
You can also use $labels inside a numeric dashboard filter's Value Labels settings (⚙️ icon) to label that filter's picker values the same way.
Dimensions Directive
Use the $dimensions directive when your label mapping lives in its own CSV or Parquet file instead of being typed inline. It works just like $labels — mapping values in the first column to human-readable names — but looks up the mapping by querying an id/name table from a file at run time.
-- $dimensions(path::dimensions/customers.csv;;idColumn::customer_id;;nameColumn::customer_name)
SELECT customer_id, SUM(amount) as total
FROM {path-to-files}
GROUP BY customer_id
path— path to a.csvor.parquetfile containing the id/name mapping (relative paths resolve against your configured Data Path)idColumn— the column in that file matching the values being grouped onnameColumn— the column in that file holding the display name
Just like $labels, this only applies to the first column and can also be used inside a numeric dashboard filter's Value Labels settings. If both $labels and $dimensions are present in the same comment, $labels entries take precedence for any matching keys — handy for overriding a few values on top of a bulk mapping file.
Range Filters Directive
Use the $rangeFilters directive to create clickable chart segments that filter data by ranges. When you click on a chart slice or bar, it applies the corresponding filter condition.
-- $rangeFilters(< 10::amount < 10;;10-50::amount >= 10 AND amount < 50;;50+::amount >= 50)
SELECT
CASE
WHEN amount < 10 THEN '< 10'
WHEN amount < 50 THEN '10-50'
ELSE '50+'
END as range,
COUNT(*) as count
FROM {path-to-files}
GROUP BY 1
Clicking on the "10-50" segment will filter the dashboard to show only records where amount >= 10 AND amount < 50.
KPI Directive
Use the $kpi directive to control how a KPI Card panel formats and totals its metric. The card itself needs no directive — any query that returns a month in the first column and a number in the second, oldest first, can be switched to KPI Card in the chart dropdown:
-- $kpi(format::currency)
SELECT
date_trunc('month', order_date) AS month,
SUM(amount) AS revenue
FROM {path-to-files}
GROUP BY 1
ORDER BY 1
The card shows the total across every month in the result, a sparkline of the whole series, and the latest month compared with the one before it — the growth percentage in green when it is good news and red when it is not. Add the directive only when the defaults are wrong for your metric:
| Key | Values | Default | What it does |
|---|---|---|---|
total |
sum, avg, last, max, min |
sum |
How the headline number combines the months. Use avg for rates and percentages — adding up twelve monthly response rates is meaningless. |
format |
number, currency, percent |
number |
currency prefixes every figure on the card with $; percent adds a % suffix and stops the K/M/B shortening. |
decimals |
0 – 6 |
2 |
Decimal places on the exact figures. |
goodDirection |
up, down |
up |
Which way is healthy. Set down for costs, churn or refunds so a decline shows green instead of red. |
Combine keys with ;;, exactly like the other directives:
-- $kpi(total::avg;;format::percent;;decimals::1;;goodDirection::down)
SELECT
date_trunc('month', call_date) AS month,
AVG(abandon_rate) AS abandon_rate
FROM {path-to-files}
GROUP BY 1
ORDER BY 1
Two things to keep in mind. The “current” month is the last month present in the data, not today's calendar month — so if your data lags, the card compares the two most recent months it actually has, and labels both. And if that last month is still in progress, it is being compared against a complete month, which reads as a sharp drop until the month fills in.
Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| Run Query | Cmd + Enter |
| Draft SQL (from the prompt box) | Cmd + Enter |
Frequently Asked Questions
Where is my data stored?
All your data stays on your local machine. Personalytics never sends data to any server. Saved queries and dashboards are stored locally on your computer.
Why is my query slow?
- Consider converting large CSV files to Parquet format
- Add LIMIT clauses when exploring data
- Use WHERE clauses to filter early
- Avoid SELECT * on wide tables
Does it work on an airplane, or when my internet is down?
Yes. Once the engine is installed and your files are on local disk, every feature works with the network off — including Draft SQL, which runs on your Mac’s Neural Engine rather than calling an API. A cloud provider outage or a lost connection doesn’t affect your queries or dashboards. See Working Offline.
Can I query remote files?
Queries always run against local files — a remote path cannot be queried in place, though a network drive may work if it is mounted locally. To work with data that lives on a server or in cloud storage, use the Sync tab to pull it onto this Mac first, then point the bucket path at the destination folder.
Why don’t I see the Draft SQL prompt box?
It needs macOS 26 (Tahoe) or later on an Apple Silicon Mac, with Apple Intelligence turned on in System Settings. On an Intel Mac or an older macOS it is hidden, and every other feature works normally. See Draft SQL.
Does Draft SQL send my data anywhere?
No. It uses the language model built into macOS, running on your own Mac. Your prompt, your column names and sample values are never sent anywhere, and it works with the network switched off.
Draft SQL wrote the wrong query. What now?
Edit it in the SQL editor — it is a draft, which is why it is placed there instead of being run for you. Rephrasing helps too: ask for one thing at a time, and name the column you mean. Saving a correct query also teaches it your conventions for next time.
Can I share a dashboard with someone else?
Yes. Export it to a JSON file and send them the file; they import it on their own Mac and pick their copy of the data folder. The dashboard, its panels, its filters and the saved queries behind it all travel together. The data files themselves do not — they need their own copy. See Sharing Dashboards.
Import says the dashboard already exists. Why won’t it overwrite?
By design — an import never replaces a dashboard you already have, so one you have edited cannot be silently clobbered by an older copy. Either delete your existing copy first, or open the JSON file and rename the incoming dashboard. Saved queries are different: one whose name you already have is reused rather than reported as a clash. See Name conflicts.
I don’t see the Sync tab, or the MCP tab.
Each one is hidden when the piece it depends on — the transfer engine for Sync, the server binary for MCP — was not bundled with the build you installed. The rest of the app is unaffected. Installing the latest DMG is the fix. See Sync and MCP Server.
Can Sync overwrite or delete my remote files?
No. Sync only ever copies remote → this Mac. Nothing on the remote is written, renamed or deleted, and nothing in the local destination folder is deleted either — a file already there with a matching size and modification time is simply skipped on the next run.
Where are my Sync passwords and keys stored?
Typed secrets go into the macOS Keychain, not into the app’s config file, and are never displayed back to you. The SSH private key and the Google service account JSON are referenced by path and stay wherever you keep them. See Where Credentials Are Kept.
Can an AI assistant change my data through the MCP server?
No. The server is read-only: single SELECT or WITH statements only, paths confined to your bucket folder, and no writes of any kind — including to the app’s own settings. See MCP Server.
I changed my bucket folder and my assistant is querying the old one.
The bucket path is written into the client’s configuration when you connect it, so it does not follow a change made later in the app. Open the MCP tab — the client will be marked Different bucket — press Update, then restart the client.
The app won't open (security warning)
Right-click the app in Finder and select "Open" to bypass macOS Gatekeeper on first launch.