pbir-report-workflowlisted
Install: claude install-skill wardawgmalvicious/claude-config
## PBIR Report Workflow
End-to-end workflow for building Power BI reports from a published semantic model using `pbir` CLI. Requires the model to already exist in a Fabric/Power BI workspace.
### Workflow Steps
1. Gather requirements (KPIs, filters, granularity, audience)
2. Discover model fields and data types
3. Create project folder + scaffold report
4. Rename default page (do not add a new one)
5. **Measure the scaffold** (existing visuals, theme, canvas size) before computing layout
6. Plan layout arithmetic from the measured scaffold
7. Add visuals row-by-row with explicit coordinates
8. Bind fields and set sort direction explicitly
9. Add report-level and page-level filters
10. Apply bespoke formatting only when theme is insufficient
11. Validate, then publish
### Rules
- Visuals must NOT overlap
- Favor theme changes over per-visual overrides
- Favor extension measures (`_Fmt`) with theme tokens (`good`/`bad`) for conditional formatting
- Always create reports inside a named project folder
- Run `pbir validate` after every mutation
- Use PascalCase for project / report / page / visual names
- Edit PBIR JSON directly via Claude Code or `pbir set` — do NOT use Tabular Editor
- Do NOT add `PBI_*` annotations manually
### Step 1 — Requirements & Model Discovery
```bash
pbir model # List reports + models
pbir model "Sales.Report" -d # Model definition
pbir model