pbid-tom-livelisted
Install: claude install-skill wardawgmalvicious/claude-config
## Power BI Desktop — Live TOM / ADOMD Operations
Local Analysis Services proxy inside Power BI Desktop. Enables TOM (metadata) and ADOMD.NET (DAX query) connections from PowerShell. Does not work for thin reports, Direct Lake models, or remote XMLA endpoints. For those use a remote XMLA / Power BI REST approach — see fabric-tmdl for semantic-model authoring and fabric-tmdl-api for Fabric semantic-model definition REST call patterns (createItemWithDefinition, updateDefinition).
> **Note (April 2026)**: Direct Lake on OneLake gained calculated-column / calculated-table preview support. The local msmdsrv proxy still does not bind to Direct Lake models — author and edit those columns through the remote XMLA endpoint (or the Desktop UI) and use TOM there. Local TOM / ADOMD scripting in this skill remains scoped to Import / DirectQuery models.
### Prerequisites
| Requirement | Notes |
|---|---|
| Power BI Desktop | Open with a non-thin model loaded |
| PowerShell + `nuget` | `winget install Microsoft.NuGet` |
| `Microsoft.AnalysisServices.retail.amd64` | TOM metadata DLLs |
| `Microsoft.AnalysisServices.AdomdClient.retail.amd64` | DAX query DLLs |
Packages extract to `$env:TEMP\tom_nuget\...\lib\net45\`. Load via `Add-Type -Path`. If TOM calls fail with missing type / compatibility level errors, swap to the newer `Microsoft.AnalysisServices` (.NET 8) package.
### Discovering Running PBID Instances
Each open `.pbix`/`.pbip` spawns one `msmdsrv.exe` on a random localhost port