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:

Personalytics main interface

The main Personalytics interface

First Launch

When you first open Personalytics, the app will:

  1. Check if the OLAP engine is installed
  2. If not found, automatically download and install it
  3. Display the main interface with the Query tab selected
Tip: If you see a macOS security warning on first launch, right-click the app in Finder and select "Open" to bypass it.

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:

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

  1. Launch the app once while connected, so the engine is installed.
  2. Run your Sync mappings to pull down the latest remote files (Sync).
  3. Check your bucket path points at a local folder, not a network mount or a cloud-storage folder that only downloads on demand.
  4. Open the dashboards you’ll want once, to confirm their queries resolve against the files you have.
Tip: If your files live in iCloud Drive, Dropbox or OneDrive, make sure they are downloaded locally rather than placeholders. In Finder, a cloud icon next to a file means the bytes aren’t on your disk yet — right-click and choose “Download Now” before you lose the connection.

Bucket Browser

The Bucket Browser lets you explore data files in a selected folder (your "bucket").

Bucket Browser panel

Bucket Browser showing files and schema

Setting the Bucket Path

  1. Click the folder icon in the Bucket Browser panel
  2. Select a folder containing your CSV or Parquet files
  3. 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.

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.

Tip: If you have both CSV and Parquet versions of your data, use Parquet mode for faster query performance on large datasets.

Query Tab

The Query Tab is where you write and execute SQL queries against your data files.

Query Tab with results

Query Tab showing SQL editor and results table

Writing Queries

Enter your SQL query in the text area. You can reference files using:

Running Queries

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.

Draft SQL prompt box above the SQL editor

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:

RequirementNeeded
macOS versionmacOS 26 (Tahoe) or later
ProcessorApple Silicon (M1 or newer)
Apple IntelligenceTurned on in System Settings › Apple Intelligence & Siri
Not seeing the prompt box? On an Intel Mac, on macOS 25 (Sequoia) or earlier, or with Apple Intelligence turned off, the Draft SQL box is hidden and the rest of the app works exactly as before. Everything else in Personalytics runs on both Intel and Apple Silicon.

Using It

  1. Select a folder in the Bucket Browser so Personalytics knows which files to read
  2. Type what you want in the prompt box, for example total fare by month for card payments
  3. Click the wand button below the box, or press Cmd + Enter
  4. 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:

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:

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.

Always read the draft before running it. A query can be perfectly valid SQL and still answer a different question than the one you asked — grouping by drop-off time when you meant pick-up, for instance. The draft is a starting point, not an answer.

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

Saved Queries dropdown with rename and delete buttons

Saving a Query

  1. Write and run your query
  2. Click the Save icon (floppy disk)
  3. Enter a name for the query
  4. Click Save

Loading a Saved Query

  1. Click the Saved Queries dropdown
  2. Search or scroll to find your query
  3. Click to load it into the editor

Renaming a Query

  1. Select the query from the dropdown
  2. Click the pencil icon (Rename)
  3. Enter the new name
  4. Click Rename

The rename operation automatically updates all dashboards that reference the query.

Deleting a Query

  1. Select the query from the dropdown
  2. Click the trash icon (Delete)
Note: You cannot delete a saved query that is used in any dashboard. The app will show which dashboards are using the query.

Charts & Visualization

Personalytics supports multiple chart types for visualizing aggregated query results.

Bar Chart visualization

Bar Chart visualization

Pie and Donut Charts

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

Dashboard Designer with multiple panels

Creating a Dashboard

  1. Go to the Dashboards tab
  2. Click New Dashboard
  3. Enter a name for your dashboard
  4. Set the Path to Files for your data source

Adding Panels

  1. Click Add Row to create a new row
  2. Click Add Panel within a row
  3. Select a saved query from the dropdown
  4. Choose a chart type
  5. 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)

  1. Click the filter icon in the toolbar while editing
  2. Choose a column from your data to filter on
  3. The filter dropdown will appear in the filter bar
  4. Save the dashboard to persist the filter configuration

Using Filters (View Mode)

  1. Click on a filter dropdown in the filter bar
  2. Select one or more values to filter by
  3. All panels automatically refresh to show filtered data
  4. Clear the filter by deselecting values or clicking the X
Tip: Filters only affect panels whose queries contain the filtered column. Panels with unrelated queries remain unchanged.

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

  1. Click on a bar, pie slice, or data point in any chart
  2. The clicked element gets highlighted with a blue border
  3. All other panels (especially paginated tables) filter to show only matching records
  4. 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.

Note: Chart slicing works best when your dashboard has a paginated table panel that can display the filtered detail records.

