[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B9823D0KZDVWR4FPJE95J":3,"skill-same:01M69B9823D0KZDVWR4FPJE95J":103},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":17,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M69B9823D0KZDVWR4FPJE95J","dax-authoring","DAX 查询编写与测试","Write and test DAX queries against Power BI semantic models. Covers DAX syntax rules, query patterns, time intelligence, and an iterative test workflow using the Fabric CLI query command.","针对 Power BI 语义模型编写和测试 DAX 查询。涵盖 DAX 语法规则、查询模式、时间智能（time intelligence），以及使用 Fabric CLI query 命令的迭代测试工作流。","microsoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69B8Z0F3707XGBWWZMXZN2S",11,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fdax-authoring\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"authoring","dax","dax authoring","syntax","bi","time","query","queries","models","power","write","command","cli","Rules","semantic models","fabric","power bi","fabric cli","test","workflow","2026-11-10 10:12:30",false,"---\nname: dax-authoring\ndescription: >\n  Write and test DAX queries against Power BI semantic models.\n  Covers DAX syntax rules, query patterns, time intelligence,\n  and an iterative test workflow using the Fabric CLI query command.\n---\n\n# DAX Authoring\n\n## Table of Contents\n\n| Task | Reference | Notes |\n|---|---|---|\n| Must\u002FPrefer\u002FAvoid | [SKILL.md: Must\u002FPrefer\u002FAvoid](#must--prefer--avoid) | Guardrails for DAX query generation |\n| Generating DAX Queries | [SKILL.md: Generating DAX Queries](#generating-dax-queries) | Core rules, inline examples, EVALUATE\u002FDEFINE patterns |\n| DAX Query Structure & Syntax | [dax-query-patterns.md: Query Structure](.\u002Freferences\u002Fdax-query-patterns.md#query-structure) | DEFINE \u002F EVALUATE \u002F ORDER BY \u002F START AT |\n| DAX Query Key Components | [dax-query-patterns.md: Key Components](.\u002Freferences\u002Fdax-query-patterns.md#key-components) | DEFINE VAR, DEFINE MEASURE, table expressions |\n| DAX Query Worked Examples | [dax-query-patterns.md: Common Patterns](.\u002Freferences\u002Fdax-query-patterns.md#common-patterns) | 11 annotated examples from simple aggregation to cross-table joins |\n| DAX Query Anti-Patterns | [dax-query-patterns.md: Anti-Patterns](.\u002Freferences\u002Fdax-query-patterns.md#anti-patterns) | What to avoid in DAX queries |\n| CALCULATE & CALCULATETABLE | [dax-core-reference.md: CALCULATE & CALCULATETABLE](.\u002Freferences\u002Fdax-core-reference.md#calculate--calculatetable) | Context transition, filter types, boolean restrictions, common patterns |\n| SUMMARIZECOLUMNS | [dax-core-reference.md: SUMMARIZECOLUMNS](.\u002Freferences\u002Fdax-core-reference.md#summarizecolumns) | Argument order, auto-blank elimination, filter args, vs SUMMARIZE |\n| ALL & ALLEXCEPT | [dax-core-reference.md: ALL & ALLEXCEPT](.\u002Freferences\u002Fdax-core-reference.md#all--allexcept) | CALCULATE modifier vs table function; percentage patterns |\n| TREATAS | [dax-core-reference.md: TREATAS](.\u002Freferences\u002Fdax-core-reference.md#treatas) | Virtual relationships, multi-column filtering |\n| DAX Syntax Rules | [dax-core-reference.md: DAX Syntax Rules](.\u002Freferences\u002Fdax-core-reference.md#dax-syntax-rules) | EVALUATE, CALCULATE, naming, SQL keywords, DEFINE rules |\n| Common Mistakes | [dax-core-reference.md: Common Mistakes](.\u002Freferences\u002Fdax-core-reference.md#common-mistakes) | Variable naming, quoting, escaping, scalar EVALUATE, multi-table SUMMARIZECOLUMNS |\n| BLANK Semantics | [dax-core-reference.md: BLANK Semantics](.\u002Freferences\u002Fdax-core-reference.md#blank-semantics) | BLANK vs NULL, propagation, equality, ISBLANK, DIVIDE, non-empty semantics |\n| Time Intelligence Patterns | [SKILL.md: Time Intelligence](#time-intelligence) | When to consult TI reference |\n| Date Table Prerequisites | [dax-time-intelligence.md: Prerequisites](.\u002Freferences\u002Fdax-time-intelligence.md#prerequisites) | Date table requirements, mark as date table |\n| YTD \u002F QTD \u002F MTD | [dax-time-intelligence.md: Period-to-Date](.\u002Freferences\u002Fdax-time-intelligence.md#period-to-date) | TOTALYTD, DATESYTD, DATESINPERIOD patterns |\n| Year-over-Year \u002F Period Comparisons | [dax-time-intelligence.md: Period Comparisons](.\u002Freferences\u002Fdax-time-intelligence.md#period-comparisons) | SAMEPERIODLASTYEAR, DATEADD, PARALLELPERIOD |\n| Rolling Windows | [dax-time-intelligence.md: Rolling Windows](.\u002Freferences\u002Fdax-time-intelligence.md#rolling-windows) | DATESINPERIOD rolling 12-month patterns |\n| Opening\u002FClosing Balances | [dax-time-intelligence.md: Balances](.\u002Freferences\u002Fdax-time-intelligence.md#balances) | Semi-additive measures, LASTDATE, LASTNONBLANK |\n| TI in DAX Queries (Critical Rules) | [dax-time-intelligence.md: Critical Rules for TI in Queries](.\u002Freferences\u002Fdax-time-intelligence.md#critical-rules-for-ti-in-dax-queries) | CALCULATETABLE + TREATAS pattern for query context |\n| TI Common Mistakes | [dax-time-intelligence.md: Common Mistakes](.\u002Freferences\u002Fdax-time-intelligence.md#common-mistakes) | Missing date table, wrong granularity, fiscal calendar |\n| Testing & Iteration | [SKILL.md: Testing & Iteration](#testing--iteration) | Execute → inspect → fix → re-test workflow |\n\n## Must \u002F Prefer \u002F Avoid\n\n### Must\n- Always test generated DAX via `npx fabric-app-data query \u003Calias> --query '\u003CDAX>'` before using in app code\n- Use fully-qualified `'Table'[Column]` for column references\n- Use simple `[Measure]` for measure references\n- Use DEFINE for VAR and local MEASURE declarations (single DEFINE block, no commas)\n- Prefer existing model measures over re-aggregating raw data\n\n### Prefer\n- SUMMARIZECOLUMNS as the primary grouping function for queries\n- TREATAS for filter arguments in SUMMARIZECOLUMNS\n- Variables (VAR) to improve readability and avoid repeated calculations\n\n### Avoid\n- SQL keywords (SELECT, WHERE, HAVING, etc.) within DAX expressions\n- EVALUATE with scalar functions directly (wrap in ROW or table function)\n\n## Generating DAX Queries\n\n### DAX Syntax Rules\n\n- Measures are named objects in the semantic model. They specify how to aggregate data. **Measures should be used first** to answer user requests before a new DAX formula is used to aggregate data.\n- **EVALUATE Statement**: Not a function but a statement. It must always precede a table expression. Avoid pairing EVALUATE with scalar functions like CONCATENATEX, SUMX, DISTINCTCOUNT, etc.\n- Use the fully-qualified name `'Table'[Column]` for column references, and the simple name `[Measure]` for measure references.\n- CALCULATE takes a scalar expression as its first argument. CALCULATETABLE takes a table expression as its first argument.\n- SUMMARIZECOLUMNS requires a specific order: groupby columns, then filters, then aggregations\u002Fmeasures.\n- Do not use SUMMARIZECOLUMNS when there is no aggregation and the groupby columns belong to more than one table; use VALUES, SUMMARIZE, or SELECTCOLUMNS instead.\n- When using SELECTCOLUMNS or CALCULATETABLE, include any columns needed downstream (ORDER BY, FILTER).\n- Filters propagate across relationships based on unidirectional or bidirectional settings.\n- INTERSECT, UNION, EXCEPT require identical column counts in both inputs.\n- For current date\u002Ftime, use TODAY() or NOW().\n\n### Inline Examples\n\n**Simple filtered aggregation:**\n```dax\n\u002F\u002F Total sales for red products\nEVALUATE\n  ROW(\"Total Sales Amount\", CALCULATE([Total Amount], 'Product'[Color] == \"Red\"))\n```\n\n**Multi-filter grouping with SUMMARIZECOLUMNS:**\n```dax\nDEFINE\n  VAR _Filter1 = TREATAS({\"Consumer Electronics\"}, 'Product'[Category])\n  VAR _Filter2 = FILTER(ALL('Calendar'[Year]), 'Calendar'[Year] >= 2022 && 'Calendar'[Year] \u003C= 2023)\n\nEVALUATE\n  SUMMARIZECOLUMNS(\n    'Calendar'[Year],\n    'Calendar'[Month],\n    _Filter1,\n    _Filter2,\n    \"Total Quantity\", SUM('Sales'[Order Quantity]),\n    \"Discount\", [Total Discount]\n  )\n```\n\n**TopN with filtering:**\n```dax\nDEFINE\n  VAR _Filter = TREATAS({\"Red\", \"Black\"}, 'Product'[Color])\n  VAR _Core = SUMMARIZECOLUMNS('Product'[Name], _Filter, \"Total Sales\", [Total Amount])\n\nEVALUATE\n  TOPN(10, _Core, [Total Sales], DESC)\n```\n\nFor full syntax reference, worked examples, and anti-patterns, see [dax-query-patterns.md](.\u002Freferences\u002Fdax-query-patterns.md).\nFor function details, see [dax-core-reference.md](.\u002Freferences\u002Fdax-core-reference.md).\n\n## Time Intelligence\n\nTime intelligence functions enable period-based analysis (YTD, YoY, rolling windows, etc.). They require a properly configured Date table.\n\nConsult [dax-time-intelligence.md](.\u002Freferences\u002Fdax-time-intelligence.md) whenever the user's request involves:\n- Period-to-date calculations (YTD, QTD, MTD)\n- Period comparisons (Year-over-Year, Month-over-Month)\n- Rolling windows (last 12 months, last 30 days)\n- Opening\u002Fclosing balances\n- Custom date ranges\n\n## Testing & Iteration\n\n1. Generate the DAX query expression\n2. Execute via `npx fabric-app-data query \u003Calias> --query '\u003CDAX>'`\n3. Inspect results: check column names, data types, row counts, and actual data values\n4. If error: consult [dax-core-reference.md](.\u002Freferences\u002Fdax-core-reference.md), fix, and re-test\n5. Iterate until the query returns expected results\n\n## Query Execution\n\nUse `npx fabric-app-data query \u003Calias> --query '\u003CDAX>'` to run queries. This uses the same SDK pipeline as the running app, so results are identical to what the app produces at runtime. To re-test an existing `.dax` file without copying the query text, use `--file`: `npx fabric-app-data query \u003Calias> --file src\u002Fqueries\u002Frevenue.dax`. For full CLI options (profiles, result limits), see the `fabric-cli` skill.\n\n**Result trimming:** The CLI returns at most 1000 rows by default. When the result is trimmed, the output includes a `_cliWarning` field (e.g., `\"Result trimmed to first 1000 of 5000 rows\"`). This is a CLI-only limitation — the full dataset is available in the running app. If you need to see more data, refine your DAX with filters or aggregations.\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| CLI `query` fails with \"not signed in\" | Run `az login` to sign in to Azure CLI |\n| CLI `query` fails with \"Azure CLI is not installed\" | Install from https:\u002F\u002Faka.ms\u002Finstall-azure-cli |\n| CLI `query` fails with \"alias not found\" | Run `npx fabric-app-data list` to check available aliases, then `npx fabric-app-data add` to register |\n| DAX syntax errors | Consult [dax-core-reference.md](.\u002Freferences\u002Fdax-core-reference.md) — check reserved keywords, quoting rules, EVALUATE\u002Fscalar mistakes |\n| Unexpected query results | Check filter context, relationship direction, BLANK handling in [dax-core-reference.md](.\u002Freferences\u002Fdax-core-reference.md#blank-semantics) |\n| Time intelligence returns wrong values | Check date table prerequisites and critical rules in [dax-time-intelligence.md](.\u002Freferences\u002Fdax-time-intelligence.md) |\n","# DAX Authoring\n\n## Table of Contents\n\n| Task | Reference | Notes |\n|---|---|---|\n| Must\u002FPrefer\u002FAvoid | [SKILL.md: Must\u002FPrefer\u002FAvoid](#must--prefer--avoid) | Guardrails for DAX query generation |\n| Generating DAX Queries | [SKILL.md: Generating DAX Queries](#generating-dax-queries) | Core rules, inline examples, EVALUATE\u002FDEFINE patterns |\n| DAX Query Structure & Syntax | [dax-query-patterns.md: Query Structure](.\u002Freferences\u002Fdax-query-patterns.md#query-structure) | DEFINE \u002F EVALUATE \u002F ORDER BY \u002F START AT |\n| DAX Query Key Components | [dax-query-patterns.md: Key Components](.\u002Freferences\u002Fdax-query-patterns.md#key-components) | DEFINE VAR, DEFINE MEASURE, table expressions |\n| DAX Query Worked Examples | [dax-query-patterns.md: Common Patterns](.\u002Freferences\u002Fdax-query-patterns.md#common-patterns) | 11 annotated examples from simple aggregation to cross-table joins |\n| DAX Query Anti-Patterns | [dax-query-patterns.md: Anti-Patterns](.\u002Freferences\u002Fdax-query-patterns.md#anti-patterns) | What to avoid in DAX queries |\n| CALCULATE & CALCULATETABLE | [dax-core-reference.md: CALCULATE & CALCULATETABLE](.\u002Freferences\u002Fdax-core-reference.md#calculate--calculatetable) | Context transition, filter types, boolean restrictions, common patterns |\n| SUMMARIZECOLUMNS | [dax-core-reference.md: SUMMARIZECOLUMNS](.\u002Freferences\u002Fdax-core-reference.md#summarizecolumns) | Argument order, auto-blank elimination, filter args, vs SUMMARIZE |\n| ALL & ALLEXCEPT | [dax-core-reference.md: ALL & ALLEXCEPT](.\u002Freferences\u002Fdax-core-reference.md#all--allexcept) | CALCULATE modifier vs table function; percentage patterns |\n| TREATAS | [dax-core-reference.md: TREATAS](.\u002Freferences\u002Fdax-core-reference.md#treatas) | Virtual relationships, multi-column filtering |\n| DAX Syntax Rules | [dax-core-reference.md: DAX Syntax Rules](.\u002Freferences\u002Fdax-core-reference.md#dax-syntax-rules) | EVALUATE, CALCULATE, naming, SQL keywords, DEFINE rules |\n| Common Mistakes | [dax-core-reference.md: Common Mistakes](.\u002Freferences\u002Fdax-core-reference.md#common-mistakes) | Variable naming, quoting, escaping, scalar EVALUATE, multi-table SUMMARIZECOLUMNS |\n| BLANK Semantics | [dax-core-reference.md: BLANK Semantics](.\u002Freferences\u002Fdax-core-reference.md#blank-semantics) | BLANK vs NULL, propagation, equality, ISBLANK, DIVIDE, non-empty semantics |\n| Time Intelligence Patterns | [SKILL.md: Time Intelligence](#time-intelligence) | When to consult TI reference |\n| Date Table Prerequisites | [dax-time-intelligence.md: Prerequisites](.\u002Freferences\u002Fdax-time-intelligence.md#prerequisites) | Date table requirements, mark as date table |\n| YTD \u002F QTD \u002F MTD | [dax-time-intelligence.md: Period-to-Date](.\u002Freferences\u002Fdax-time-intelligence.md#period-to-date) | TOTALYTD, DATESYTD, DATESINPERIOD patterns |\n| Year-over-Year \u002F Period Comparisons | [dax-time-intelligence.md: Period Comparisons](.\u002Freferences\u002Fdax-time-intelligence.md#period-comparisons) | SAMEPERIODLASTYEAR, DATEADD, PARALLELPERIOD |\n| Rolling Windows | [dax-time-intelligence.md: Rolling Windows](.\u002Freferences\u002Fdax-time-intelligence.md#rolling-windows) | DATESINPERIOD rolling 12-month patterns |\n| Opening\u002FClosing Balances | [dax-time-intelligence.md: Balances](.\u002Freferences\u002Fdax-time-intelligence.md#balances) | Semi-additive measures, LASTDATE, LASTNONBLANK |\n| TI in DAX Queries (Critical Rules) | [dax-time-intelligence.md: Critical Rules for TI in Queries](.\u002Freferences\u002Fdax-time-intelligence.md#critical-rules-for-ti-in-dax-queries) | CALCULATETABLE + TREATAS pattern for query context |\n| TI Common Mistakes | [dax-time-intelligence.md: Common Mistakes](.\u002Freferences\u002Fdax-time-intelligence.md#common-mistakes) | Missing date table, wrong granularity, fiscal calendar |\n| Testing & Iteration | [SKILL.md: Testing & Iteration](#testing--iteration) | Execute → inspect → fix → re-test workflow |\n\n## Must \u002F Prefer \u002F Avoid\n\n### Must\n- Always test generated DAX via `npx fabric-app-data query \u003Calias> --query '\u003CDAX>'` before using in app code\n- Use fully-qualified `'Table'[Column]` for column references\n- Use simple `[Measure]` for measure references\n- Use DEFINE for VAR and local MEASURE declarations (single DEFINE block, no commas)\n- Prefer existing model measures over re-aggregating raw data\n\n### Prefer\n- SUMMARIZECOLUMNS as the primary grouping function for queries\n- TREATAS for filter arguments in SUMMARIZECOLUMNS\n- Variables (VAR) to improve readability and avoid repeated calculations\n\n### Avoid\n- SQL keywords (SELECT, WHERE, HAVING, etc.) within DAX expressions\n- EVALUATE with scalar functions directly (wrap in ROW or table function)\n\n## Generating DAX Queries\n\n### DAX Syntax Rules\n\n- Measures are named objects in the semantic model. They specify how to aggregate data. **Measures should be used first** to answer user requests before a new DAX formula is used to aggregate data.\n- **EVALUATE Statement**: Not a function but a statement. It must always precede a table expression. Avoid pairing EVALUATE with scalar functions like CONCATENATEX, SUMX, DISTINCTCOUNT, etc.\n- Use the fully-qualified name `'Table'[Column]` for column references, and the simple name `[Measure]` for measure references.\n- CALCULATE takes a scalar expression as its first argument. CALCULATETABLE takes a table expression as its first argument.\n- SUMMARIZECOLUMNS requires a specific order: groupby columns, then filters, then aggregations\u002Fmeasures.\n- Do not use SUMMARIZECOLUMNS when there is no aggregation and the groupby columns belong to more than one table; use VALUES, SUMMARIZE, or SELECTCOLUMNS instead.\n- When using SELECTCOLUMNS or CALCULATETABLE, include any columns needed downstream (ORDER BY, FILTER).\n- Filters propagate across relationships based on unidirectional or bidirectional settings.\n- INTERSECT, UNION, EXCEPT require identical column counts in both inputs.\n- For current date\u002Ftime, use TODAY() or NOW().\n\n### Inline Examples\n\n**Simple filtered aggregation:**\n```dax\n\u002F\u002F Total sales for red products\nEVALUATE\n  ROW(\"Total Sales Amount\", CALCULATE([Total Amount], 'Product'[Color] == \"Red\"))\n```\n\n**Multi-filter grouping with SUMMARIZECOLUMNS:**\n```dax\nDEFINE\n  VAR _Filter1 = TREATAS({\"Consumer Electronics\"}, 'Product'[Category])\n  VAR _Filter2 = FILTER(ALL('Calendar'[Year]), 'Calendar'[Year] >= 2022 && 'Calendar'[Year] \u003C= 2023)\n\nEVALUATE\n  SUMMARIZECOLUMNS(\n    'Calendar'[Year],\n    'Calendar'[Month],\n    _Filter1,\n    _Filter2,\n    \"Total Quantity\", SUM('Sales'[Order Quantity]),\n    \"Discount\", [Total Discount]\n  )\n```\n\n**TopN with filtering:**\n```dax\nDEFINE\n  VAR _Filter = TREATAS({\"Red\", \"Black\"}, 'Product'[Color])\n  VAR _Core = SUMMARIZECOLUMNS('Product'[Name], _Filter, \"Total Sales\", [Total Amount])\n\nEVALUATE\n  TOPN(10, _Core, [Total Sales], DESC)\n```\n\nFor full syntax reference, worked examples, and anti-patterns, see [dax-query-patterns.md](.\u002Freferences\u002Fdax-query-patterns.md).\nFor function details, see [dax-core-reference.md](.\u002Freferences\u002Fdax-core-reference.md).\n\n## Time Intelligence\n\nTime intelligence functions enable period-based analysis (YTD, YoY, rolling windows, etc.). They require a properly configured Date table.\n\nConsult [dax-time-intelligence.md](.\u002Freferences\u002Fdax-time-intelligence.md) whenever the user's request involves:\n- Period-to-date calculations (YTD, QTD, MTD)\n- Period comparisons (Year-over-Year, Month-over-Month)\n- Rolling windows (last 12 months, last 30 days)\n- Opening\u002Fclosing balances\n- Custom date ranges\n\n## Testing & Iteration\n\n1. Generate the DAX query expression\n2. Execute via `npx fabric-app-data query \u003Calias> --query '\u003CDAX>'`\n3. Inspect results: check column names, data types, row counts, and actual data values\n4. If error: consult [dax-core-reference.md](.\u002Freferences\u002Fdax-core-reference.md), fix, and re-test\n5. Iterate until the query returns expected results\n\n## Query Execution\n\nUse `npx fabric-app-data query \u003Calias> --query '\u003CDAX>'` to run queries. This uses the same SDK pipeline as the running app, so results are identical to what the app produces at runtime. To re-test an existing `.dax` file without copying the query text, use `--file`: `npx fabric-app-data query \u003Calias> --file src\u002Fqueries\u002Frevenue.dax`. For full CLI options (profiles, result limits), see the `fabric-cli` skill.\n\n**Result trimming:** The CLI returns at most 1000 rows by default. When the result is trimmed, the output includes a `_cliWarning` field (e.g., `\"Result trimmed to first 1000 of 5000 rows\"`). This is a CLI-only limitation — the full dataset is available in the running app. If you need to see more data, refine your DAX with filters or aggregations.\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| CLI `query` fails with \"not signed in\" | Run `az login` to sign in to Azure CLI |\n| CLI `query` fails with \"Azure CLI is not installed\" | Install from https:\u002F\u002Faka.ms\u002Finstall-azure-cli |\n| CLI `query` fails with \"alias not found\" | Run `npx fabric-app-data list` to check available aliases, then `npx fabric-app-data add` to register |\n| DAX syntax errors | Consult [dax-core-reference.md](.\u002Freferences\u002Fdax-core-reference.md) — check reserved keywords, quoting rules, EVALUATE\u002Fscalar mistakes |\n| Unexpected query results | Check filter context, relationship direction, BLANK handling in [dax-core-reference.md](.\u002Freferences\u002Fdax-core-reference.md#blank-semantics) |\n| Time intelligence returns wrong values | Check date table prerequisites and critical rules in [dax-time-intelligence.md](.\u002Freferences\u002Fdax-time-intelligence.md) |\n",{"name":5,"description":7},"main","23e1ac256e2e9e6db842cd4bd064cede2a850b05","app\u002F.agents\u002Fskills\u002Fdax-authoring",3,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 00:07:46",{"source":9,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add microsoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots --skill dax-authoring",{"tool":71,"command":72},"bunx","bunx skills add microsoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots --skill dax-authoring",{"tool":74,"command":75},"pnpm","pnpm dlx skills add microsoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots --skill dax-authoring","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fdax-authoring\u002FSKILL.md",true,[79,85,89,93,97],{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"_meta.json","REFERENCE","参考文档",134,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fflink-agents\u002Fblob\u002Fmain\u002Fpython\u002Fflink_agents\u002Fruntime\u002Fskill\u002Ftests\u002Fresources\u002Fskills\u002Fnano-banana-pro\u002F_meta.json",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fdax-core-reference.md",26595,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAnalyticsHub-Dashboard\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fdax-authoring\u002Freferences\u002Fdax-core-reference.md",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fdax-query-patterns.md",8671,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAnalyticsHub-Dashboard\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fdax-authoring\u002Freferences\u002Fdax-query-patterns.md",{"path":94,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fdax-time-intelligence.md",9342,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAnalyticsHub-Dashboard\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fdax-authoring\u002Freferences\u002Fdax-time-intelligence.md",{"path":98,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002Fgenerate_image.py","SCRIPT","脚本",5609,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fflink-agents\u002Fblob\u002Fmain\u002Fpython\u002Fflink_agents\u002Fruntime\u002Fskill\u002Ftests\u002Fresources\u002Fskills\u002Fnano-banana-pro\u002Fscripts\u002Fgenerate_image.py",[104,139,166,192,219,245],{"skillNo":105,"name":106,"nameZh":107,"description":108,"descriptionZh":109,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":110,"categories":111,"keywords":118,"publishedAt":51},"01M69B9T4X5TYZ11KW4J9Q0W44","visuals","数据可视化组件开发","Use when user wants to incorporate charts, graphs, data grid,  or other visual representations of data into their project. Use VegaVisual and DataGrid components to create these visuals,  utilizing the shared DataTable input, formatting, theme, and interactivity. Covers the VisualContainer chrome every visual gets by default, the onInteraction selection\u002Fclick events host apps consume, named multi-table data input for layered overlays and reference lines, and Vega-Lite native selections.","当用户希望将图表、图形、数据网格或其他数据可视化形式添加到项目中使用。使用 VegaVisual 和 DataGrid 组件创建这些可视化效果，利用共享的 DataTable 输入、格式化、主题和交互功能。涵盖每个可视化组件默认自带的 VisualContainer 外框、宿主应用使用的 onInteraction 选择\u002F点击事件、用于分层叠加和参考线的命名多表数据输入，以及 Vega-Lite 原生选择功能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fvisuals\u002FSKILL.md",[112,115],{"categoryNo":113,"categoryName":114,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":116,"categoryName":117,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[106,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138],"chrome","components","create","data","Charts","table","default","selection","shared","project","formatting","click","host","apps","input","events","theme","native","overlays","when",{"skillNo":140,"name":141,"nameZh":142,"description":143,"descriptionZh":144,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":149,"publishedAt":51},"01M69B9QMWZM9VV7K45A58E4ED","schema-discovery","Power BI 语义模型架构探索","Explore Power BI semantic model schemas using DAX INFO functions. Progressive metadata discovery strategy, scope estimation, and narrowing techniques for tables, columns, measures, and relationships.","使用 DAX INFO 函数探索 Power BI 语义模型架构。提供渐进式元数据发现策略、范围估计，以及针对表、列、度量值和关系的收窄技术。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fschema-discovery\u002FSKILL.md",[147,148],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[150,151,152,32,47,153,154,155,40,156,157,158,159,160,161,35,162,163,164,165],"schema discovery","discovery","schema","explore","model","strategy","functions","info","relationships","estimation","semantic","scope","columns","tables","techniques","for",{"skillNo":167,"name":168,"nameZh":169,"description":170,"descriptionZh":171,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":172,"categories":173,"keywords":176,"publishedAt":51},"01M69B9MERN0RER50J0A391ZSM","query-design","DAX 数据查询设计","Separates DAX data-fetching from TypeScript presentation. Guides when to use  DAX vs. TypeScript vs. Vega-Lite for aggregation, total rows, FORMAT(), SELECTCOLUMNS,  BLANK handling, filtering, multi-grain queries, cross-filtering and cross-highlight subset\u002Foverlay queries, and format strings.","将 DAX 数据获取与 TypeScript 展示分离。指导何时使用 DAX、TypeScript 或 Vega-Lite 进行聚合、总行数统计、FORMAT()、SELECTCOLUMNS、BLANK 处理、筛选、多粒度查询、交叉筛选与交叉高亮的子集\u002F叠加查询，以及格式字符串。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fquery-design\u002FSKILL.md",[174,175],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[177,178,37,179,32,122,180,181,182,183,38,184,185,186,187,188,165,189,190,191,138],"design","query design","typescript","aggregation","format","filtering","use","data-fetching","guides","multi","presentation","strings","when to use","overlay","grain",{"skillNo":193,"name":194,"nameZh":195,"description":196,"descriptionZh":197,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":198,"categories":199,"keywords":206,"publishedAt":51},"01M69B9GPW01S1KVKW0AEMTP09","playwright-cli","Playwright 浏览器自动化测试","Automate browser interactions, test web pages and work with Playwright tests.","实现浏览器交互自动化、网页测试，以及使用 Playwright 开展测试工作。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fplaywright-cli\u002FSKILL.md",[200,203],{"categoryNo":201,"categoryName":202,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":204,"categoryName":205,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[43,207,208,49,209,210,211,212,213,214,215,68,216,217,218,194],"playwright","playwright cli","web","browser","npm","Bash","automate","work","test web","tests","pages","with",{"skillNo":220,"name":221,"nameZh":222,"description":223,"descriptionZh":224,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":225,"categories":226,"keywords":231,"publishedAt":51},"01M69B9DPRM5T4MEQ64GFK92CD","fabric-sdk","Fabric SDK 应用开发","How to use @microsoft\u002Ffabric-app-data to connect web applications to Fabric data sources at runtime. Build browser-based apps that query semantic models via DAX using the FabricClient API.","介绍如何使用 @microsoft\u002Ffabric-app-data 在运行时将 Web 应用程序连接到 Fabric 数据源。构建基于浏览器的应用，通过 FabricClient API 使用 DAX 查询语义模型。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Ffabric-sdk\u002FSKILL.md",[227,230],{"categoryNo":228,"categoryName":229,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":113,"categoryName":114,"taxonomyType":28,"taxonomyTypeDesc":29},[232,233,46,209,10,32,234,235,45,210,122,236,237,238,183,37,239,240,132,241,242,243,244],"sdk","fabric sdk","connect","fabric data","applications","api","how","runtime","app","how to","sources","at","data sources",{"skillNo":246,"name":247,"nameZh":248,"description":249,"descriptionZh":250,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":251,"categories":252,"keywords":259,"publishedAt":51},"01M69B9B40C4FHECS223FPFPJF","fabric-cli","Fabric 数据源连接管理","How to use fabric-app-data CLI to manage Fabric data source connections. Maintain workspace\u002Fitem IDs in a fabric.yaml file with profiles, add connections by ID or Fabric portal URL, and generate TypeScript config for use with @microsoft\u002Ffabric-app-data.","如何使用 fabric-app-data CLI 管理 Fabric 数据源连接。在 fabric.yaml 文件中通过 profiles 维护工作区（workspace）和项目（item）ID，通过 ID 或 Fabric 门户 URL 添加连接，并生成 TypeScript 配置以供 @microsoft\u002Ffabric-app-data 使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Ffabric-cli\u002FSKILL.md",[253,256],{"categoryNo":254,"categoryName":255,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTGTEHKD89NSZ5CT4Y5AGV","数据工程师",{"categoryNo":257,"categoryName":258,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BWDNFEHJCBZX47YY896K05","应用连接器集成",[43,48,46,179,10,260,261,235,122,262,238,263,264,265,240,241,266,267,268,165,269],"config","generate","ids","manage","maintain","connections","add","URL","profiles","source"]