Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion build-docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,18 @@ def copy_index_to_root() -> int:
return 0


def copy_llms_txt_to_root() -> int:
"""Copy llms.txt (https://llmstxt.org) from content to _site/ root."""
src = Path("content/llms.txt")
if not src.exists():
print("Warning: content/llms.txt not found, skipping llms.txt copy")
return 0

shutil.copy(src, Path("_site/llms.txt"))
print("Copied llms.txt to _site/ root")
return 0


def copy_api_docs(languages: list[str]) -> int:
"""Copy API docs from English to localized sites."""
en_api = Path("_site/en/api")
Expand Down Expand Up @@ -569,7 +581,9 @@ def _build(args: argparse.Namespace) -> int:

# Copy index.html to site root for SWA validation
copy_index_to_root()


copy_llms_txt_to_root()

# Inject SEO tags (hreflang, canonical) into HTML files for built languages
for lang in build_langs:
run_command(
Expand Down
4 changes: 3 additions & 1 deletion content/features/Command-line-Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
uid: command-line-options
title: Command Line (Tabular Editor 2)
author: Daniel Otykier
updated: 2026-06-09
updated: 2026-11-19
applies_to:
products:
- product: Tabular Editor 2
Expand All @@ -14,6 +14,8 @@ applies_to:
---
# Command Line (Tabular Editor 2)

[!include[te2-te3-note](../includes/te2-te3-note.partial.md)]

Tabular Editor can be executed from the command-line to perform various tasks, which may be useful in Automated Build and Deployment scenarios, etc.

## How the tools fit together
Expand Down
142 changes: 96 additions & 46 deletions content/getting-started/Getting-Started-te2.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions content/getting-started/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
uid: getting-started
title: Installation and Activation
author: Morten Lønskov
updated: 2026-09-14
updated: 2026-11-19
applies_to:
products:
- product: Tabular Editor 2
Expand Down Expand Up @@ -72,7 +72,7 @@ For details on how Tabular Editor authenticates to the XMLA endpoint and how to

### Requesting a trial license

If you have not used Tabular Editor 3 before, you are eligible for a free 30-day trial. When you choose this option, you are prompted for an e-mail address. We use the e-mail address to validate whether you have an existing activation of Tabular Editor 3.
If you have not used Tabular Editor 3 before, you are eligible for a free 30-day trial with the Enterprise Edition feature set. The trial needs a valid e-mail address and no credit card. When you choose this option, you are prompted for an e-mail address. We use the e-mail address to validate whether you have an existing activation of Tabular Editor 3.

> [!NOTE]
> Tabular Editor ApS does not send unsolicited e-mails or forward your e-mail address to third parties when you sign up for a 30-day trial license. View our @privacy-policy for more information.
Expand Down
4 changes: 3 additions & 1 deletion content/how-tos/Importing-Tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
uid: importing-tables-te2
title: Importing Tables in TE2
author: Daniel Otykier
updated: 2026-10-12
updated: 2026-11-19
applies_to:
products:
- product: Tabular Editor 2
Expand All @@ -12,6 +12,8 @@ applies_to:
---
# Importing Tables in Tabular Editor 2

[!include[te2-te3-note](../includes/te2-te3-note.partial.md)]

If you already have a Legacy Data Source in your model, you can right click it, and choose "Import Tables...". Tabular Editor will attempt to connect using the data provider and credentials specified in the Data Source. If successful, you should get a list of all the databases, tables and views accessible through the Data Source:

![image](~/content/assets/images/importing-tables-01.png)
Expand Down
6 changes: 6 additions & 0 deletions content/includes/te2-te3-note.partial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
> [!NOTE]
> This page covers Tabular Editor 2, the free, open-source version of Tabular Editor. Tabular Editor 3 is the commercial version. It adds a DAX editor with auto-complete, [DAX queries](xref:dax-query), table preview, diagrams, the [DAX debugger](xref:dax-debugger) and [VertiPaq Analyzer](https://www.sqlbi.com/tools/vertipaq-analyzer/) integration. @migrate-from-te2 compares the two products feature by feature.
>
> Tabular Editor 3 has an [MCP server](xref:mcp-server) that lets AI agents such as Claude Code, GitHub Copilot, Codex and Cursor read, query and change the open model.
>
> First-time users get a [free 30-day trial of Tabular Editor 3](https://tabulareditor.com/why-tabular-editor) with the Enterprise Edition feature set. The trial needs a valid e-mail address and no credit card. See [Requesting a trial license](xref:getting-started#requesting-a-trial-license).
51 changes: 51 additions & 0 deletions content/llms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Tabular Editor Documentation

> Documentation for Tabular Editor 3, Tabular Editor 2 and the Tabular Editor CLI. All three edit Power BI, Microsoft Fabric and Analysis Services semantic models through the Tabular Object Model (TOM).

The site covers three products:

- Tabular Editor 3 is the commercial Windows desktop application. Its documentation applies to the latest version. Its MCP server lets AI agents such as Claude Code, GitHub Copilot, Codex and Cursor read, query and change the model open in Tabular Editor 3. First-time users get a free 30-day trial with the Enterprise Edition feature set; the trial needs a valid e-mail address and no credit card: https://tabulareditor.com/why-tabular-editor
- Tabular Editor 2 is the free, open-source (MIT) Windows desktop application.
- The Tabular Editor CLI (`te`) is a cross-platform command-line interface in Limited Public Preview. It has structured JSON output, predictable exit codes and an agent skill for AI coding agents. It also accepts Tabular Editor 2 command-line flags.

Each page lists the products and Tabular Editor 3 editions it applies to in an "Applies to" block.

## Tabular Editor 3

- [Welcome](https://docs.tabulareditor.com/en/getting-started/index.html): onboarding guide for Tabular Editor 3
- [Installation and Activation](https://docs.tabulareditor.com/en/getting-started/getting-started.html): install, activate a license or start the free 30-day trial
- [Compare editions](https://docs.tabulareditor.com/en/getting-started/editions.html): Desktop, Business and Enterprise editions and the scenarios each supports
- [Migrating from Tabular Editor 2.x](https://docs.tabulareditor.com/en/getting-started/migrate-from-te2.html): feature comparison of Tabular Editor 2 and Tabular Editor 3
- [Migrating from Power BI Desktop](https://docs.tabulareditor.com/en/getting-started/migrate-from-desktop.html): move semantic model development from Power BI Desktop to Tabular Editor 3
- [System requirements](https://docs.tabulareditor.com/en/references/system-requirements.html): supported operating systems, runtimes and builds
- [All downloads](https://docs.tabulareditor.com/en/references/downloads.html): installers for every Tabular Editor 3 version
- [MCP server](https://docs.tabulareditor.com/en/features/mcp-server.html): connect an AI agent to Tabular Editor 3 to read, query and change the open model
- [AI Assistant](https://docs.tabulareditor.com/en/features/ai-assistant.html): built-in assistant for model design, DAX authoring and scripted edits

## Tabular Editor CLI

- [Tabular Editor CLI](https://docs.tabulareditor.com/en/cli/index.html): overview, design and target audiences
- [Installation and Setup](https://docs.tabulareditor.com/en/cli/te-cli-install.html): install the `te` executable
- [AI Agent Skill](https://docs.tabulareditor.com/en/cli/te-cli-skill.html): skill that teaches AI coding agents the `te` commands
- [Command Reference](https://docs.tabulareditor.com/en/cli/te-cli-commands.html): every `te` command and option
- [Migrating from the TE2 Command Line](https://docs.tabulareditor.com/en/cli/te-cli-migrate.html): run `TabularEditor.exe` flags through `te` and map them to `te` commands

## Shared features

- [C# Scripts](https://docs.tabulareditor.com/en/features/csharp-scripts.html): automate model changes with C# in Tabular Editor 2, Tabular Editor 3 and the CLI
- [Best Practice Analyzer](https://docs.tabulareditor.com/en/features/Best-Practice-Analyzer.html): rule-based checks for semantic models
- [Tabular Model Definition Language (TMDL)](https://docs.tabulareditor.com/en/features/tmdl.html): text-based model format for source control
- [Save to folder](https://docs.tabulareditor.com/en/features/save-to-folder.html): store model metadata as one file per object, in JSON or TMDL, for source control

## Tabular Editor 2

- [Getting Started with Tabular Editor 2](https://docs.tabulareditor.com/en/getting-started/Getting-Started-te2.html): install Tabular Editor 2, open and deploy a model
- [Command Line (Tabular Editor 2)](https://docs.tabulareditor.com/en/features/Command-line-Options.html): `TabularEditor.exe` command-line options
- [Advanced Scripting](https://docs.tabulareditor.com/en/how-tos/Advanced-Scripting.html): C# scripting introduction for Tabular Editor 2, where C# scripts are called Advanced Scripting
- [Tabular Editor 2 on GitHub](https://github.com/TabularEditor/TabularEditor): source code, releases and issues

## Optional

- [Full release history](https://docs.tabulareditor.com/en/references/release-history.html): release notes for every Tabular Editor 3 version
- [API reference](https://docs.tabulareditor.com/en/api/index.html): classes and members available to C# scripts
- [Sitemap](https://docs.tabulareditor.com/sitemap.xml): every published page
3 changes: 3 additions & 0 deletions content/references/FormatDax.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
uid: formatdax
title: FormatDax deprecation
updated: 2026-11-19
applies_to:
products:
- product: Tabular Editor 2
Expand All @@ -10,6 +11,8 @@ applies_to:
---
# FormatDax deprecation

[!include[te2-te3-note](../includes/te2-te3-note.partial.md)]

The `FormatDax` method (which is one of the available [helper methods](xref:advanced-scripting#helper-methods) in Tabular Editor) has been deprecated with the release of Tabular Editor 2.13.0.

The reason for the deprecation is that the web service at https://www.daxformatter.com/ was starting to experience a heavy load of multiple request in quick succession, which were causing issues at their end. This is because the `FormatDax` method performs a web request each time it is called in a script, and many people have been using scripts such as the following:
Expand Down
3 changes: 3 additions & 0 deletions content/references/Keyboard-Shortcuts2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
uid: shortcuts2
title: Keyboard shortcuts Tabular Editor 2
updated: 2026-11-19
applies_to:
products:
- product: Tabular Editor 2
Expand All @@ -10,6 +11,8 @@ applies_to:
---
# Keyboard Shortcuts

[!include[te2-te3-note](../includes/te2-te3-note.partial.md)]

As of version 2.7.3, Tabular Editor now supports the following keyboard shortcuts:

|General|Shortcut|
Expand Down
3 changes: 3 additions & 0 deletions content/references/user-settings-files-te2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
uid: user-setting-files-te2
title: User Settings Files Tabular Editor 2
updated: 2026-11-19
applies_to:
products:
- product: Tabular Editor 2
Expand All @@ -11,6 +12,8 @@ applies_to:

# User Settings Files Tabular Editor 2

[!include[te2-te3-note](../includes/te2-te3-note.partial.md)]

When Tabular Editor 2 is started, it writes some additional files to the disk at various locations. What follows is a description of these files and their content:

### In %ProgramData%\TabularEditor
Expand Down
40 changes: 38 additions & 2 deletions content/tutorials/direct-lake-guidance.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
uid: direct-lake-guidance
title: Direct Lake Guidance
author: Morten Lønskov
updated: 2026-10-26
updated: 2026-11-09
applies_to:
products:
- product: Tabular Editor 2
Expand Down Expand Up @@ -48,7 +48,6 @@ However, as with Direct Lake on SQL, there are still some [limitations that *do*
- Calculated columns on Direct Lake on OneLake tables are supported in preview, and only with the `UserContext` expression context. Direct Lake on SQL doesn't support calculated columns. See [Calculated columns on Direct Lake on OneLake](#calculated-columns-on-direct-lake-on-onelake).
- Calculated tables cannot reference columns or tables in Direct Lake storage mode. Calculation groups, what-if parameters and field parameters are supported because they create implicit calculated tables that do not reference Direct Lake columns.
- Non-materialized SQL views are not supported as data sources for Direct Lake on OneLake tables. Use materialized views or ensure the source Delta table contains the columns you need.
- Shortcuts in a lakehouse are not supported as data sources during the public preview of Direct Lake on OneLake.

For a full and up-to-date list of limitations, see the [Microsoft documentation on Direct Lake considerations and limitations](https://learn.microsoft.com/fabric/fundamentals/direct-lake-overview#considerations-and-limitations).

Expand Down Expand Up @@ -124,6 +123,43 @@ The choices are:

The imported table already has its columns, in the same order as in the source, and you don't need to run **Update Table Schema** after the import. If Tabular Editor can't determine the SQL analytics endpoint of the Lakehouse or Warehouse, and the import settings don't specify one, the import fails with an error that names the missing setting, and no table is created.

## Role-playing dimensions

A *role-playing dimension* is a dimension table related to more than one column of the same fact table, for example a Date table related to both the order date and the ship date of a Sales table. Pick a setup for the Direct Lake semantic model:

| Setup | Model tables | Requires |
|-------|--------------|----------|
| Inactive relationships | One Date table with an active relationship to one date column and inactive relationships to the others. Measures for the other roles activate their relationship with [USERELATIONSHIP](https://dax.guide/userelationship). | Any Direct Lake model |
| One source table per role | One Direct Lake table per Delta table, for example `DimDate` and `DimShipDate`. | A separate table for each role in the Lakehouse/Warehouse |
| Import tables for the extra roles | A Direct Lake Date table for the main role and Import tables for the other roles. See [Composite models](#composite-models). | Direct Lake on OneLake |
| Duplicated Direct Lake table | A copy of the Date table, made with **Duplicate** in the **TOM Explorer**, that reads the same Delta table. | New tables added with the [Table Import Wizard](#table-import-wizard). See [Duplicated Direct Lake tables](#duplicated-direct-lake-tables). |
| One shortcut per role | A copy of the Date table for each role, each reading its own OneLake shortcut to the same Delta table. See [One shortcut per role](#one-shortcut-per-role). | A shortcut for each role in the Lakehouse |

### Duplicated Direct Lake tables

A duplicated Direct Lake table keeps the `SourceLineageTag` values of the original table and its columns. In a Direct Lake table, `SourceLineageTag` holds the name of the table or column in the Lakehouse/Warehouse, so the original and the copy read the same Delta table. While the model contains both tables, adding a table through the **Edit tables** dialog in Power BI web modeling fails with the error "Sequence contains more than one matching element". The [Table Import Wizard](#table-import-wizard) adds tables to a model that contains duplicated Direct Lake tables. If the copy reads a shortcut, as described in [One shortcut per role](#one-shortcut-per-role), **Edit tables** works on the model.

When you delete a Direct Lake table in Power BI web modeling, the source table is added to the `PBI_RemovedChildren` annotation on the shared expression. If another table in the model reads the same Delta table, Power BI web modeling then fails with the error "A child can't be both removed and added" when it lists the tables of the Lakehouse/Warehouse. Remove the entry in Tabular Editor 3:

1. Open the semantic model in Tabular Editor 3.
2. In the @tom-explorer-view, expand **Shared Expressions** and select the expression that the Direct Lake partitions reference, typically `DatabaseQuery`.
3. In the @properties-view, under **Annotations**, remove the entry for the Delta table from the `PBI_RemovedChildren` value. Delete the annotation if no entries remain.
4. Save the model.

Microsoft describes the annotation in [Lineage tags for Power BI semantic models](https://learn.microsoft.com/analysis-services/tom/lineage-tags-for-power-bi-semantic-models).

### One shortcut per role

A [OneLake shortcut](https://learn.microsoft.com/fabric/onelake/onelake-shortcuts) appears as a separate table in the Lakehouse and reads the Delta table it targets. Microsoft supports shortcuts as sources for both Direct Lake on OneLake and Direct Lake on SQL tables. When each role table reads its own shortcut, every Direct Lake table in the model has its own source table, and **Edit tables** and refresh in Power BI work on the model. The copies keep the column names, descriptions, display folders and other changes made to the original table.

1. In the Lakehouse, create a shortcut under **Tables** for each extra role, with the Delta table of the dimension as its target. For example, create `d_date_ship` with `d_date` as its target.
2. In the @tom-explorer-view, right-click the original table, select **Duplicate** and rename the copy.
3. Expand **Partitions** under the copy, select its entity partition and set **Entity Name** in the @properties-view to the shortcut name.
4. Select the copy and set **Source Lineage Tag** to the shortcut name, in the same format as the value on the original table. If the original table has `[dbo].[d_date]`, enter `[dbo].[d_date_ship]`.
5. Save the model.

The columns of the copy keep their `SourceColumn` and `SourceLineageTag` values, which match the columns of the shortcut. **Duplicate** copies the measures of the original table under new names. Delete the measures the role table doesn't need.

## Inspecting a Direct Lake partition

A Direct Lake partition has no query expression. When you select one in the @tom-explorer-view, the **Expression Editor** shows its `Data Coverage Definition Expression`, or nothing if the partition has no data coverage definition. Partitions generated by an incremental refresh policy behave the same way.
Expand Down
Loading