Powerbi Modeling
github/awesome-copilot
Power BI semantic modeling assistant for building optimized data models.
Direct TMDL file authoring and BIM-to-TMDL conversion for semantic models in PBIP projects.
$ npx skills add data-goblin/power-bi-agentic-development --skill tmdl -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install data-goblin/power-bi-agentic-development tmdl --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/data-goblin/power-bi-agentic-development.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/pbip/skills/tmdl .claude/skills/tmdl && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "tmdl" agent skill from https://github.com/data-goblin/power-bi-agentic-development/tree/main/plugins/pbip/skills/tmdl into .claude/skills/tmdl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tmdl", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/data-goblin/power-bi-agentic-development/tree/main/plugins/pbip/skills/tmdlType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add data-goblin/power-bi-agentic-development --skill tmdl -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install data-goblin/power-bi-agentic-development tmdl --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/data-goblin/power-bi-agentic-development.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/pbip/skills/tmdl .agents/skills/tmdl && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "tmdl" agent skill from https://github.com/data-goblin/power-bi-agentic-development/tree/main/plugins/pbip/skills/tmdl into .agents/skills/tmdl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tmdl", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add data-goblin/power-bi-agentic-development --skill tmdl -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install data-goblin/power-bi-agentic-development tmdl --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/data-goblin/power-bi-agentic-development.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/pbip/skills/tmdl .cursor/skills/tmdl && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "tmdl" agent skill from https://github.com/data-goblin/power-bi-agentic-development/tree/main/plugins/pbip/skills/tmdl into .cursor/skills/tmdl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tmdl", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/data-goblin/power-bi-agentic-development.git --path plugins/pbip/skills/tmdl--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add data-goblin/power-bi-agentic-development --skill tmdl -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install data-goblin/power-bi-agentic-development tmdl --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/data-goblin/power-bi-agentic-development.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/pbip/skills/tmdl .gemini/skills/tmdl && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "tmdl" agent skill from https://github.com/data-goblin/power-bi-agentic-development/tree/main/plugins/pbip/skills/tmdl into .gemini/skills/tmdl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tmdl", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install data-goblin/power-bi-agentic-development tmdlInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add data-goblin/power-bi-agentic-development --skill tmdl -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/data-goblin/power-bi-agentic-development.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/pbip/skills/tmdl .github/skills/tmdl && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "tmdl" agent skill from https://github.com/data-goblin/power-bi-agentic-development/tree/main/plugins/pbip/skills/tmdl into .github/skills/tmdl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tmdl", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add data-goblin/power-bi-agentic-development --skill tmdl -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install data-goblin/power-bi-agentic-development tmdl --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/data-goblin/power-bi-agentic-development.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/pbip/skills/tmdl .opencode/skills/tmdl && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "tmdl" agent skill from https://github.com/data-goblin/power-bi-agentic-development/tree/main/plugins/pbip/skills/tmdl into .opencode/skills/tmdl/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tmdl", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
tmdlDirect TMDL file authoring and BIM-to-TMDL conversion for semantic models in PBIP projects.
Tmdl is an agent skill from data-goblin/power-bi-agentic-development. Direct TMDL file authoring and BIM-to-TMDL conversion for semantic models in PBIP projects. Automatically invoke when the user asks to "edit TMDL", "add a measure in TMDL", "TMDL syntax", "fix formatString", "fix summarizeBy", "TMDL indentation", "convert BIM to TMDL", "add a column description", "create a calculated column in TMDL", or mentions .tmdl file editing or BIM-to-TMDL migration.
Its SKILL.md is about 5.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 63 other files, including reference files.
It sits in Data & Analytics. It works with Power BI and Model Context Protocol. The repository describes itself as: Power BI AI skills and Power BI agents for Claude Code and GitHub Copilot: a plugin marketplace of Power BI skills, subagents, and hooks for semantic models, DAX, TMDL, reports… The licence is GPL-3.0.
Read from SKILL.md and the folder at commit 41886f2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are tmdl).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
learn.microsoft.comsqlbi.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Tmdl loads about 5.4k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 99 tokens; SKILL.md has 1,892 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from data-goblin/power-bi-agentic-development at commit 41886f2, republished under its GPL-3.0 licence (© data-goblin). 1,892 words, ~5,433 tokens.
.claude/skills/tmdl/SKILL.md (or your agent's skills folder). This skill also uses 57 other files; get the full folder from GitHub.Expert guidance for authoring and editing TMDL (Tabular Model Definition Language) files directly in PBIP projects.
This skill is a last resort. Direct TMDL file editing lacks the validation, atomicity, and DAX query capabilities of the Tabular Editor CLI, Power BI MCP server, or the
connect-pbidskill (TOM via PowerShell). Use those tools when available. TMDL editing is appropriate when:
- Working with PBIP files in a Git repo without Power BI Desktop open
- No Tabular Editor CLI or MCP server is installed
- Making quick text-level fixes (descriptions, format strings, display folders) where a full tool chain is overkill
Direct TMDL editing does not validate DAX syntax, check referential integrity, or verify that property values are valid. Errors will only surface when the model is next loaded in Power BI Desktop or deployed via XMLA. Use the
pbip-validatoragent to check TMDL files for syntax issues, indentation errors, and referential integrity before opening in PBI Desktop.
Activate only when the Tabular Editor CLI, Power BI MCP server, or connect-pbid skill are not available, and tasks involve:
.tmdl files directly (measures, columns, tables, relationships)summarizeBy or formatString values/// descriptions and // comments/// (triple-slash) sets the Description property on the object that immediately follows it. A /// line must be immediately followed by a declaration (measure, column, table, etc.); never by a blank line or another ///. Use // for regular comments.TmdlSerializer default to IndentationMode.Tabs. Spaces are also valid (IndentationMode.Spaces, default 4 per level), but be consistent within a file; mixed or incorrect indentation will break the model. Properties of a table are indented one level; properties of a column (which belongs to a table) are indented two levels.expression <name> in expressions.tmdl and a name declared by table <name> in tables/*.tmdl collide; Power BI Desktop fails the load with 'duplicate member <name>'. Pick distinct names; the conventional fix is to suffix the M expression with Query or Source and have partitions reference it via source = #"<Name> Query". validate_pbip.py enforces this as an ERROR.| File | Contents | Location |
|---|---|---|
model.tmdl | Model configuration, ref table entries, query groups, annotations | definition/ |
database.tmdl | Compatibility level, model ID | definition/ |
relationships.tmdl | All relationships between tables | definition/ |
expressions.tmdl | Shared M expressions and parameters | definition/ |
functions.tmdl | DAX user-defined functions (reusable parameterized DAX) | definition/ |
roles/<RoleName>.tmdl | One file per security role (RLS filters, role members, OLS) | definition/roles/ |
perspectives/<Name>.tmdl | One file per perspective (object membership) | definition/perspectives/ |
dataSources.tmdl | Legacy data source definitions (if present) | definition/ |
tables/<Name>.tmdl | Table definition with columns, measures, hierarchies, partitions | definition/tables/ |
cultures/<locale>.tmdl | Linguistic metadata and translations | definition/cultures/ |
Objects must be nested inside their correct parent. The validator enforces these rules:
| Object | Allowed Parent(s) |
|---|---|
column, measure, hierarchy, partition, calculationGroup | table |
level | hierarchy |
calculationItem | calculationGroup |
tablePermission | role |
columnPermission | tablePermission |
perspectiveTable | perspective |
perspectiveColumn, perspectiveMeasure, perspectiveHierarchy | perspectiveTable |
linguisticMetadata, translation | cultureInfo |
dataAccessOptions | model |
formatStringDefinition | measure, calculationItem |
detailRowsDefinition | measure, table |
alternateOf | column |
member | role |
annotation, extendedProperty | any object (including queryGroup, function, member) |
ref | model, table |
Root-level objects (indent 0 only): model, database, table, relationship, role, cultureInfo, perspective, dataSource, expression, queryGroup, function.
TMDL uses whitespace indentation where depth equals nesting level. PBIP files use a single tab per level (the TOM TmdlSerializer default), so all examples below use tabs:
table Product // depth 0: top-level declaration
lineageTag: abc-123 // depth 1: table property
measure '# Products' = // depth 1: measure declaration
COUNTROWS ( // depth 3: DAX expression body (one deeper than properties)
VALUES ( Product[Name] ) // depth 3: continued
) // depth 3: continued
formatString: #,##0 // depth 2: measure property
displayFolder: Measures // depth 2: measure property
lineageTag: def-456 // depth 2: measure property
column 'Product Name' // depth 1: column declaration
dataType: string // depth 2: column property
lineageTag: ghi-789 // depth 2: column property
summarizeBy: none // depth 2: column property
sourceColumn: Product Name // depth 2: column property
annotation SummarizationSetBy = Automatic // depth 2: column annotationKey rules:
///)Triple-slash sets the Description property on the next declaration. This is native TMDL syntax (not a Tabular Editor extension); the TMDL spec treats /// as first-class description support.
/// Count of distinct products in the current filter context.
measure '# Products' =
COUNTROWS ( VALUES ( Product[Product Name] ) )
formatString: #,##0
lineageTag: abc-123Rules:
/// must be immediately followed by a declaration on the next line/// and the declaration/// lines concatenate into a single description/// applies to the next measure, column, table, hierarchy, or levelCommon mistake:
// WRONG: blank line between /// and declaration
/// This is a description.
measure 'My Measure' = 1
// WRONG: /// used as a separator comment
///
measure 'My Measure' = 1
// RIGHT: /// immediately before declaration
/// This is a description.
measure 'My Measure' = 1
// RIGHT: // used for regular comments
// This is just a comment, not a description.
measure 'My Measure' = 1//)Double-slash is a regular comment with no semantic effect:
// This is a comment — it does not set any property
measure 'My Measure' = 1Properties should follow a consistent order, though TMDL is not strict about it. The conventional order is:
For columns: dataType, isHidden, isKey, displayFolder, lineageTag, summarizeBy, isNameInferred, sourceColumn, sortByColumn, then annotations.
For measures: DAX expression (on the = line or multi-line), formatString or formatStringDefinition, displayFolder, lineageTag, then annotations.
Use single quotes around names that contain any of these characters:
'Product Name''Sales.Amount''Price = Target''Date:Key''Customer''s Name''Sales ($)', 'OTD % (Value)', '1) Selected Metric''4) Selected Period'Do not quote names that are simple identifiers:
Product (simple word)_Measures (underscore prefix, no spaces)Date (simple word)CgMetricQuantity (PascalCase, no spaces)table Product // unquoted: simple name
table _Measures // unquoted: underscore prefix
table 'Budget Rate' // quoted: contains space
table 'Invoice Document Type' // quoted: contains spaces
table '1) Selected Metric' // quoted: starts with digit
table 'On-Time Delivery' // quoted: contains spaceFor complete column examples (basic, hidden, key, sortByColumn, description), see references/tmdl-file-examples.md. For full property reference, see references/column-properties.md.
Key column pattern:
column 'Product Name'
dataType: string
displayFolder: 1. Product Hierarchy
lineageTag: abc-123
summarizeBy: none
sourceColumn: Product Name
annotation SummarizationSetBy = Automaticmeasure '# Products' = COUNTROWS ( VALUES ( Product[Product Name] ) )
formatString: #,##0
displayFolder: Measures
lineageTag: abc-123Two syntaxes for multi-line DAX:
1. Indented block (most common) -- expression body indented two levels deeper than the declaration:
2. Triple-backtick block -- DAX enclosed in ``` fences, useful for expressions with complex indentation:
measure Percentage = ```
VAR _Total = CALCULATE( SUM ( 'Table'[Quantitative] ), REMOVEFILTERS ( ) )
RETURN
DIVIDE ( SUM ( 'Table'[Quantitative] ), _Total )
```
formatString: 0.0%;-0.0%;0.0%
lineageTag: abc-123Indented block syntax (standard approach) -- indented two extra tabs from the measure's parent (table) level:
measure 'Actuals MTD' =
CALCULATE (
[Actuals],
CALCULATETABLE (
DATESMTD ( 'Date'[Date] ),
'Date'[IsDateInScope]
)
)
formatString: #,##0
displayFolder: 2. MTD\Actuals
lineageTag: abc-123/// Number of workdays elapsed month-to-date, considering only dates in scope.
measure '# Workdays MTD' =
CALCULATE(
MAX( 'Date'[Workdays MTD] ),
'Date'[IsDateInScope] = TRUE
)
formatString: #,##0
displayFolder: 5. Weekday / Workday\Measures\# Workdays
lineageTag: abc-123measure 'Sales Target MTD vs. Actuals (%)' =
Comparison.RelativeToTarget (
[Actuals MTD],
[Sales Target MTD]
)
displayFolder: 2. MTD\Sales Target
lineageTag: abc-123
formatStringDefinition =
FormatString.Comparison.RelativeToTarget (
"SUFFIX",
1,
"ARROWS",
"",
""
)Note: formatStringDefinition replaces formatString when the format is computed dynamically via a DAX expression (often a calculation group format function).
For complete examples of calculated columns, roles (RLS/OLS), calculation groups, date table marking, hierarchies, partitions, relationships, shared expressions, and model configuration, see references/tmdl-file-examples.md.
| Column Type | Correct summarizeBy | Reason |
|---|---|---|
| Keys (surrogate/natural) | none | Keys are never aggregated |
| Attributes (names, codes, types) | none | Text attributes are never summed |
| Dates | none | Dates are never summed |
| Boolean flags | none | Flags are never summed |
| Additive numeric facts (amounts, quantities) | sum | Default aggregation is SUM |
| Non-additive numeric facts (rates, percentages) | none | Cannot be meaningfully summed |
Common fix pattern — changing summarizeBy: sum to summarizeBy: none for key columns:
// Before (wrong - key column should not sum)
column 'Customer Key'
dataType: int64
isHidden
lineageTag: abc-123
summarizeBy: sum
sourceColumn: Customer Key
// After (correct)
column 'Customer Key'
dataType: int64
isHidden
lineageTag: abc-123
summarizeBy: none
sourceColumn: Customer Key| Data Type | Pattern | Example |
|---|---|---|
| Integer | #,##0 | 1,234 |
| Decimal (2 places) | #,##0.00 | 1,234.56 |
| Percentage | #,##0% or 0.00% | 85% or 85.00% |
| Currency | $#,##0.00 | $1,234.56 |
| Date | mm/dd/yyyy or dd/mm/yyyy | 01/15/2024 |
Power BI Desktop may add a PBI_FormatHint annotation alongside formatString:
column Amount
dataType: decimal
formatString: #,##0.00
lineageTag: abc-123
summarizeBy: sum
sourceColumn: Amount
annotation SummarizationSetBy = Automatic
annotation PBI_FormatHint = {"isGeneralNumber":true}Do not fight this annotation. Power BI tooling re-adds it automatically. When setting a formatString, leave any existing PBI_FormatHint in place. If Power BI re-adds a removed PBI_FormatHint, accept it.
For the complete property reference for every object type, see references/object-properties.md.
| Object | Property | Values | Notes |
|---|---|---|---|
| Column | dataType | string, int64, double, decimal, dateTime, boolean, binary, unknown, variant, automatic | Required for data columns |
| Column | summarizeBy | default, none, sum, min, max, count, average, distinctCount | Use none for keys/attributes |
| Column | type | data, calculated, rowNumber, calculatedTableColumn | Column type variant |
| Column | isHidden | (flag, no value) | Boolean flags: write the keyword alone on its own line |
| Column | isKey | (flag, no value) | Marks the column as the table's key |
| Column | isNullable | (flag, no value) | Column allows nulls |
| Column | isUnique | (flag, no value) | Column values are unique |
| Column | isNameInferred | (flag, no value) | Name inferred from source |
| Column | isDefaultLabel | (flag, no value) | Default label for the table |
| Column | isDefaultImage | (flag, no value) | Default image for the table |
| Column | isDataTypeInferred | (flag, no value) | Data type inferred from source |
| Column | isAvailableInMdx | (flag, no value) | Available in MDX queries |
| Column | keepUniqueRows | (flag, no value) | Keep unique rows |
| Column | encodingHint | default, hash, value | Storage encoding hint |
| Column | alignment | default, left, right, center | Column alignment |
| Column | displayFolder | folder path string | Use \ for nesting: 1. Year\Quarter |
| Column | sourceColumn | source column name | Must match the Power Query output column |
| Column | sortByColumn | column name reference | Column to sort by (e.g., month name sorted by month number) |
| Column | expression | DAX expression | For calculated columns |
| Measure | formatString | format pattern | e.g., #,##0, 0.00% |
| Measure | displayFolder | folder path string | Use \ for nesting |
| Measure | formatStringDefinition | DAX expression block | Dynamic format string (replaces formatString) |
| Measure | isHidden | (flag, no value) | Hide the measure |
| Measure | isSimpleMeasure | (flag, no value) | Simple implicit-style measure |
| Measure | dataCategory | string | Semantic data category |
| Partition | mode | import, directQuery, default, push, dual, directLake | Storage mode |
| Partition | sourceType | query, calculated, none, m, entity, policyRange, calculationGroup, inferred | Source type |
| Relationship | crossFilteringBehavior | oneDirection, bothDirections, automatic | Cross-filter direction |
| Relationship | securityFilteringBehavior | oneDirection, bothDirections, none | RLS filter direction |
| Relationship | fromCardinality / toCardinality | none, one, many | Cardinality ends |
| Relationship | isActive | (flag, no value) | Active relationship |
| Role | modelPermission | none, read, readRefresh, refresh, administrator | Role permission level |
| Model | discourageImplicitMeasures | (flag, no value) | Disables implicit measures |
| Model | defaultPowerBIDataSourceVersion | powerBI_V1, powerBI_V2, powerBI_V3 | PBI data source version |
| Model | directLakeBehavior | automatic, directLakeOnly, directQueryOnly | Direct Lake mode |
| All | lineageTag | GUID | Unique identifier, do not change existing values |
Rule: a multi-line DAX body is always 2 levels deeper than its enclosing object declaration.
| Context | Depth | Tabs |
|---|---|---|
Top-level declaration (table, relationship, expression) | 0 | 0 |
| Table properties, column/measure/hierarchy declarations | 1 | 1 |
| Column/measure properties, hierarchy levels | 2 | 2 |
| DAX body for measure/column declared at depth 1 (inside table) | 3 | 3 |
| Level properties | 3 | 3 |
DAX body for top-level function declared at depth 0 | 2 | 2 |
calculationItem inside calculationGroup (depth 1) | 2 | 2 |
DAX body for calculationItem at depth 2 | 4 | 4 |
references/object-properties.md - Complete property reference for all 30+ TMDL object types with valid enum values for every property type (dataType, summarizeBy, modeType, crossFilteringBehavior, etc.)references/column-properties.md - Column-specific property guide with summarizeBy rules, formatString patterns, PBI_FormatHint behaviorreferences/naming-conventions.md - SQLBI naming conventions, display folder conventions, measure table conventions, and calculation group namingreferences/bim-to-tmdl.md - Converting between model.bim (TMSL) and definition/ (TMDL) via Tabular Editor CLI or TOM TmdlSerializerreferences/tmdl-file-examples.md - Complete examples for every TMDL file type (model, database, expressions, relationships, roles, perspectives, tables, cultures) including backtick-enclosed expressions, field parameters, calculation groups, and date tablesTo retrieve current TMDL reference docs, use microsoft_docs_search + microsoft_docs_fetch (MCP) if available, otherwise mslearn search + mslearn fetch (CLI). Search based on the user's request and run multiple searches as needed to ensure sufficient context before proceeding.
examples/SpaceParts.SemanticModel/ -- Complete real-world TMDL model (SpaceParts) with 40 tables, 152 measures, 8 calculation groups, 8 RLS roles, 2 perspectives, DAX UDFs (functions.tmdl), shared M expressions, relationships, and cultures. Covers every TMDL file type. Key files to study:definition/functions.tmdl -- DAX user-defined functions with parameters, types, and multi-line expressionsdefinition/tables/Z04CG1 - Time Intelligence.tmdl -- Calculation group with triple-backtick DAXdefinition/tables/__Measures.tmdl -- Measures table with calculation group referencesdefinition/tables/Invoices.tmdl -- Large fact table (51 measures, 18 columns)definition/tables/Date.tmdl -- Calculated date table with 42 columnsdefinition/roles/Account Managers.tmdl -- RLS role with DAX filter expressiondefinition/relationships.tmdl -- 27 relationships including inactivedefinition/expressions.tmdl -- Shared M/Power Query expressions and parametersdefinition/perspectives/Measure Selection.tmdl -- Perspective definition© data-goblin, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 57 other files (references) in plugins/pbip/skills/tmdl of data-goblin/power-bi-agentic-development.
Open the folder on GitHubat commit 41886f2
Tmdl next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Tmdl this skilldata-goblin/power-bi-agentic-development | 1k | — | ~5.4k | Automated safety check: Pass | GPL-3.0 | |
| Powerbi Modelinggithub/awesome-copilot | 40k | 1 repos | ~1.5k | Automated safety check: Pass | MIT | |
| Powerbi MCPKilo-Org/kilo-marketplace | 189 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Ketch1broseidon/ketch | 696 | 1 repos | ~3.9k | Automated safety check: Pass | MIT | |
| Find Hypertable Candidatestimescale/pg-aiguide | 1.9k | 1 repos | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Retentioneering Contributingretentioneering/retentioneering-tools | 920 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 |
github/awesome-copilot
Power BI semantic modeling assistant for building optimized data models.
Kilo-Org/kilo-marketplace
Safety and governance protocol for Power BI semantic model sessions via MCP.
1broseidon/ketch
Research skill for ketch — a fast stateless CLI for web search, OSS code search, curated library docs, page scraping, and site crawling; an optional MCP server exists for operators who want it, but…
timescale/pg-aiguide
A skill your agent uses to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables.
retentioneering/retentioneering-tools
Help the user turn their Retentioneering ideas, friction reports, bug findings, or feature needs into high-quality upstream contributions: from capturing and validating the idea, through minimal…
retentioneering/retentioneering-tools
Analyze event logs, clickstreams, user paths, product funnels, retention, behavioral segments, transition graphs, step matrices, sequence patterns, and customer journeys using Retentioneering.
data-goblin/power-bi-agentic-development
Author, validate, publish, and test Power BI paginated reports in the RDL format.
data-goblin/power-bi-agentic-development
Automatically invoke this skill whenever the user asks about Fabric tenant settings or Power BI tenant settings or auditing tenant settings.
data-goblin/power-bi-agentic-development
Interactive BPA rule generation for Power BI semantic models; guided discovery, model investigation, and expert rule authoring.
data-goblin/power-bi-agentic-development
Guidance for Power BI Project (PBIP) structure, thick and thin reports, project renames, forks, and validation.
data-goblin/power-bi-agentic-development
Actionable feedback on the quality, usage, and effectiveness of Power BI reports.
data-goblin/power-bi-agentic-development
This skill should be used whenever the user mentions a "semantic model", "data model", or "dataset", or asks to "build", "model", "design", "optimize", "review", or "audit" one, or to "add a…
Works with
Categories
Direct TMDL file authoring and BIM-to-TMDL conversion for semantic models in PBIP projects. Tmdl is an agent skill from data-goblin/power-bi-agentic-development. Direct TMDL file authoring and BIM-to-TMDL conversion for semantic models in PBIP projects.
Tmdl fits situations like: asks to edit TMDL; add a measure in TMDL; fix formatString; fix summarizeBy.
Run `npx skills add data-goblin/power-bi-agentic-development --skill tmdl -a claude-code`. Or copy the skill folder (plugins/pbip/skills/tmdl in data-goblin/power-bi-agentic-development) into .claude/skills/tmdl in your project. Claude Code loads it when a task matches its description.
Run `npx skills add data-goblin/power-bi-agentic-development --skill tmdl -a codex`. Or copy the skill folder (plugins/pbip/skills/tmdl in data-goblin/power-bi-agentic-development) into .agents/skills/tmdl in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add data-goblin/power-bi-agentic-development --skill tmdl -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tmdl, .gemini/skills/tmdl, .github/skills/tmdl and .opencode/skills/tmdl in your project.
SKILL.md names no scripts, command-line tools or credentials: Tmdl is instructions for the agent only.
SKILL.md names 2 domains. As links in the text: learn.microsoft.com and sqlbi.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Tmdl is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 5.4k tokens (SKILL.md is roughly 22k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.8k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Tmdl: Powerbi Modeling (github/awesome-copilot, 40k stars), Powerbi MCP (Kilo-Org/kilo-marketplace, 189 stars), Ketch (1broseidon/ketch, 696 stars) and Find Hypertable Candidates (timescale/pg-aiguide, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
data-goblin (a GitHub user) maintains it in data-goblin/power-bi-agentic-development, which has 1,026 GitHub stars. The repository holds 33 skills in this directory. The repository was last updated on October 5, 2026.
Source: data-goblin/power-bi-agentic-development on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.