diff --git a/build-docs.py b/build-docs.py index 18533e009..6a9ff1880 100644 --- a/build-docs.py +++ b/build-docs.py @@ -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") @@ -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( diff --git a/content/features/Command-line-Options.md b/content/features/Command-line-Options.md index cab22381f..28e5bce9b 100644 --- a/content/features/Command-line-Options.md +++ b/content/features/Command-line-Options.md @@ -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 @@ -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 diff --git a/content/getting-started/Getting-Started-te2.md b/content/getting-started/Getting-Started-te2.md index 645a36703..db50e4abd 100644 --- a/content/getting-started/Getting-Started-te2.md +++ b/content/getting-started/Getting-Started-te2.md @@ -1,8 +1,9 @@ ---- +--- uid: getting-started-te2 title: Getting Started with Tabular Editor 2 -author: Daniel Otykier -updated: 2026-10-12 +author: Morten Lønskov +updated: 2026-11-19 +description: Install Tabular Editor 2, the free open-source editor for Analysis Services and Power BI semantic models, then open, edit and deploy a model. Tabular Editor 3 is the commercial version, with a free 30-day trial. applies_to: products: - product: Tabular Editor 2 @@ -10,100 +11,149 @@ applies_to: - product: Tabular Editor 3 none: true --- -# Getting Started +# Getting Started with Tabular Editor 2 + +Tabular Editor 2 is a free, open-source Windows application for editing Analysis Services and Power BI semantic models. This page covers installation, opening and editing a model, deployment, the command line and C# scripting. + +[!include[te2-te3-note](../includes/te2-te3-note.partial.md)] + +## Tools by task + +Tabular Editor 2, Tabular Editor 3 and the [Tabular Editor CLI](xref:te-cli) cover different tasks: + +| Task | Tool | Documentation | +|------|------|---------------| +| Edit model metadata in a free desktop application | Tabular Editor 2 | This page | +| Write DAX with auto-complete and step through it in a debugger | Tabular Editor 3 | @dax-debugger | +| Run DAX queries and preview table data | Tabular Editor 3 | @refresh-preview-query | +| Deploy from a CI/CD pipeline | Tabular Editor 2 or Tabular Editor CLI | @command-line-options, @te-cli-cicd | +| Run Best Practice Analyzer checks | All three | @best-practice-analyzer | +| Let an AI agent read, query and change the model open in a desktop application | Tabular Editor 3 | @mcp-server | +| Let an AI agent change model files or deployed models from a terminal | Tabular Editor CLI | @te-cli-skill | ## Installation -Simply download the .msi file from the [Release page](https://github.com/TabularEditor/TabularEditor/releases/latest) and run the .msi installation. + +Download the .msi installer or the portable .zip file from the [release page](https://github.com/TabularEditor/TabularEditor/releases/latest). Run the .msi, or extract the .zip to a folder and run `TabularEditor.exe`. + +The .msi registers Tabular Editor 2 as an [External Tool](xref:desktop-integration) in Power BI Desktop. ## Prerequisites -None. + +Tabular Editor 2 requires [.NET Framework 4.8](https://dotnet.microsoft.com/download/dotnet-framework/net48). The .msi installer stops if .NET Framework 4.8 is missing and links to the download. > [!NOTE] -> Tabular Editor uses the [Tabular Object Model](https://docs.microsoft.com/analysis-services/tom/introduction-to-the-tabular-object-model-tom-in-analysis-services-amo?view=asallproducts-allversions) to load and save metadata to and from Model.bim files or existing databases. This is included in the .msi installer. Visit the official Microsoft documentation for [Analysis Services Client Libraries](https://docs.microsoft.com/azure/analysis-services/analysis-services-data-providers). +> Tabular Editor 2 uses the [Tabular Object Model](https://learn.microsoft.com/analysis-services/tom/introduction-to-the-tabular-object-model-tom-in-analysis-services-amo) (TOM) to load and save metadata to and from Model.bim files or existing databases. The installer includes the [Analysis Services client libraries](https://learn.microsoft.com/analysis-services/client-libraries). ## System requirements -- **Operating system:** Windows 7, Windows 8, Windows 10, Windows Server 2016, Windows Server 2019 or newer -- **.NET Framework:** [4.6](https://dotnet.microsoft.com/download/dotnet-framework) +- **Operating system:** Windows version supported by .NET Framework 4.8 +- **.NET Framework:** [4.8](https://dotnet.microsoft.com/download/dotnet-framework/net48) -## Working with Tabular Editor +## Open a model -The recommended workflow is to set up the tables and relationships using SSDT as normal, and then use Tabular Editor to do the rest. That is: Create calculated columns, measures, hierarchies, perspectives, translations, display folders, and every other kind of fine-tuning you can think of. +Open a model from disk with **File > Open > From File...** (**Ctrl+O**). Supported formats are Model.bim files, folders saved with [Save to folder](xref:save-to-folder) (database.json), [TMDL](xref:tmdl) folders, .pbit files and .pbip projects. -Load a Model.bim file by choosing the Open > From File... option in the File menu (CTRL+O), or open an existing database from an instance of Analysis Services by choosing the Open > From DB... option. In the latter case, you will be prompted for a server name and optional credentials: +Open a deployed database with **File > Open > From DB...** (**Ctrl+Shift+O**). The **Connect to Tabular Server** dialog asks for a server name and authentication: ![Connecting to an already deployed Tabular Model](~/content/assets/images/getting-started-te-01.png) -This also works with the new Azure Analysis Services PaaS. The "Local Instance" dropdown, may be used to browse and connect to any running instances of Power BI Desktop or Visual Studio Integrated Workspaces. **Note that although Tabular Editor can make changes to a Power BI model through the TOM, not all modeling operations are supported by Microsoft. [More information](Power-BI-Desktop-Integration.md)** +The server name accepts Analysis Services instances and Azure Analysis Services servers (`asazure://`). The **Local instance** dropdown lists running instances of Power BI Desktop, Visual Studio integrated workspaces and local Analysis Services. From the June 2025 Power BI Desktop update, external tools can change any part of a model hosted in Power BI Desktop. See @desktop-integration. -After clicking "OK", you will be presented with a list of databases on the server. +Select **OK**, then select a database from the list on the server. -This is how the UI looks after a model has been loaded into Tabular Editor: +## Edit the model + +The main window looks like this after a model loads: ![The main UI of Tabular Editor](~/content/assets/images/getting-started-te-02.png) -The tree on the left side of the screen, displays all tables in the Tabular Model. Expanding a table will show all columns, measures and hierarchies within the table, grouped by their Display Folders. Use the buttons just above the tree, to toggle display folders, hidden objects, certain types of objects, or filter out objects by names. Right-clicking anywhere in the tree, will bring up a context menu with common actions, such as adding new measures, making an object hidden, duplicating objects, deleting objects, etc. Hit F2 to rename the currently selected object or multiselect and right-click to batch rename multiple objects. +The tree on the left lists all tables in the model. Expand a table to see its columns, measures and hierarchies, grouped by display folder. The buttons above the tree toggle display folders, hidden objects and object types, and the text box filters objects by name. Right-click in the tree for common actions such as adding measures, hiding, duplicating and deleting objects. Press **F2** to rename the selected object. When you select several objects, **F2** opens **Batch Rename**: ![Batch Renaming lets you rename multiple objects simultaneously](~/content/assets/images/getting-started-te-03.png) -On the top right side of the main UI, you see the DAX Editor, which may be used to edit the DAX expression of any measure or calculated column in the model. Click the "DAX Formatter" button to automatically format the code through www.daxformatter.com. +The **Expression Editor** in the upper right edits the DAX expression of the selected measure or calculated column. **Format DAX** formats the expression through [DAX Formatter](https://www.daxformatter.com). -Use the property grid in the lower right corner, to examine and set properties of objects, such as Format String, Description along with translations and perspective memberships. You can also set the Display Folder property here, but it's easier to simply drag and drop objects within the tree to update their Display Folder (try selecting multiple objects using CTRL or SHIFT). +The property grid in the lower right shows and sets object properties such as `FormatString`, `Description`, translations and perspective membership. To change `DisplayFolder` for several objects at once, select them with **Ctrl** or **Shift** and drag them to a folder in the tree. -To edit perspectives or translations (cultures), select the "Model" object in the tree, and locate the "Model Perspectives" or "Model Cultures" properties, in the property grid. Click the small ellipsis button to open a collection editor for adding/removing/editing perspectives/cultures. +To edit perspectives or translations, select the **Model** object in the tree and select the ellipsis button next to the `Perspectives` or `Cultures` property. A collection editor opens for adding, removing and editing items: ![Editing perspectives - click the ellipsis button to the right](~/content/assets/images/getting-started-te-04.png) -To save your changes back to the Model.bim file, click the save button or hit CTRL+S. If you opened an existing Tabular Database, the changes are saved directly back to the database. You will be prompted if the database was changed since you loaded it into Tabular Editor. You can always undo your changes by pressing CTRL+Z. - -If you want to deploy your model to another location, go to the "Model" menu and choose "Deploy". +Press **Ctrl+S** to save. A model opened from a file saves back to that file, and a model opened from a database saves back to the database. If someone changed the deployed database after you loaded it, a **Change conflict** prompt asks whether to overwrite it. Press **Ctrl+Z** to undo and **Ctrl+Y** to redo. ## Deployment -Tabular Editor comes with a deployment wizard that provides a few benefits compared to deploying from SSDT - especially when deploying to an existing database. After choosing a server and a database to deploy to, you have the following options for the deployment at hand: -![Deployment Wizard](~/content/assets/images/getting-started-te-05.png) +**Model > Deploy...** opens the deployment wizard, which deploys the loaded model to a server. After you select a server and a database, choose which parts of the model to deploy: -Leaving the "Deploy Connections" box unchecked, will make sure that all the data sources on the target database stay untouched. You will get an error if your model contains one or more tables with a data source, that does not already exist in the target database. +![Deployment Wizard](~/content/assets/images/getting-started-te-05.png) -Similarly, leaving out "Deploy Table Partitions", will make sure that existing partitions on your tables are not changed, leaving the data in the partitions intact. +| Option | When cleared | +|--------|--------------| +| **Deploy Data Sources** | Data sources on the target database stay as they are. The deployment fails if a table uses a data source that doesn't exist on the target. | +| **Deploy Table Partitions** | Partitions on the target stay as they are, and so does their data. | +| **Deploy partitions governed by Incremental Refresh Policies** | Partitions created by incremental refresh stay as they are. Requires **Deploy Table Partitions**. | +| **Deploy Shared Expressions** | Shared expressions on the target stay as they are. Requires compatibility level 1400 or higher. | +| **Deploy Roles** | Roles on the target stay as they are. | +| **Deploy Role Members** | Role members on the target stay as they are. Requires **Deploy Roles**. | -When the "Deploy Roles" box is checked, the roles in the target database will be updated to reflect what you have in the loaded model, however if the "Deploy Role Members" is unchecked, the members of each role will be unchanged in the target database. +**Deploy Model Structure** is always selected when the target is an existing database. The other options are selected by default when the model contains that type of object, and **Deploy Roles** when the model contains role members. If the database doesn't exist yet, the wizard deploys data sources, partitions and shared expressions with the model, and only the role options apply. The summary page also has **Export Build...** to write deployment files for the Analysis Services Deployment Wizard and **TMSL Script** to show the deployment as a TMSL script. -## Command Line usage -You can use the command line for automated deployment. All deployment options that are available through the GUI, are also available through the command line. +## Command line -### Deployment Examples +`TabularEditor.exe` runs deployments, scripts and Best Practice Analyzer checks from the command line. The following examples deploy a model: `TabularEditor.exe c:\Projects\Model.bim` -Opens the Tabular Editor GUI and loads the specified Model.bim file (without deploying anything). +Opens Tabular Editor 2 and loads the Model.bim file without deploying anything. `TabularEditor.exe c:\Projects\Model.bim -deploy localhost AdventureWorks` -Deploys the specified Model.bim file to the SSAS instance running on localhost, overwriting or creating the AdventureWorks database. The GUI will not be loaded. +Creates the AdventureWorks database on the Analysis Services instance on localhost, without opening the user interface. If the database already exists, the deployment fails. + +`TabularEditor.exe c:\Projects\Model.bim -deploy localhost AdventureWorks -O -P -R -M` -By default, partitions, data sources and roles will not be overwritten in the target database. This behaviour can be changed by adding one or more of the following switches to the command above: +Overwrites the existing AdventureWorks database, including its partitions, roles and role members. -* `-P` Overwrite **p**artitions -* `-C` Overwrite **c**onnections (data sources) -* `-R` Overwrite **r**oles -* `-M` Overwrite role **m**embers +Add these switches after the database name to control what the deployment overwrites: -More information on command-line options can be found [here](../features/Command-line-Options.md). +- `-O` overwrite an existing database +- `-C` overwrite data sources (**c**onnections) +- `-P` overwrite **p**artitions +- `-Y` skip partitions with incremental refresh policies (with `-P`) +- `-S` overwrite **s**hared expressions +- `-R` overwrite **r**oles +- `-M` overwrite role **m**embers (with `-R`) + +Without these switches, data sources, partitions, shared expressions and roles on the target stay as they are. @command-line-options lists every switch, including scripts, Best Practice Analyzer checks and output for Azure DevOps and GitHub Actions. > [!NOTE] -> Since TabularEditor.exe is a Windows Forms application, running it from the command line will execute the application in a different thread, returning control to the caller immediately. This may cause issues when running deployments as part of a batch job where you need to await successful deployment before proceeding with the job. If you experience these issues, use `start /wait` to let TabularEditor finish its job before returning control to the caller: -> +> `TabularEditor.exe` is a Windows Forms application, so a command-line call returns before the deployment finishes. In a batch job that waits for the deployment, use `start /wait`: +> > `start /wait TabularEditor.exe c:\Projects\Model.bim -deploy localhost AdventureWorks` -## Advanced Scripting -Tabular Editor lets you use C# to script changes to the loaded model. This is practical when you want to apply several changes to many objects at once. The Advanced Script editor has access to two objects: +The [Tabular Editor CLI](xref:te-cli) runs on Windows, macOS and Linux and accepts most `TabularEditor.exe` switches. See @te-cli-migrate. + +## C# scripting + +The **C# Script** tab runs C# code against the loaded model. Use it to apply the same change to many objects at once. Scripts have access to two objects: -* `Selected` which represents all objects that are currently selected in the explorer tree. -* `Model` which represents the entire Tabular Object Model tree. +- `Selected` holds the objects selected in the tree. +- `Model` holds the entire Tabular Object Model. -The Advanced Script editor has some limited IntelliSense functionality to get you started: +The script editor has basic IntelliSense: ![IntelliSense helps you create scripts for Tabular Editor](~/content/assets/images/getting-started-te-06.png) -More documentation and examples on Advanced Scripting, can be [found here](../how-tos/Advanced-Scripting.md). +Tabular Editor 2 calls this feature Advanced Scripting. See @advanced-scripting for the scripting API and examples. + +## Feature comparison + +The table compares Tabular Editor 2, Tabular Editor 3 and the Tabular Editor CLI: + +[!include[feature-comparison](../includes/feature-comparison.partial.md)] + +## Next steps + +- @migrate-from-te2 describes the feature differences between Tabular Editor 2 and Tabular Editor 3. +- @getting-started covers installing Tabular Editor 3 and starting the free trial. +- @te-cli-skill installs a skill that teaches AI coding agents the Tabular Editor CLI commands. diff --git a/content/getting-started/getting-started.md b/content/getting-started/getting-started.md index d703d438d..dd384f683 100644 --- a/content/getting-started/getting-started.md +++ b/content/getting-started/getting-started.md @@ -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 @@ -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. diff --git a/content/how-tos/Importing-Tables.md b/content/how-tos/Importing-Tables.md index 15052fae4..9235d3bfa 100644 --- a/content/how-tos/Importing-Tables.md +++ b/content/how-tos/Importing-Tables.md @@ -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 @@ -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) diff --git a/content/includes/te2-te3-note.partial.md b/content/includes/te2-te3-note.partial.md new file mode 100644 index 000000000..ae371b30a --- /dev/null +++ b/content/includes/te2-te3-note.partial.md @@ -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). diff --git a/content/llms.txt b/content/llms.txt new file mode 100644 index 000000000..7ed8c0ee4 --- /dev/null +++ b/content/llms.txt @@ -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 diff --git a/content/references/FormatDax.md b/content/references/FormatDax.md index 1f798e620..70b5bcabd 100644 --- a/content/references/FormatDax.md +++ b/content/references/FormatDax.md @@ -1,6 +1,7 @@ --- uid: formatdax title: FormatDax deprecation +updated: 2026-11-19 applies_to: products: - product: Tabular Editor 2 @@ -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: diff --git a/content/references/Keyboard-Shortcuts2.md b/content/references/Keyboard-Shortcuts2.md index 18406beb0..22ec94a19 100644 --- a/content/references/Keyboard-Shortcuts2.md +++ b/content/references/Keyboard-Shortcuts2.md @@ -1,6 +1,7 @@ --- uid: shortcuts2 title: Keyboard shortcuts Tabular Editor 2 +updated: 2026-11-19 applies_to: products: - product: Tabular Editor 2 @@ -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| diff --git a/content/references/user-settings-files-te2.md b/content/references/user-settings-files-te2.md index 74cf282fb..24ebf08fc 100644 --- a/content/references/user-settings-files-te2.md +++ b/content/references/user-settings-files-te2.md @@ -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 @@ -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 diff --git a/content/tutorials/direct-lake-guidance.md b/content/tutorials/direct-lake-guidance.md index 65cf5b878..9d5a14bd8 100644 --- a/content/tutorials/direct-lake-guidance.md +++ b/content/tutorials/direct-lake-guidance.md @@ -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 @@ -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). @@ -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.