c-sharp-scripting - Write and run C# scripts for Tabular models
Write and execute C# scripts with Tabular Editor 2 or 3 to manipulate Power BI semantic model metadata.
Tags
Updated: 2026-09-28Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write Tabular Editor scripts
- Execute C# scripts
- Modify model metadata
- Bulk-update model objects
- Create calculation groups
- Manage security roles
- Format DAX expressions
- Query model metadata
- Build interactive dialogs
Inputs
- Semantic model connection
- Local BIM file
- Local TMDL definition
- Power BI Desktop connection
- C# script content
- Script file path
- XMLA credentials
- Selected model objects
Outputs
- Script execution messages
- Modified model metadata
- DAX execution results
- Exported property files
- Saved script files
- Error messages
Requirements
- Tabular Editor 2 or 3
- C# compiler support
- XMLA read/write access
- Azure service principal
- Power BI semantic model
