query-builder-dax
Skill by microsoft
Documents the DAX query shape that the Query Builder in the DAX test widget generates. Use it when changing how Query Builder state becomes an EVALUATE query built with SUMMARIZECOLUMNS.
Install query-builder-dax
Built from the published package, never by AI.
git clone --depth 1 https://github.com/microsoft/semantic-link-labs /tmp/semantic-link-labs && mkdir -p ~/.claude/skills && cp -r /tmp/semantic-link-labs/.claude/skills/query-builder-dax ~/.claude/skills/query-builder-daxRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/microsoft/semantic-link-labs /tmp/semantic-link-labs && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/semantic-link-labs/.claude/skills/query-builder-dax ~/.gemini/antigravity-cli/skills/query-builder-daxAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Query Builder DAX Generation is an agent skill that documents the canonical DAX query produced by the Query Builder in the DAX performance test widget of sempy-labs. It explains how columns, measures, filters and sorting become an EVALUATE query built on SUMMARIZECOLUMNS. The source describes the element order inside that function as strict, because the wrong order causes an error.
The skill covers column filters, measure filters, the predicate operators mapped to DAX, value literals and ORDER BY behaviour. It also lists edge cases such as measures-only queries and the JavaScript and Python locations that must be updated together when operators change. It is aimed at developers who modify how the Query Builder generates DAX.
Written from the project's SKILL.md and checked against it.
What it can do
- Element orderExplains the strict order inside SUMMARIZECOLUMNS: attributes, column filters, then measures.
- Column filtersShows how column filters are written as FILTER(KEEPFILTERS(VALUES(...))).
- Measure filtersShows how measure filters wrap the whole SUMMARIZECOLUMNS table expression.
- Predicate operatorsMaps text, numeric, datetime, boolean and blank filter operators to DAX.
- Value literalsDescribes how numbers, dates and text are written as DAX literals.
- SortingExplains ORDER BY generation from enabled Order By items and their direction.
- Edge casesCovers measures-only queries, empty input and the TOPN option that is not yet emitted.
- Sync guidanceLists the JS and Python places to update together when operators or field metadata change.
Try asking
- Explain the element order required inside SUMMARIZECOLUMNS.
- Show how a measure filter should wrap a SUMMARIZECOLUMNS query.
- How should ORDER BY be generated from enabled Order By items?
Good to know
- The Query Builder currently only references existing model measures.
- TOPN is described but not currently emitted by the Query Builder.
- Measure filters cannot be placed inside SUMMARIZECOLUMNS.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/query-builder-dax/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to query-builder-dax
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
query-builder-dax: common questions
What order must elements follow in SUMMARIZECOLUMNS?
Attributes come first, then column filters, then measures. The source says the wrong order errors out.
How are measure filters handled?
They cannot sit inside SUMMARIZECOLUMNS, so the whole table is wrapped in a FILTER with the measure predicate. Multiple measure predicates are combined with &&.
Can the Query Builder use custom measures?
It currently only references existing model measures. The source says custom measures can be added with a DEFINE MEASURE block placed before EVALUATE.
How do I install query-builder-dax?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is query-builder-dax free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is query-builder-dax safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to query-builder-dax?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
