bi-measure-builder

Featured

Writes, explains, debugs, and optimizes BI calculations - Power BI / Fabric DAX measures and calculated columns, Tableau calculated fields (FIXED/INCLUDE/EXCLUDE LOD expressions, table calculations), and Looker LookML measures, dimensions, and derived tables. Use it whenever the request involves DAX, CALCULATE, a Power BI measure, a Tableau calc or LOD, LookML, or a business metric such as YoY, YTD, rolling 12 months, running total, percent of total, distinct customers, ranking, new vs returning customers, closing balances, or basket analysis. Use it especially when someone says a measure "shows the wrong total", "is blank", "ignores my slicer/filter", "repeats the same value on every row", or "is slow" - those are filter context, context transition, LOD order-of-operations, or fanout bugs this skill is built to diagnose. Produces the formula, the context it evaluates in, and a hand-checkable test with expected numbers.

AI & Automation 307 stars 53 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
83
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# BI Measure Builder Most wrong BI numbers are not syntax errors. They are the right formula evaluated in the wrong context. Work context-first, and prove every measure against numbers computed independently. ## Workflow 1. **Pin down the model before writing anything.** Get (or state as an explicit assumption): the fact table and its grain (one row per order line? per snapshot?), dimension tables, relationship keys and direction, and the date table. Ask only for what changes the formula; otherwise state the assumption and proceed. Why: the same YoY formula is right on a star schema and wrong on a flat table with a text date. 2. **Name the platform and version features.** DAX: classic vs calendar-based time intelligence (preview), marked date table or not. Tableau: live vs extract, context filters in use. Looker: dialect (window-function support, `period_over_period` support). 3. **State the evaluation context in one or two sentences** for a typical visual cell *and* for the grand total. Example: "Row = Month; filters = Region slicer; total = all months in the slicer range, recomputed, not summed." Why: this is where most bugs live, and saying it forces the check. 4. **Write the calculation** from the matching pattern in the reference file. Use variables (DAX `VAR`) for readability and to evaluate each sub-expression once. 5. **Explain it** line by line in terms of context: what each filter argument adds, removes, or overrides; where context transition happens; which Table...

Details

Author
OneWave-AI
Repository
OneWave-AI/claude-skills
Created
11 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

power-bi-dax

Use for DAX measure authoring, validation, YAML unit-test suites, filter context reasoning, Time Intelligence patterns, optimisation, and design patterns. Triggers on: "write a DAX", "create a measure", "CALCULATE", "SUMX", "Time Intelligence", "YTD", "DATEADD", "filter context", "DAX not working", "validate this DAX", "pbi measure", "pbi dax", "pbi testing", "dax test suite", "pbi filter", "filter context", "row context", "iterator", "DAX pattern". Do NOT trigger for report visual layout (→ power-bi-report-design), model schema design (→ power-bi-modeling), or governance naming rules (→ power-bi-governance).

0 Updated 2 months ago
mudassir09
AI & Automation Listed

power-bi-dax

Autoria, depuração e ajuste de performance de DAX de nível especialista para modelos Power BI / Tabular, operando o MCP de modelagem do Power BI para validar, criar e medir (benchmark) medidas contra um modelo ao vivo usando as melhores práticas da Microsoft. Use esta skill sempre que o usuário escrever, revisar, corrigir ou otimizar DAX — medidas, colunas ou tabelas calculadas, time intelligence (YTD / YoY / MTD / médias móveis), CALCULATE e contexto de filtro/linha, transição de contexto, variáveis, grupos de cálculo, ou uma medida que está lenta ou retorna o número errado — mesmo que ele só cole uma fórmula e pergunte "por que isso está errado/lento". Para estruturar tabelas, relações, modos de armazenamento, agregações ou filtros de RLS, use a skill power-bi-data-modeling (elas compartilham o mesmo MCP e se complementam).

0 Updated 2 weeks ago
jacksonrpp
AI & Automation Featured

power-bi-modeling

Create and manage Power BI semantic model structure using pbi-cli -- tables, columns, measures, relationships, hierarchies, calculation groups, and date/calendar tables. Invoke this skill whenever the user says "create table", "add measure", "add column", "create relationship", "date table", "calendar table", "star schema", "mark as date table", "add hierarchy", "calculation group", or any model-building task. Also invoke when creating multiple measures at once -- the skill contains critical guidance on multi-line DAX expression handling.

461 Updated today
MinaSaad1