Skip to main content
BI4ALL BI4ALL
  • Expertise
    • Artificial Intelligence
    • Data Strategy & Governance
    • Data Visualisation
    • Low Code & Automation
    • Modern BI & Big Data
    • R&D Software Engineering
    • PMO, BA & UX/ UI Design
  • Knowledge Centre
    • Blog
    • Industry
    • Customer Success
    • Tech Talks
  • About Us
    • Board
    • History
    • Partners
    • Awards
    • Media Centre
  • Careers
  • Contacts
English
GermanPortuguês
Last Page:
    Knowledge Center
  • Unlocking Efficiency with TMDL View in Power BI

Unlocking Efficiency with TMDL View in Power BI

Página Anterior: Blog
  • Knowledge Center
  • Blog
  • Fabric: nova plataforma de análise de dados
1 Junho 2023

Fabric: nova plataforma de análise de dados

Placeholder Image Alt
  • Knowledge Centre
  • Unlocking Efficiency with TMDL View in Power BI
3 June 2025

Unlocking Efficiency with TMDL View in Power BI

Unlocking Efficiency with TMDL View in Power BI

Key takeways

TMDL lets you manage models as code, with find-and-replace, bulk edits, and version control.

It simplifies creating and reusing measures and objects for consistency and efficiency.

Enhances team collaboration and supports best practices in Power BI development.

As Power BI models become increasingly complex and mission-critical, development teams need more control, visibility, and collaboration capabilities. That’s where TMDL View (Tabular Model Definition Language) comes in a recent Power BI Desktop feature that gives users direct access to the underlying structure of semantic models. It provides a readable format that makes it easier to explore, understand, edit, and manage the model’s metadata. With TMDL View, it is possible to script tables, measures, and other model objects. Whether managing a large-scale enterprise model or collaborating across teams, TMDL simplifies version control, boosts productivity, and helps you build more maintainable models. In this article, we explore its top benefits and most powerful use cases.

 

Why Use TMDL View?

TMDL View introduces a YAML-based scripting interface that enables developers to manage their semantic models in a more code-like manner. Its key benefits are:

  • Development Efficiency:

TMDL View code editor supports features such as search-and-replace, keyboard shortcuts, multi-line edits, and more directly inside Power BI.

  • Transparency and Control:

Users can view and edit all semantic model objects and properties, including those not accessible through the standard Power BI interface.

  • Reusability:

Users can write TMDL scripts once and easily reuse or share them across projects.

 

TMDL also integrates seamlessly with version control tools like Git, enabling modern CI/CD practices in Power BI development.

 

Top Use Cases of TMDL View:

TMDL View’s code editor is more than a basic scripting tool – it’s a complete development environment designed to transform the way we work with our semantic models.

The most valuable use cases include:

  1. Bulk Editing
  • Adding Descriptions
    Enhance model clarity and usability by documenting the purpose of multiple tables, fields and measures through descriptive comments in a single step.

 

  • Find and Replace
    TMDL View allows users to efficiently rename multiple tables, columns and measures at once, eliminating the need for manual updates. By using the find-and-replace functionality, object names across the model or existent errors can be updated in seconds.

 

  • Format Data Types
    With TMDL View, users can define or adjust the data types of columns and measures by specifying properties such as dataType and formatString. This capability ensures consistency across the model.

 

  • Group Measures into Folders Efficiently
    Assign measures into their designated folders in a single action, improving model organisation and navigation.

 

  1. Bulk Measure Creation
  • Reusable DAX Code
    With TMDL View, there is no need to rewrite DAX formulas from scratch. Users can copy existing measures, paste them and make the necessary adjustments.

 

  • Migrating semantic model objects
    TMDL View makes it easy to reuse semantic model objects across multiple models, promoting consistency and reducing errors. If the user has a set of commonly used DAX measures, there is no need to recreate them for each model. By copying and pasting the script between models, the objects can be reused.

 

  1. Modify Relationships

Users can easily adjust relationships between tables by making quick edits directly in TMDL View.

 

  1. Edit M-Code, Switch Data Modes, and Adjust Summarization

Users can make direct changes to Power Query M-code with TMDL scripts without having to open the query editor. It is also possible to switch between Import and Direct Query modes using simple TMDL commands and update summarisation settings for multiple columns at once, minimising manual effort.

 

  1. Review Security Roles

Users can quickly inspect all defined security roles—both Row-Level Security (RLS) and Object-Level Security (OLS)—directly within TMDL View.

 

  1. Preview and Validate Changes to the Semantic Model

