power-bi-partitions--expressions

Featured

Manage Power BI table partitions, named expressions (M/Power Query data sources), and calendar table configuration using pbi-cli. Invoke this skill whenever the user mentions "partitions", "data sources", "M expressions", "Power Query", "incremental refresh", "named expressions", "connection parameters", or wants to configure how tables load data. For broader modeling tasks (measures, relationships, hierarchies), see power-bi-modeling instead.

AI & Automation 424 stars 111 forks Updated today MIT

Install

View on GitHub

Quality Score: 94/100

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

Skill Content

# Power BI Partitions & Expressions Skill Manage table partitions, named expressions (M queries), and calendar tables. ## Prerequisites ```bash pipx install pbi-cli-tool pbi-cli skills install pbi connect ``` ## Partitions Partitions define how data is loaded into a table. Each table has at least one partition. ```bash # List partitions in a table pbi partition list --table Sales pbi --json partition list --table Sales # Create a partition with an M expression pbi partition create "Sales_2024" --table Sales \ --expression "let Source = Sql.Database(\"server\", \"db\"), Sales = Source{[Schema=\"dbo\",Item=\"Sales\"]}[Data], Filtered = Table.SelectRows(Sales, each [Year] = 2024) in Filtered" \ --mode Import # Create a partition with DirectQuery mode pbi partition create "Sales_Live" --table Sales --mode DirectQuery # Delete a partition pbi partition delete "Sales_Old" --table Sales # Refresh a specific partition pbi partition refresh "Sales_2024" --table Sales ``` ## Named Expressions Named expressions are shared M/Power Query definitions used as data sources or reusable query logic. ```bash # List all named expressions pbi expression list pbi --json expression list # Get a specific expression pbi expression get "ServerURL" pbi --json expression get "ServerURL" # Create a named expression (M query) pbi expression create "ServerURL" \ --expression '"https://api.example.com/data"' \ --description "API endpoint for data refresh" # Create a parameterized dat...

Details

Author
MinaSaad1
Repository
MinaSaad1/pbi-cli
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

power-bi-modeling

Use for semantic model design, data source profiling, partition management, incremental refresh, calendar table generation, and locale/culture settings. Triggers on: "star schema", "dimensional model", "fact table", "dimension", "relationship", "calculated column", "pbi model", "pbi source", "pbi partition", "incremental refresh", "pbi calendar", "pbi culture", "scaffold", "cardinality", "many-to-many", "role-playing dimension", "source profiling", "M query". Do NOT trigger for DAX measure writing (→ power-bi-dax), report visuals (→ power-bi-report-design), or governance rules (→ power-bi-governance).

0 Updated today
mudassir09
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.

424 Updated today
MinaSaad1
AI & Automation Featured

power-bi-deployment

Import and export TMDL/TMSL formats, manage model lifecycle with transactions, and version-control Power BI semantic models using pbi-cli. Invoke this skill whenever the user mentions "deploy", "export", "import", "TMDL", "TMSL", "version control", "git", "backup", "migrate", "transaction", "commit changes", "rollback", or wants to save/restore model state.

424 Updated today
MinaSaad1