Saving Dashboards

Click Save to save your dashboard. Changes are persisted locally.

Dashboard View

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

  1. Go to the Dashboards tab and select the dashboard from the dropdown
  2. Click the export icon (the up arrow beside the dropdown)
  3. 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

  1. On the other Mac, go to the Dashboards tab
  2. Click the import icon (the down arrow) and pick the JSON file — or several at once, with ⌘-click or shift-click
  3. 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 data itself is not exported. Only the dashboard definition and its queries travel in the JSON file. The receiving Mac needs its own copy of the CSV or Parquet files, with the same column names the queries expect.

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.

Tip: Because a same-named saved query is reused rather than replaced, an updated copy from a colleague brings its panels across but keeps your version of each query it shares with a dashboard you already have. If the query itself changed, rename it in the JSON file — in two places: its own 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

CSV to Parquet conversion modal

  1. In the Bucket Browser, find the CSV file
  2. Click the convert icon next to the file
  3. Select which columns to include
  4. Optionally add a WHERE clause to filter rows
  5. Click Convert
Why Parquet? Parquet files are compressed and columnar, making queries up to 10x faster than CSV for analytical workloads.

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 mapping form on the right

The Sync tab — saved mappings on the left, the add/edit form on the right

No Sync tab in the nav? The tab is hidden when the transfer engine it needs was not bundled with the build you installed. Everything else in the app works exactly as before. If you expect the tab, download the latest installer.

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 typeWhat you provide
SFTPHost, port, user, and either an SSH private key file (with its passphrase, if it has one) or a password
AWS S3 / S3-compatibleBucket, 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 StorageContainer, plus either a storage account name and shared key, or a SAS URL
Google Cloud StorageBucket, an optional project number, and the service account JSON file downloaded from the Google Cloud console

The Rest of the Form

Tip: The destination does not have to be inside the folder the Query tab points at. Files pulled anywhere else are downloaded all the same — they simply will not show up in queries until you point the bucket path at them.

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

  1. Press the triangle on a mapping’s row
  2. The status line under the list counts files and bytes as they transfer, and names the file in flight
  3. The Downloaded log below it lists each file as it lands, with its size, and keeps a running total in its heading
  4. 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.

SFTP host keys. SFTP connections are always verified against ~/.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:

RoleWhat 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

  1. Publish the data files and the exported dashboard JSON to one remote folder — per audience, if different groups should see different data
  2. 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
  3. 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
  4. 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:

Personalytics does not classify your columns. It has no notion of what is personal data and does not detect, mask or strip anything on the way through — a sync delivers exactly the file that was published. Keeping PII out of a shared extract is the data owner’s decision, made when the file is produced, and it is worth reviewing the columns of any extract before it goes into a folder other people can read.

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: server details and test result on the left, detected clients on the right

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

No MCP tab in the nav? The tab is hidden when the server was not bundled with the build you installed. The installed app from the DMG includes it.

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

ToolWhat it does
list_datasetsLists every CSV and Parquet file in the bucket as a tree, with sizes and relative paths
describe_datasetColumn names and types for one folder or file
schema_contextA 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
queryRuns one read-only SELECT (or WITH) against the bucket, with results capped
list_saved_queriesThe queries you have saved in the app
run_saved_queryRuns one of your saved queries by name
list_dashboardsYour saved dashboards, plus any dashboard export files
get_dashboardOne 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:

StatusMeaning
Not configuredThis client has no Personalytics entry yet
ConfiguredConnected, and pointed at the current server and bucket
Different bucketConnected, but aimed at a bucket other than the one the app uses now. Press Update
Old server pathConnected, but aimed at a copy of the app that has since moved. Press Update
UnreadableThat 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.

Restart the client. None of these clients reload their configuration while running. After Configure, quit the client and open it again before expecting the tools to appear.
The bucket is baked into the entry. A client is pointed at whichever bucket was set when you configured it, so changing the bucket folder in the app leaves the client on the old one — the tab reports that as Different bucket. Press Update to re-point it.

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:

Why use {path-to-files}? It makes your saved queries portable. You can reuse the same query across different data folders or dashboards without editing the path each time.

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

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.

Tip: The dimension file is re-read automatically whenever it changes on disk, so editing the CSV/Parquet mapping file updates labels the next time the query runs.

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
Tip: Every number on a KPI Card — the total, the month count, the latest month and the growth percentage — is computed from the rows the query returned, so the whole card reslices with your dashboard filters. Filter to six months and the headline becomes "Total across 6 months".

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.

Tip: These directives are SQL comments, so they don't affect query execution. They only control how results are displayed and how chart interactions work.

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?

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.