c-sharp-scripting

Write and execute C# scripts for Power BI semantic models via Tabular Editor 2/3.

841|125|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/data-goblin/power-bi-agentic-development --skill c-sharp-scripting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: c-sharp-scripting
Source: https://github.com/data-goblin/power-bi-agentic-development/tree/main/skills/c-sharp-scripting
Command: npx skills add https://github.com/data-goblin/power-bi-agentic-development --skill c-sharp-scripting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write and execute C# scripts for Power BI semantic models using Tabular Editor 2/3, enabling automation of metadata changes and repeatable workflows.

Core Features & Use Cases

  • Guidance on writing C# scripts for TOM API, LINQ operations, DAX-related tasks, and interactive UI patterns
  • Examples for bulk updates to measures and columns, creation of calculation groups, and script-driven model maintenance
  • Real-world scenario: automate routine model maintenance across multiple tables and measures to save time and reduce errors

Quick Start

Open Tabular Editor and load or paste a sample C# script guided by this Skill to apply changes to your model.

Frequently Asked Questions about c-sharp-scripting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate bulk updates to measures and columns in Power BI semantic models?

You can automate bulk updates to measures and columns by writing and executing C# scripts via Tabular Editor 2/3, using TOM API and LINQ operations to apply metadata changes across the model for repeatable workflows.

What is the TOM API used for in Power BI tabular model scripting?

The TOM API in Power BI tabular model scripting is used to programmatically read and modify semantic model metadata, enabling developers to automate routine maintenance tasks and execute LINQ-based transformations on tables and measures.

Can I use C# scripts with WinForms for interactive UI scripting in Tabular Editor?

Yes, you can build interactive UI patterns using WinForms within your C# scripts in Tabular Editor, allowing for user-driven inputs and dynamic execution during semantic model maintenance and automation workflows.

Does Tabular Editor support running C# scripts from the command line?

Yes, Tabular Editor supports executing C# scripts via both CLI and IDE methods, enabling you to integrate TOM API scripts into automated pipelines and production workflows for repeatable metadata changes.

What is the best way to create calculation groups in Power BI using C#?

The best way to create calculation groups is by using C# script-driven model maintenance in Tabular Editor, applying LINQ operations and TOM API calls to programmatically generate and configure calculation group items.

What are the limitations of using C# scripts for Power BI model automation?

When using C# scripts for Power BI model automation, you must follow debugging patterns and best practices for safe execution to prevent errors, as scripts directly manipulate metadata and require repeatable workflows to ensure production stability.