What problem does it solve?
Writing Power Query M expressions for semantic model partitions is error-prone: syntax mistakes, broken query folding, and wrong column references often surface only at refresh time. This Skill provides structured guidance and executable tooling to write, validate, and debug M expressions against real data sources before deployment.
Core Features & Use Cases
- M Expression Authoring: Guidance on partition expression structure, query folding preservation, column pruning, row filtering, and type handling for import partitions.
- Validation via Fabric API: Execute M expressions against real data sources using the executeQuery API with a runner dataflow, or perform quick syntax checks by saving partitions via XMLA/TOM.
- Step-by-Step Debugging: Preview data at any step in the let...in chain by truncating the expression, with row limits via Table.FirstN for large tables.
- Use Case: A modeler needs to add a filtered partition to an Orders table. The Skill helps write a folding-compatible M expression, executes it against the SQL source to verify columns and types, then previews intermediate steps to confirm the filter logic before deploying via TMDL.
Quick Start
Ask the agent to write and test a Power Query partition expression for a table in your semantic model, for example: write and validate an M expression that loads active orders from the dbo.Orders table.