Agent skill

Pbi Dax Create

by xperiun in xperiun/skills-xperiun-free

Cria medida DAX a partir de descrição em PT, respeitando o modelo Power BI existente (colunas reais, naming convention, padrões DAX).

MITAuto-check passedData & Analytics

Install Pbi Dax Create

skills CLI
$ npx skills add xperiun/skills-xperiun-free --skill pbi-dax-create -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xperiun/skills-xperiun-free pbi-dax-create --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xperiun/skills-xperiun-free.git skills-src && mkdir -p .claude/skills && cp -r skills-src/claude-code/pbi-dax-create .claude/skills/pbi-dax-create && rm -rf skills-src

Use ~/.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/

Facts

Skill name
pbi-dax-create
GitHub stars
116
Token cost
~2.6k tokens
SKILL.md length
1,334 words
Files
4 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Cria medida DAX a partir de descrição em PT, respeitando o modelo Power BI existente (colunas reais, naming convention, padrões DAX).

  • Works in 7 steps: Detectar e mapear o modelo → Interpretar a solicitação → Aplicar padrões DAX → …
  • Data & Analytics work in your project
  • SKILL.md covers Quando usar, Pré-requisitos, Modos de execução and Inputs, plus 8 more sections
  • Calls git

What it does

Pbi Dax Create is an agent skill from xperiun/skills-xperiun-free. Cria medida DAX a partir de descrição em PT, respeitando o modelo Power BI existente (colunas reais, naming convention, padrões DAX). Use quando o usuário pedir "cria medida pra X", "preciso de DAX que faça Y", "quero calcular Z", "uma fórmula pra...", ou qualquer pedido pra gerar nova medida em projeto PBIP aberto.

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/exemplos.md`, `references/padroes.md` and `templates/output-medida.md`).

It sits in Data & Analytics. It works with Power BI. The repository describes itself as: 3 skills oficiais do Claude pra documentar, auditar e criar DAX no Power BI. Funciona no Claude.ai grátis. Open source. 2 minutos pra instalar. The licence is MIT.

When your agent uses it

  • Data & Analytics work in your project

Example prompts

  • “cria medida pra X”
  • “preciso de DAX que faça Y”
  • “quero calcular Z”
  • “/pbi-dax-create”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Detectar e mapear o modelo
  2. Interpretar a solicitação
  3. Aplicar padrões DAX
  4. Aplicar padrão de nomenclatura
  5. Gerar a medida
  6. Retornar no chat
  7. Aplicação opcional

What it can do on your machine

Read from SKILL.md and the folder at commit a99d99e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pbi Dax Create loads about 2.6k tokens when it runs, and up to ~7.2k if it reads all its reference files. Until then it costs about 83 tokens; SKILL.md has 1,334 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~83
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.2k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from xperiun/skills-xperiun-free at commit a99d99e, republished under its MIT licence (© xperiun). 1,334 words, ~2,559 tokens.

Download SKILL.mdSave it as .claude/skills/pbi-dax-create/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
pbi-dax-create
description
Cria medida DAX a partir de descrição em PT, respeitando o modelo Power BI existente (colunas reais, naming convention, padrões DAX). Use quando o usuário pedir "cria medida pra X", "preciso de DAX que faça Y", "quero calcular Z", "uma fórmula pra...", ou qualquer pedido pra gerar nova medida em projeto PBIP aberto.

/pbi-dax-create — Criação de medida DAX

📦 Parte do xperiun/skills-xperiun-free: pasta claude-code/pbi-dax-create/ (Claude Code) + claude-web/pbi-dax-create.zip (upload no Claude.ai).

Gera medidas DAX a partir de descrição em linguagem natural, respeitando o modelo existente:

  • Usa as colunas e tabelas que realmente existem (sem inventar)
  • Detecta o padrão de nomenclatura do projeto (Title Case, camelCase, com prefixos, etc.) e segue
  • Aplica boas práticas DAX automaticamente (DIVIDE em vez de /, SUMX vs SUM correto, time intelligence apropriado)
  • Avisa se a medida pedida já existe ou tem similar parecida
  • Faz pergunta clarificadora quando o pedido é ambíguo

Output principal: medida DAX no chat com nome, fórmula completa, explicação linha-a-linha e onde colar. Opcional: aplica direto no .tmdl (com aprovação explícita).

Quando usar

  • Analista que sabe o que quer mas quer pular o "digitar DAX no editor"
  • Líder de dados criando medidas em batch sem abrir Power BI Desktop
  • Refatorando uma medida pra padrão DAX recomendado
  • Onboarding: aprendiz descreve em PT e a skill mostra a forma correta

Não usar quando:

  • Quer documentar medidas existentes → use /pbi-doc
  • Quer auditar qualidade de modelo → use /pbi-modelo-review
  • Quer refatorar medidas existentes em batch (skill futura /pbi-dax-refactor)
  • Quer apenas explicar um DAX que já existe (use /pbi-doc que tem isso)

Pré-requisitos

  1. Projeto em formato PBIP (Power BI Project) — pasta com .SemanticModel/. Se faltar, instruir conversão e encerrar.
  2. Acesso aos arquivos .tmdl (via filesystem ou upload — ver "Modos de execução" abaixo)

Se faltar PBIP, mensagem curta:

Esse projeto ainda está em .pbix (binário). Pra eu criar medidas com base no modelo real, salva como Power BI Project: File → Save as → Power BI Project (.pbip). Sem isso eu não consigo ler colunas/medidas existentes pra te dar uma medida que funciona.

Modos de execução

A skill detecta automaticamente o ambiente e adapta input/output:

Modo Code (Claude Code · Desktop · file-based)
  • Detecção: tenho acesso a filesystem e a pasta atual contém .SemanticModel/
  • Input: leio automaticamente os .tmdl da pasta
  • Output: medida no chat. Se aprovado, edito direto o .tmdl da tabela host
Modo Web (Claude.ai · upload-based)
  • Detecção: não tenho acesso a filesystem (claude.ai web)
  • Input: peço ao usuário pra anexar os arquivos:

    Pra eu criar uma medida que funciona com o seu modelo real, anexe nesse chat:

    • model.tmdl (lista geral de tabelas)
    • O .tmdl da tabela onde a medida vai ficar (ex: Medidas.tmdl)
    • Se a medida vai usar colunas/medidas de outras tabelas, anexa também esses .tmdl

    Pode arrastar individualmente ou zipar tudo num arquivo só.

  • Output: medida no chat (3 nomes + DAX + explicação + onde colar). Como não posso editar arquivo direto no web, devolvo o bloco TMDL pronto pra usuário copiar e colar manualmente no arquivo (ou no Power BI Desktop).
Detecção automática

Verificar se a pasta .SemanticModel/ é acessível via filesystem:

  • ✅ Sim → Modo Code (file-based, edição direta possível)
  • ❌ Não → Modo Web (peço uploads, devolvo bloco pra copiar)

Se ambíguo, perguntar uma vez:

Você tá rodando isso no Claude Code (CLI/IDE com acesso à pasta) ou no claude.ai (web)? Pra Code eu posso editar o .tmdl direto; pra web você precisa colar o bloco que eu te mando.

Inputs

  • Descrição em PT (obrigatório) — o que a medida deve calcular
  • (Opcional) Tabela host — onde colocar. Default: tabela Medidas se existir, senão pergunta

Se descrição for vaga ou ambígua (ex: "vendas totais" — bruto ou líquido?), fazer 1 pergunta clarificadora antes de gerar.

Processo

1. Detectar e mapear o modelo
  • Confirmar .SemanticModel/
  • Ler model.tmdl (config), relationships.tmdl, tables/*.tmdl
  • Ignorar LocalDateTable_* e DateTableTemplate_* (auto-date hidden)
  • Inventariar:
    • Tabelas (e qual delas é "Medidas" container, se existir)
    • Todas as colunas tipadas (qual tabela, tipo, papel inferido)
    • Todas as medidas existentes (nome, DAX, displayFolder)
    • Padrão de naming detectado nas medidas (ver references/padroes.md)
2. Interpretar a solicitação

Da descrição em PT, identificar:

  • Tipo de cálculo: agregação simples (soma/média/contagem), divisão (%, ratio), comparação temporal (YoY, MTD, YTD), ranking, filtro condicional, lógica IF/SWITCH
  • Colunas/medidas necessárias: tem que existir no modelo. Se a descrição menciona algo que não existe → sugerir alternativas reais
  • Granularidade implícita: se "total" provavelmente quer SUM/SUMX, se "média" AVERAGE, se "único/distintos" DISTINCTCOUNT, etc.

Se ambíguo, parar e perguntar (1 pergunta única, objetiva). Exemplos:

  • "vendas totais" → "Total de qual coisa? (a) Receita bruta com SUMX(Vendas, Qtd × Preço), (b) Receita líquida com algum desconto/devolução, (c) Quantidade total de itens vendidos"
  • "% de margem" → "Sobre o quê? (a) Margem Bruta / Faturamento, (b) Margem Líquida / Receita Líquida"
3. Aplicar padrões DAX

Ler references/padroes.md e seguir as regras:

  • DIVIDE(num, den) em vez de num / den (evita ∞ e erros silenciosos)
  • SUMX(tabela, expressão) quando expressão envolve mais de 1 coluna por linha
  • SUM(tabela[col]) quando é soma simples de 1 coluna
  • DISTINCTCOUNT() em coluna inteira (key) quando possível
  • Time intelligence (SAMEPERIODLASTYEAR, DATEADD, DATESYTD) sempre referenciando coluna de tabela calendário
  • CALCULATE com filter modifier explícito quando precisa modificar contexto
  • VAR ... RETURN pra medidas com 3+ passos lógicos (legibilidade)
Show full SKILL.md (551 more words)Show less
4. Aplicar padrão de nomenclatura

Detectar o padrão usado nas medidas existentes do projeto (ver references/padroes.md seção naming):

  • Title Case PT (Total Vendas, % Margem Bruta)
  • Prefixo de tipo (% Faturamento YoY, # Pedidos, Δ MoM)
  • camelCase (totalVendas)
  • Mistura (sinalizar que tá inconsistente, sugerir o mais comum)

Sempre gerar 3 sugestões de nome seguindo o padrão dominante.

5. Gerar a medida

Verificar antes de retornar:

  • ✅ Todas as colunas/medidas referenciadas existem no modelo
  • ✅ DAX segue boas práticas
  • ✅ Nome segue padrão do projeto
  • ⚠️ Existe medida similar no modelo? (busca por nome parecido OU mesma fórmula) → avisar antes de duplicar
6. Retornar no chat

Usar o formato definido em templates/output-medida.md. Resposta:

  • 3 sugestões de nome (1ª recomendada, com justificativa)
  • DAX completo formatado
  • Explicação linha-a-linha em PT
  • Onde colar (qual .tmdl, em qual seção/displayFolder)
  • displayFolder sugerido (se aplicável)
7. Aplicação opcional

Ao final, perguntar:

Quer que eu aplique direto no Medidas.tmdl (vou editar o arquivo) ou prefere só copiar e colar no Power BI manualmente?

Default seguro: só mostra. Aplica direto somente se o usuário disser sim explicitamente.

Se aplicar:

  • Localizar a tabela host no .tmdl
  • Inserir a medida na seção correta (alfabética dentro do displayFolder)
  • Adicionar description: opcional se útil
  • Salvar
  • Não commita

Outputs

Modo padrão (só sugere):

  • Resposta no chat com nome + DAX + explicação + instruções de colar
  • Nenhum arquivo modificado

Modo aplicar (com aprovação explícita):

  • .tmdl da tabela host modificado (medida inserida)
  • Resumo curto no chat: "Medida X adicionada em Medidas.tmdl, linha Y"

Edge cases

CenárioO que fazer
Descrição muito vaga1 pergunta clarificadora antes de gerar
Coluna pedida não existeSugerir as 2-3 colunas reais mais próximas + perguntar qual
Medida pedida já existe (mesmo nome)Avisar e perguntar: substituir ou criar com nome diferente?
Medida com fórmula similar já existeAvisar e mostrar a existente — perguntar se é o que ele quer ou se realmente quer criar nova
Sem tabela "Medidas" no modeloListar tabelas e perguntar onde colocar (ou sugerir criar tabela vazia "Medidas")
Time intelligence sem dim Calendario marcadaAvisar limitação + criar a medida mas sinalizar que pode dar resultado errado
Modelo enorme (>500 medidas)Carregar só nomes+DAX-essência das existentes (não DAX completo) pra evitar contexto explodir

Tom

Estilo Xperiun:

  • Direto: vai pra fórmula sem rodeio teórico
  • Didático mas não condescendente: explica linha-a-linha em PT, mas no nível de quem já sabe DAX
  • Provocativo quando útil: se o pedido tem antipattern óbvio, sinaliza ("você quer SUMX direto em fato de 5M linhas? Pode dar trabalho — alternativa: ...")
  • PT-BR com todos os acentos

Exemplos:

❌ Ruim: "Para calcular o faturamento, podemos utilizar a função SUMX que iterará..."

✅ Bom: "Faturamento — SUMX em fVendas multiplicando QtdItens × PrecoUnitario. Mais limpo que coluna calculada (que infla a fato)."

Segurança / Blast radius

  • Lê arquivos .tmdl (texto puro)
  • Modo padrão: zero modificação no projeto
  • Modo aplicar: edita só o .tmdl da tabela host, nunca toca outros
  • NÃO commita
  • NÃO faz rede — operação 100% local

Tom dos avisos sobre risco

Quando aplicar direto:

  • Antes: "Vou editar Medidas.tmdl e adicionar a medida na seção 0. Medidas Padrão. Pode?"
  • Após: "Adicionada. Abre o Power BI Desktop e ele vai recarregar o modelo automaticamente. Se quiser desfazer, só rodar git diff e descartar."

Tempo típico

  • Medida simples (agregação ou divisão): 15–30s
  • Medida com time intelligence ou múltiplos VAR: 30–60s
  • Medida que requer pergunta clarificadora: + tempo de ida-e-volta com você

Versão

Distribuída no repo público xperiun/skills-xperiun-free.

© xperiun, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in claude-code/pbi-dax-create of xperiun/skills-xperiun-free.

  • SKILL.md
  • references/exemplos.md
  • references/padroes.md
  • templates/output-medida.md

Open the folder on GitHubat commit a99d99e

Compare with similar skills

Pbi Dax Create 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.

Pbi Dax Create compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pbi Dax Create this skillxperiun/skills-xperiun-free116—~2.6kAutomated safety check: PassMIT
Power Bi AI ReadinessDKH-DK/Self-Service-Power-BI-Fabric113—~2kAutomated safety check: PassNone
Pbi Report Builderlukasreese/powerbi-claude-skills129—~7.5kAutomated safety check: PassNone
Pbip Dependency Analyzerlukasreese/powerbi-claude-skills129—~3.2kAutomated safety check: PassNone
Audit Tenant Settingsdata-goblin/power-bi-agentic-development1k—~4.7kAutomated safety check: PassGPL-3.0
Bpa Rulesdata-goblin/power-bi-agentic-development1k—~4.4kAutomated safety check: PassGPL-3.0

Similar skills

  • Power Bi AI Readiness

    DKH-DK/Self-Service-Power-BI-Fabric

    Score and prepare Power BI semantic models for AI (Fabric Data Agent / Copilot).

    113 GitHub stars~2k tokensUpdated 3 mo ago
    Data & AnalyticsAuto-check passed
  • Pbi Report Builder

    lukasreese/powerbi-claude-skills

    [power-bi] Power BI PBIR Report Builder with IBCS Visuals. An agent skill from lukasreese/powerbi-claude-skills.

    129 GitHub stars~7.5k tokensUpdated 5 mo ago
    Data & AnalyticsAuto-check passed
  • Pbip Dependency Analyzer

    lukasreese/powerbi-claude-skills

    Power BI PBIP Dependency Analyzer. An agent skill from lukasreese/powerbi-claude-skills.

    129 GitHub stars~3.2k tokensUpdated 5 mo ago
    Data & AnalyticsAuto-check passed
  • Audit Tenant Settings

    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.

    1k GitHub stars~4.7k tokensUpdated 3 days ago
    Data & AnalyticsAuto-check passed
  • Bpa Rules

    data-goblin/power-bi-agentic-development

    Interactive BPA rule generation for Power BI semantic models; guided discovery, model investigation, and expert rule authoring.

    1k GitHub stars~4.4k tokensUpdated 3 days ago
    Data & AnalyticsAuto-check passed
  • Pbip

    data-goblin/power-bi-agentic-development

    Guidance for Power BI Project (PBIP) structure, thick and thin reports, project renames, forks, and validation.

    1k GitHub stars~3.8k tokensUpdated 3 days ago
    Data & AnalyticsAuto-check passed

More from xperiun/skills-xperiun-free

  • Pbi Doc

    xperiun/skills-xperiun-free

    Documenta projeto Power BI (PBIP) inteiro em markdown estruturado + HTML navegável (mini-site de doc).

    116 GitHub stars~3k tokensUpdated 23 days ago
    Auto-check passed
  • Pbi Modelo Review

    xperiun/skills-xperiun-free

    Audita modelo Power BI (PBIP) e gera relatório priorizado com anti-patterns, score 0-100 e recomendações acionáveis.

    116 GitHub stars~2.9k tokensUpdated 23 days ago
    Auto-check passed

Works with

Questions about Pbi Dax Create

What does Pbi Dax Create do?

Cria medida DAX a partir de descrição em PT, respeitando o modelo Power BI existente (colunas reais, naming convention, padrões DAX). Pbi Dax Create is an agent skill from xperiun/skills-xperiun-free. Cria medida DAX a partir de descrição em PT, respeitando o modelo Power BI existente (colunas reais, naming convention, padrões DAX).

When should I use Pbi Dax Create?

Pbi Dax Create fits situations like: data & Analytics work in your project.

How do I install Pbi Dax Create in Claude Code?

Run `npx skills add xperiun/skills-xperiun-free --skill pbi-dax-create -a claude-code`. Or copy the skill folder (claude-code/pbi-dax-create in xperiun/skills-xperiun-free) into .claude/skills/pbi-dax-create in your project. Claude Code loads it when a task matches its description.

How do I install Pbi Dax Create in Codex?

Run `npx skills add xperiun/skills-xperiun-free --skill pbi-dax-create -a codex`. Or copy the skill folder (claude-code/pbi-dax-create in xperiun/skills-xperiun-free) into .agents/skills/pbi-dax-create in your project. Codex loads it when a task matches its description.

Can I use Pbi Dax Create in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xperiun/skills-xperiun-free --skill pbi-dax-create -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pbi-dax-create, .gemini/skills/pbi-dax-create, .github/skills/pbi-dax-create and .opencode/skills/pbi-dax-create in your project.

What does Pbi Dax Create need to run?

Going by SKILL.md and its folder, Pbi Dax Create needs the command-line tools its instructions call (git).

Does Pbi Dax Create access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Pbi Dax Create safe to install?

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.

What licence does Pbi Dax Create use?

Pbi Dax Create is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pbi Dax Create use?

About 2.6k tokens (SKILL.md is roughly 10k 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 4.7k tokens, read only when the agent opens those files.

What are the alternatives to Pbi Dax Create?

Skills that share tags, products or a category with Pbi Dax Create: Power Bi AI Readiness (DKH-DK/Self-Service-Power-BI-Fabric, 113 stars), Pbi Report Builder (lukasreese/powerbi-claude-skills, 129 stars), Pbip Dependency Analyzer (lukasreese/powerbi-claude-skills, 129 stars) and Audit Tenant Settings (data-goblin/power-bi-agentic-development, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pbi Dax Create?

xperiun (a GitHub organization) maintains it in xperiun/skills-xperiun-free, which has 116 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 16, 2026.

Source: xperiun/skills-xperiun-free on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.