/powerbi-to-sigma:powerbi-import-to-snowflakefrom Power BI → Sigma
Extracts data from Import-mode Power BI models (Excel, Power Query, flat files) and lands it into Snowflake tables. Run before powerbi-to-sigma to provide warehouse-native data for Sigma queries. Not for DirectQuery models.
Ships in Power BI → Sigma. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Sigma is warehouse-native: it has no in-memory import engine, so every table,
column, and metric resolves as live SQL against a connected warehouse. When a
.pbix imports its data from Excel / Power Query / flat files, that data
lives only in Power BI's VertiPaq store — there is no warehouse table for Sigma
to point at. This skill extracts that data and lands it in Snowflake, then hands
off to powerbi-to-sigma for the model logic.
Two tracks, one migration (this skill is track 1):
1. DATA (this skill) Import-mode .pbix → Snowflake tables + manifest
2. LOGIC (powerbi-to-sigma) model.bim (DAX/relationships) → Sigma data model
3. REPOINT DM sources → the landed Snowflake tables → live parity
Track 3 is automatic when column names line up — this skill's landed column
names byte-match what powerbi-to-sigma's converter emits (see
refs/naming-alignment.md), so no remapping is needed.
Skip this skill for DirectQuery models — they already query a warehouse. Only Import-mode (or mixed, for the Import tables) needs data landing.
Also the designated remediation for non-warehouse sources. When
powerbi-to-sigma's converter flags a table sourced from a Fabric Dataflow / Lakehouse / OneLake / Dataverse / file (stats.nonWarehouseSourcedTables+⛔warnings), this skill is the fix: it enumerates tables via TMSL and extracts rows viaexecuteQueries, so it lands the already-materialized data regardless of the upstream connector (a dataflow-fed Import model works unchanged). Then repoint withconvert-model.rb --table-map manifest.json.
scripts/pbi_import_to_snowflake.py (generic — no hardcoded schemas):
--pbix uploads the file first
via the Power BI REST /imports endpoint.dataType via TMSL getDefinition
(version-independent; INFO.TABLES() fails on old compat levels). Skips
auto date tables and calculated/binary columns (see refs/what-gets-landed.md)./executeQueries (DAX SELECTCOLUMNS), with automatic
integer-key band pagination (executeQueries silently truncates ~48k rows).PUT/COPY via snow sql, with GRANTs.--sigma-connection <id> registers the new tables with Sigma
(POST /v2/connections/<id>/sync) so the DM POST resolves them immediately.
The co-located scripts/lib/sigma_rest.py reuses a valid token, refreshes a
stored browser session before client-credential fallback, honors token age,
and retries one HTTP 401.out/<dataset>/manifest.json: pbi_table.col → sf_table.COLUMN.# dry run — extract + generate load.sql, do not touch Snowflake
python scripts/pbi_import_to_snowflake.py \
--dataset "<dataset name or id>" \
--target-db <DB> --target-schema <SCHEMA> --dry-run
# full: extract → land → grant → sync into Sigma
python scripts/pbi_import_to_snowflake.py \
--dataset "<dataset name or id>" \
--target-db <DB> --target-schema <SCHEMA> \
--sf-conn <snow-cli-connection> \
--sigma-connection <sigma-connection-uuid>
Useful flags: --pbix <file> (upload first), --only "A,B" (subset),
--limit-rows N (cheap smoke test), --grant-role <ROLE> (default PUBLIC),
PBI_BAND_MAX=<n> (force/soften pagination — testing).
Requires: msal, requests, truststore (corp TLS); the Snowflake CLI
(snow) configured. Sigma sync is optional. When --sigma-connection is set,
configure SIGMA_BASE_URL plus either a valid SIGMA_API_TOKEN, a browser
session saved by scripts/browser-login.sh, or SIGMA_CLIENT_ID /
SIGMA_CLIENT_SECRET for unattended fallback. Missing Sigma auth skips sync
without undoing the completed Snowflake landing; per-table sync errors are
reported and the remaining tables continue. Power BI/Fabric auth remains the
separate device-code path described in ../powerbi-to-sigma/SKILL.md.
The Sigma sync transport tests are credentials-free and make no network calls:
python3 scripts/test_pbi_import_sigma_auth.py
powerbi-to-sigma (or locally, pointing at your converter build:
CONVERTER_PATH=<.../build/powerbi.js> node scripts/run_converter.mjs <model.bim> <sigma-conn-id> <DB> <SCHEMA> dm.json).executeQueries golden.
Validated end-to-end on Microsoft's Retail Analysis Sample: 923,371 SALES rows,
live Sigma DM total $41,013,686.95 == PBI golden, to the cent.refs/ before a real run)refs/naming-alignment.md — why landed columns must match sigmaPhysicalName.refs/what-gets-landed.md — skip rules (auto date tables, calc + binary columns).refs/sync-and-grant.md — new tables 404 on DM POST until GRANT + connection sync.refs/pagination.md — the ~48k executeQueries truncation and band strategy.refs/metric-query-quirk.md — converted metrics don't resolve via ad-hoc
metric() SQL (they render in the workbook UI); sum base columns for parity.PRIVACY.md (opens in a new tab)README.md (opens in a new tab)fixtures/sample-manifest.json (opens in a new tab)refs/metric-query-quirk.md (opens in a new tab)refs/naming-alignment.md (opens in a new tab)refs/pagination.md (opens in a new tab)refs/sync-and-grant.md (opens in a new tab)refs/what-gets-landed.md (opens in a new tab)scripts/browser-login.sh (opens in a new tab)scripts/get-token.sh (opens in a new tab)scripts/get_token.py (opens in a new tab)scripts/lib/browser-login-platform.sh (opens in a new tab)scripts/lib/sigma_rest.py (opens in a new tab)scripts/pbi_import_to_snowflake.py (opens in a new tab)scripts/refresh-token.sh (opens in a new tab)scripts/run_converter.mjs (opens in a new tab)scripts/test_pbi_import_sigma_auth.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/powerbi-assessmentTake inventory of a Power BI / Fabric tenant and produce a migration-readiness readout — environment counts, per-semantic-model DAX complexity (measures / calc columns / calc tables / RLS / DirectQuery / warehouse sources from M), per-report visual complexity, refresh history, a DAX-convertibility score against the Sigma coverage buckets, and a value/cost-ranked migration shortlist. Use when a user wants to scope a Power BI→Sigma migration, audit BI sprawl, or pick which reports to convert first. READ-ONLY — never writes to Power BI or posts to Sigma. Lightweight, device-code auth (no Entra app). Feeds the powerbi-to-sigma conversion skill./powerbi-to-sigmaConvert a Power BI report + semantic model into a Sigma data model and matching dashboard. Use when the user has a Power BI report (in Power BI Service / Fabric, or a .pbix/.pbit file) and wants to recreate it in Sigma. Covers connecting to Power BI with no Entra app, extracting the model (TMSL) + report layout (PBIR/Report-Layout), converting via the sigma-data-model MCP, posting the data model + workbook via REST, and parity verification. Can also author dashboards back INTO Power BI via the Fabric write API.npx claudepluginhub sigmacomputing/sigma-migration-skills --plugin powerbi-to-sigmaOther plugins' skills for the same job