You have a Fabric tenant that contains a semantic model. The model contains 15 tables.
You need to programmatically change each column that ends in the word Key to meet the following requirements:
• Hide the column.
• Set Nullable to False.
• Set Summarize By to None
• Set Available in MDX to False.
• Mark the column as a key column.
What should you use?
You need to programmatically change each column that ends in the word Key to meet the following requirements:
• Hide the column.
• Set Nullable to False.
• Set Summarize By to None
• Set Available in MDX to False.
• Mark the column as a key column.
What should you use?
Show answerHide answer
Correct answer: B Tabular Editor
Explanation
Explanation:The key requirement is to programmatically change multiple advanced metadata properties across a large number of columns (15 tables, likely dozens of columns ending in "Key") based on a specific naming convention (ends in the word Key).
Programmatic Bulk Changes: Tabular Editor (an external tool that connects to the semantic model via the XMLA endpoint) supports C# Advanced Scripting. This scripting feature is specifically designed to iterate through all tables and columns in a model, identify objects that match a condition (e.g., column.Name.EndsWith("Key")), and apply bulk changes to their properties in a single, automated operation.
Advanced Properties: Tabular Editor provides direct access to the full Tabular Object Model (TOM), allowing modification of advanced properties like IsHidden, SummarizeBy, IsAvailableInMdx, and marking the column as a key column, which is essential for this task.
Correct Option:
B. Tabular Editor
Automation via Scripting: Tabular Editor allows the use of C# scripts to automate model metadata changes. This is the only way among the options to iterate over columns based on a naming convention and apply multiple, specific property changes in bulk.
Direct Model Access: It connects to the semantic model (dataset) via the XMLA endpoint, enabling precise, high-speed, and programmatic modifications to the model's metadata (IsHidden = true, SummarizeBy = None, etc.).
Incorrect Option:
A. Microsoft Power BI Desktop
Manual Changes: While Power BI Desktop is the primary tool for developing models, it does not offer built-in functionality for running C# or equivalent scripts to automate bulk changes based on name patterns. You would have to manually select and change properties for each column individually, which is inefficient for 15 tables.
C. ALM Toolkit
Comparison/Deployment: ALM Toolkit is designed for Application Lifecycle Management (ALM) tasks. Its primary use cases are comparing two semantic models, merging changes, and deploying models between development, test, and production environments. It is not designed for authoring or programmatically editing the internal structure of a single model's metadata.
D. DAX Studio
Querying and Tuning: DAX Studio is a client tool focused on executing DAX queries, viewing metadata, and performing performance tuning (tracing and query analysis). It is purely a read/query tool and has no capability to modify the underlying structure or properties of the semantic model.
Reference:
Microsoft Learn: Programming Power BI semantic models with the Tabular Object Model (TOM); DP-600 Exam Discussions: Tabular Editor is the correct tool for programmatic, bulk changes to model properties using C# scripting.

