Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tmdl-mastery

БесплатноБез исполняемых скриптовНе проверен

TMDL (Tabular Model Definition Language) mastery for Power BI semantic models. PROACTIVELY activate for: (1) writing or editing TMDL files, (2) TMDL syntax…

JosiahSiegelот JosiahSiegel★ 67 звёзд на GitHub

Об этом скилле

TMDL (Tabular Model Definition Language) Mastery

Overview

TMDL reference for language syntax, folder structure, object types, expressions, serialization API, CI/CD, and deployment. TMDL is the human-readable, source-control-friendly format for Power BI and Analysis Services semantic models at compatibility level 1200+.

2026 Status Snapshot

Aspect Status (as of April 2026)
TMDL language GA GA since August 2024 -- no longer preview
TMDL view in Power BI Desktop GA -- semantic highlighting, autocomplete, code actions, diff preview, compatibility prompts
TMDL as default PBIP semantic-model format Default -- model.bim is the legacy BIM format; new PBIP projects write definition/*.tmdl files
Fabric Git integration Exports semantic models as TMDL (not TMSL/BIM)
TMSL / BIM Not deprecated -- still supported for XMLA scripting commands and tools that require JSON. Use TMDL for source control, TMSL for XMLA createOrReplace command scripting
Compatibility level 1550+ recommended; 1601+ required for some newer properties (e.g., formatStringDefinition, calculation group multi/empty selection expressions)
Tabular Editor 2 (free) TMDL read/write support (2.17+)
Tabular Editor 3 (paid) Full TMDL IDE with DAX debugger and diagram view
VS Code TMDL extensions Microsoft analysis-services.TMDL and community CPIM.TMDL-language-support (DAX + M highlighting, code actions, formatting, breadcrumbs)
Report Server No TMDL support -- continues to use legacy PBIX binary format

Bottom line: Use TMDL for new Power BI / Fabric semantic models under source control. Retain TMSL for XMLA scripting or tools that require model.bim.

TMDL vs TMSL vs BIM

Aspect TMDL (.tmdl folder) TMSL / BIM (model.bim)
Format YAML-like text, indentation-based Single JSON file
Files One file per table, role, culture, perspective One monolithic file
Git friendliness Excellent -- granular diffs, minimal merge conflicts Poor -- entire model in one diff
Human readability High -- minimal delimiters, DAX/M inline Low -- escaped JSON strings
Tooling VS Code extension, TMDL view in Desktop, Tabular Editor 3 Any JSON editor, Tabular Editor 2/3
API TmdlSerializer (.NET) JsonSerializer (.NET), TMSL commands
Migration Can convert from BIM via Tabular Editor or Desktop Default legacy format

When to use TMDL: Any new source-controlled, CI/CD, or team PBIP project.

When to use TMSL/BIM: Legacy projects, Report Server (no TMDL support), or tools that only accept BIM.

Object Declaration Syntax

Declare objects by specifying the TOM object type followed by its name:

model Model
    culture: en-US

table Sales

    measure 'Sales Amount' = SUM(Sales[Amount])
        formatString: $ #,##0

    column 'Product Key'
        dataType: int64
        sourceColumn: ProductKey
        summarizeBy: none

Key rules:

  • Enclose names in single quotes if they contain dot, equals, colon, single quote, or whitespace
  • Escape single quotes within names by doubling them: 'My ''Special'' Table'
  • Child objects are implicitly nested under their parent via indentation (no explicit collections)
  • Child objects need not be contiguous -- columns and measures can interleave freely

Property Syntax

Properties use colon delimiter; expressions use equals delimiter:

column Category
    dataType: string          /// colon for non-expression properties
    sortByColumn: 'Cat Order' /// colon for object references
    isHidden                  /// boolean shortcut (true implied)
    isAvailableInMdx: false   /// explicit boolean

measure Total = SUM(Sales[Amount])   /// equals for default expression
    formatString: $ #,##0            /// colon for properties after expression

Text property values: Leading/trailing double-quotes optional and auto-stripped. Required if value has leading/trailing whitespace. Escape internal double-quotes by doubling them.

Default Properties by Object Type

Object Type Default Property Language
measure Expression DAX
calculatedColumn Expression DAX
calculationItem Expression DAX
partition (M) Expression M
partition (calculated) Expression DAX
tablePermission FilterExpression DAX
namedExpression Expression M
annotation Value Text
jsonExtendedProperty Value JSON

Default properties use equals (=) on the same line or as multi-line expression on the following lines.

Expressions -- Single-Line and Multi-Line

/// Single-line expression
measure 'Sales Amount' = SUM(Sales[Amount])

/// Multi-line expression (indented one level deeper than parent properties)
measure 'YoY Growth %' =
        VAR CurrentSales = [Sales Amount]
Полный SKILL.md на GitHub

Установить tmdl-mastery в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/tmdl-cicd-patterns.mdreferences/tmdl-examples-cookbook.mdreferences/tmdl-programmatic-python.mdreferences/tmdl-syntax-reference.md

FAQ

Что делает скилл tmdl-mastery?

TMDL (Tabular Model Definition Language) mastery for Power BI semantic models. PROACTIVELY activate for: (1) writing or editing TMDL files, (2) TMDL syntax (model.tmdl, database.tmdl, relationships.tmdl, table folders), (3) TMDL serialization (TmdlSerializer, folder-based vs single-file), (4) TMDL view in Power BI Desktop, (5) TMDL vs TMSL vs BIM format selection, (6) TMDL expressions, calculation groups, perspectives, cultures, translations, annotations, (7) TMDL roles and security, (8) TMDL ref keyword and createOrReplace scripts, (9) TMDL CI/CD integration (Git, deployment), (10) TMDL hierarchies and partitions. Provides: TMDL syntax reference, folder-layout templates, serialization patterns, ref/createOrReplace recipes, and Git integration setup.

Как установить скилл tmdl-mastery?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tmdl-mastery запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить tmdl-mastery с