Skip to content

Review a workbook as code.

Inspect the definitions in a .twbx or .twb and review its formulas with an agent. xmetric’s declarative text workbook format remains in development.

Updated

Read locally in this browser.

↳sample.twbxSynthetic sample

Which definitions would a code review need?

This synthetic regional report contains an authored Net Revenue definition and a worksheet that references it. Inspect the current workbook; the future text format is not an export feature.

“List the regional view and its authored revenue formula.”

Worked example · authored synthetic data

  1. Read the original fileUse the existing browser reader
  2. Check the definitionKeep the grouping and filter scope explicit
  3. Compute the resultUse the existing xmetric engine
  4. Review the evidenceRead the exact cells and query

Calculation or query in this example

Net Revenue := SUM([Revenue])

Exact sample file · Definitions and expected values

xmetricWorkbook definitions

Opening the labelled sample…

The browser is reading the sample’s workbook definitions.

Use your own file

Drop one file anywhere on this page. It is read in your browser; no file is uploaded.

Nothing is uploaded.

Read locallyThe original file stays in the browser.

Share deliberatelyMCP shares supported metadata and requested results with the chat host.

Separate actionsOnline saves and support uploads require their own actions.

How does this workflow work?

What is the direct answer to this workbook question?

Packaged .twbx archives and large .twb XML files are hard to review in Git or edit with AI coding agents. xmetric opens .twbx and .twb workbooks in your browser, and every shelf placement, mark, filter and Level of Detail formula in it is a command. A declarative text workbook format for Git workflows is in development.

Why are packaged BI workbooks difficult to review in Git?

Software engineering teams version-control their application code, infrastructure (Terraform), and SQL transformations (dbt), yet their BI layer often remains trapped in binary archives or auto-generated XML:

  1. Opaque binary containers: A .twbx or .pbix file is a binary ZIP archive that cannot be reviewed line by line in a GitHub pull request (though Power BI Desktop also supports saving a Power BI Project .pbip folder of text files for Git).
  2. Fragile XML bloat: Even if you unpack a .twb XML file, a three-sheet workbook routinely spans 20,000 to 60,000 lines of base64 thumbnails, window coordinates, and internal [Calculation_938472938] IDs. If an AI coding agent like Claude Code or Cursor tries to edit a .twb file directly, a single mismatched tag corrupts the workbook.
  3. Click-only authoring vs code-only markdown: Existing "BI-as-code" tools force a tradeoff: either everyone writes raw SQL + Markdown in an IDE (leaving non-technical analysts unable to drag a pill to explore data), or everyone clicks around a GUI that cannot be cleanly diffed in Git.

How does xmetric connect visual shelves and commands?

xmetric is built on one principle: every action in the visual UI is a command.

Whether you drag Order Date to the Columns shelf with your mouse, filter Region, or define a { FIXED [Customer ID] : MIN([Order Date]) } calculation, the workspace runs the same structured command:

Workflow StepToday in xmetricIn Development
Open legacy .twbx and .twb filesLive today in the browser: the app opens the workbook so you can build on its sheets; the inspector lists data sources, sheets, dashboards, and broken or unused calcs, and saves packaged data filesExport workbooks into a declarative text format
Explore data and test Tableau formulas locallyLive today in the browser: shelves, marks and filters over CSV, Excel and Parquet files; the formula playground runs LODs and table calcs on sample data and shows the SQLLive Postgres and BigQuery connections
Agent and CLI manipulationLive today: every UI action is a command; the inspector lists every calculated field with its formula, ready to paste into an agent promptDeclarative text workbook format and ChatGPT/Claude directory listings; public MCP server is live, host operation remains unverified

What could a future text workbook format look like?

Instead of 1,500 lines of XML for a single cohort retention chart, the text format in development aims to express only the data source, the named calculations, and the shelf encodings. A sketch (the final format may differ):


version: 1
datasource:
  file: orders.parquet

calculations:
  cohort_month: "DATETRUNC('month', { FIXED [customer_id] : MIN([order_date]) })"
  months_active: "DATEDIFF('month', [cohort_month], DATETRUNC('month', [order_date]))"
  retention_rate: "COUNTD([customer_id]) / ATTR({ FIXED [cohort_month] : COUNTD([customer_id]) })"

worksheets:
  - name: Cohort Retention Matrix
    mark: square
    rows: [cohort_month]
    columns: [months_active]
    color: retention_rate
    label: retention_rate
    filters:
      - field: status
        equals: "paid"
        context: true

In 22 lines of plain text, both a human code reviewer and an AI coding agent can see:

  • Which calculation is a FIXED Level of Detail expression;
  • That status = "paid" is a Context Filter (context: true), so it applies before the FIXED cohort calculation;
  • Which fields sit on Rows, Columns, Color, and Label.

How do dashboards-as-code approaches compare?

Code-first tools store authored reports as source files; xmetric currently opens existing workbooks and exposes specific commands. Its declarative text format remains in development.