TMDL View allows users to preview changes before applying them. By showing a side-by-side TMDL code diff, you can compare the semantic model before and after script execution. This is especially useful when copying scripts from external sources, as it allows for an assessment of the impact on the semantic model before making any changes.

 

Conclusion

TMDL View is a significant advancement in the development and maintenance of semantic models in Power BI. By introducing a human-readable, text-based format (YAML), TMDL simplifies the understanding, editing, and version control of data models. This also facilitates the collaboration between team members.

It aligns well with modern development practices, enabling seamless integration with tools such as Git and supporting continuous integration/continuous deployment (CI/CD) pipelines. Developers gain greater flexibility, traceability, and efficiency when managing complex models while also benefiting from improved collaboration and reusability, which gives users better control.

As Power BI continues to evolve, TMDL is a key enabler of scalability and maintainability, representing a significant step toward scalable, enterprise-grade BI solutions.

 

References:

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-tmdl-view-for-power-bi-desktop-preview/

Author

Beatriz Crispim

Beatriz Crispim

Consultant

Share

Suggested Content

Data sovereignty: the strategic asset for businesses Blog

Data sovereignty: the strategic asset for businesses

In 2025, data sovereignty has become the new engine of competitiveness — turning massive volumes of information into innovation, efficiency, and strategic advantage.

Modern Anomaly Detection: Techniques, Challenges, and Ethical Considerations Blog

Modern Anomaly Detection: Techniques, Challenges, and Ethical Considerations

Anomaly Detection identifies unusual data patterns to prevent risks, using machine learning techniques

Optimising Performance in Microsoft Fabric Without Exceeding Capacity Limits Blog

Optimising Performance in Microsoft Fabric Without Exceeding Capacity Limits

Microsoft Fabric performance can be optimised through parallelism limits, scaling, workload scheduling, and monitoring without breaching capacity limits.

Metadata Frameworks in Microsoft Fabric: YAML Deployments (Part 3) Blog

Metadata Frameworks in Microsoft Fabric: YAML Deployments (Part 3)

YAML deployments in Microsoft Fabric use Azure DevOps for validation, environment structure, and pipelines with approvals, ensuring consistency.

Metadata Frameworks in Microsoft Fabric: Logging with Eventhouse (Part 2) Blog

Metadata Frameworks in Microsoft Fabric: Logging with Eventhouse (Part 2)

Logging in Microsoft Fabric with Eventhouse ensures centralised visibility and real-time analysis of pipelines, using KQL for scalable ingestion.

Simplifying Metadata Frameworks in Microsoft Fabric with YAML Blog

Simplifying Metadata Frameworks in Microsoft Fabric with YAML

Simplify metadata-driven frameworks in Microsoft Fabric with YAML to gain scalability, readability, and CI/CD integration.

video title

Lets Start

Got a question? Want to start a new project?
Contact us

Menu

  • Expertise
  • Knowledge Centre
  • About Us
  • Careers
  • Contacts

Newsletter

Keep up to date and drive success with innovation
Newsletter

2025 All rights reserved

Privacy and Data Protection Policy Information Security Policy
URS - ISO 27001
URS - ISO 27701
Cookies Settings

BI4ALL may use cookies to memorise your login data, collect statistics to optimise the functionality of the website and to carry out marketing actions based on your interests.
You can customise the cookies used in .

Cookies options

These cookies are essential to provide services available on our website and to enable you to use certain features on our website. Without these cookies, we cannot provide certain services on our website.

These cookies are used to provide a more personalised experience on our website and to remember the choices you make when using our website.

These cookies are used to recognise visitors when they return to our website. This enables us to personalise the content of the website for you, greet you by name and remember your preferences (for example, your choice of language or region).

These cookies are used to protect the security of our website and your data. This includes cookies that are used to enable you to log into secure areas of our website.

These cookies are used to collect information to analyse traffic on our website and understand how visitors are using our website. For example, these cookies can measure factors such as time spent on the website or pages visited, which will allow us to understand how we can improve our website for users. The information collected through these measurement and performance cookies does not identify any individual visitor.

These cookies are used to deliver advertisements that are more relevant to you and your interests. They are also used to limit the number of times you see an advertisement and to help measure the effectiveness of an advertising campaign. They may be placed by us or by third parties with our permission. They remember that you have visited a website and this information is shared with other organisations, such as advertisers.

Política de Privacidade