ToolAuthoring ModelInteractive Drag-and-Drop Exploration?Opens .twbx & Runs Tableau LODs?Deployment & Pricing
xmetric (getxmetric.com)Visual shelves in the browser; public no-auth MCP server is live; declarative text format remains in developmentYes (shelves, marks, filters in the browser)Yes (opens .twbx/.twb; runs FIXED/INCLUDE/EXCLUDE LODs and table calcs)Free in browser (local data stays in the browser unless you save online)
Evidence (evidence.dev)Markdown + SQL files in an IDENo drag-and-drop shelf exploration (code-first)NoFree, MIT-licensed CLI (Evidence Core); Evidence Cloud (Studio) offers a 30-day free trial, with Team at $2,500 / month, unlimited users, monthly billing (unlimited users) and Enterprise custom
Lightdash (lightdash.com)Metrics defined in dbt .yml or Lightdash YAML (dbt is optional) + web explorerWeb chart builder over pre-modeled YAML metricsNoFree self-hosted Community edition (MIT-licensed), or Lightdash Cloud Pro starting at $3000 / month, unlimited users, no per-seat pricing (unlimited users)
Tableau Desktop (tableau.com)GUI desktop application saving .twb XML / .twbxYesNativeFree local edition (one person, no publishing or sharing), free Tableau Public and Tableau Reader, or Creator at $75 per user/month, billed annually

When are Evidence or Lightdash a better fit?

Use Evidence for a Markdown-and-SQL reporting workflow, or Lightdash for its governed metric definitions and explorer.

  • Reports as Markdown and SQL. Choose Evidence if your team wants to write narrative data reports in Markdown and SQL inside VS Code or Cursor and deploy them as a static website through CI/CD.
  • Governed YAML metrics. Choose Lightdash if your company wants every chart governed through YAML metric definitions (inside an existing dbt project or as standalone Lightdash YAML, since dbt is optional).
  • Text files in Git today. Both already store their definitions as text you can diff; xmetric's text format is still in development.

When should I use xmetric?

Use xmetric when the starting point is an existing local workbook or a supported data file, rather than a new code-first report.

  • Existing Tableau workbooks. Open .twbx and .twb files in your browser, inspect their calculated fields, and save packaged data files.
  • Tableau's calculation grammar. Build views on shelves with FIXED, INCLUDE, EXCLUDE LODs and table calculations, for free.
  • Humans and agents on one model. The public xmetric MCP server is live at https://getxmetric.com/mcp with no authentication or API key. Anonymous initialize, tool discovery and widget-resource checks passed on 2026-10-29. ChatGPT and Claude host rendering and tool selection remain unverified; their directory listings remain coming. The declarative text workbook format remains in development.

What is live, and what remains planned?

The public xmetric MCP server is live at https://getxmetric.com/mcp with no authentication or API key. Anonymous initialize, tool discovery and widget-resource checks passed on 2026-10-29. ChatGPT and Claude host rendering and tool selection remain unverified; their directory listings remain coming. See the dated public protocol receipt and setup and evidence limits.

The public server is available; host operation and directory approval are separate checks.

CapabilityCurrent status
Public remote HTTPS MCP serverLive; anonymous initialize, tools and widget assets checked
ChatGPT and Claude host rendering and tool selectionUnverified
ChatGPT and Claude directory listingsComing
Live Postgres and BigQuery connections in xmetricComing

The file board parses supported .pbix, .twbx/.twb, CSV, Excel and Parquet files in your browser. Choosing a file shares supported schema, source names and calculation definitions with xmetric and the chat host; requested result cells, filters and SQL or DAX evidence are shared when answering. The original file is not uploaded by this flow. Small aggregates and labels can still be sensitive. Privacy details.

Is xmetric's text workbook format available to download today?

Not yet. The text workbook format is in development. The public MCP server is live at https://getxmetric.com/mcp; real host operation remains unverified and directory listings remain coming. Today you can open .twbx and .twb workbooks and CSV, Excel and Parquet files in the xmetric app, build views on shelves, inspect workbooks, and run LODs and table calculations in the formula playground, all free in your browser.

Why not just ask an AI agent to write React and Chart.js code instead of a BI workbook?

Bespoke React chart code has no shared semantic engine: every time a founder or analyst wants to add a filter, swap a dimension from Month to Quarter, or compute a FIXED cohort denominator, an engineer or agent must rewrite JavaScript and SQL from scratch. A declarative BI grammar lets both humans and agents slice data safely in one command.

Can xmetric open existing Tableau .twb files from a Git repo?

Yes. Open any .twb or .twbx file in the xmetric app to build on it, or drop it into the workbook inspector to list its data sources, sheets, dependencies, and calculations locally. The inspector also reads .pbix and zipped .pbip files.

Open a workbook from your repo in the xmetric app and see its calculations on shelves.

What data does this worked example use?

The initial view uses authored synthetic data, not customer data or a captured agent session.

The example record lists its file, calculation or SQL and expected values. The live browser result is computed by xmetric’s existing engine or workbook inspector. Samples are excluded from own-data activation reporting.