Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

See when key Fabric features will launch and whatโ€™s already live, all in one place and always up to date. Explore the new Fabric roadmap

Find articles, guides, information and community news

Most Recent
anmolmalviya05
Super User
Super User

In todayโ€™s blog, weโ€™ll discuss a highly recommended best practice in Power BI: creating a dedicated Measure Table. This becomes especially important as your report complexity grows and the number of measures increases.

 

โ“ Why Create a Measure Table?


When working on real-world projects, it's common to create multiple measures across various tables. For example:

  • A few measures might be in the Customer table
  • Others in Sales, Exchange Rate, or other tables

This scattered placement leads to confusion โ€“ both for you and your teammates. If someone else opens your report later, understanding where each measure lives and what it does becomes unnecessarily difficult.

 

๐Ÿ‘‰ Solution? Centralize all your measures in a dedicated measure table. Itโ€™s cleaner, easier to manage, and a Power BI best practice.

 

๐Ÿ› ๏ธ Steps to Create a Measure Table


๐Ÿ”น Step 1: Create an Empty Table
Go to the Home tab in Power BI Desktop.
Click on Enter Data.
In the dialog box:Click Load.
Power BI will now create a new table with one default column. Donโ€™t worry โ€” weโ€™ll remove that shortly.

 

๐Ÿ”น Step 2: Move Existing Measures into the New Table
Letโ€™s say you already have a few measures like Demo 1, Demo 2, Demo 3, etc., located across different tables.

Option 1: Manual Move via Table View
Go to each measure.
In the Measure Tools ribbon, update the Home Table to Measure Table.
Repeat for each measure.

 

Option 2: Move in Bulk via Model View (Recommended)
Switch to Model View in Power BI.
Select all your measures using Ctrl + Click.
In the Properties pane, find Home Table and set it to Measure Table.
โœ… This moves all selected measures at once โ€“ fast and efficient!

 

๐Ÿงน Step 3: Clean UpOnce all measures are moved:

Delete the default column (e.g., Column1) from the new Measure Table.
Power BI will now treat this table as a pure measure container, and it will appear at the top of your Fields pane. A neat, clean workspace!

 

Checkout Step by Step Tutorial for the same: https://youtu.be/LkOPFF4N9RY?feature=shared

 

๐ŸŽฏ Whatโ€™s Next?
In the next blog, weโ€™ll cover how to organize your measures into folders inside the Measure Table โ€“ perfect when you have 50+ measures across categories like Sales, Profit, Discounts, Time Intelligence, etc.

 

๐Ÿ“ข Final Thoughts
Creating a measure table:

Simplifies navigation in large reports
Improves collaboration with other developers
Enhances performance by reducing confusion and dependency


Regards

Anmol Malviya


Proud to be a Microsoft Fabric community super user


Let's Connect on LinkedIn


Subscribe to my YouTube channel for Microsoft Fabric and Power BI updates.

anmolmalviya05
Super User
Super User

Power BI continues to evolve, offering powerful tools that enhance the data modeling and visualization experience. One of the latest additions to Power BI Desktop is the TMDL View (Tabular Model Definition Language), a feature currently in preview. This game-changing tool allows developers to script, modify, and apply changes to semantic models directly through code. In this blog, we'll dive deep into the functionalities of TMDL View, its benefits, and how you can leverage it to supercharge your Power BI projects.

 

What is TMDL?


TMDL offers a folder-based structure for managing your Power BI models, replacing the monolithic JSON file used by Tabular Model Scripting Language (TMSL). Instead of working with one large file, TMDL organizes your model into individual files for each table, perspective, role, and culture. This modular approach enhances clarity and simplifies collaboration, particularly for teams working on complex projects.


Key Benefits of TMDL:

  • Improved Collaboration: Multiple developers can work on different parts of the model simultaneously without stepping on each other's toes.
  • Enhanced Source Control: Easier to track changes, manage versions, and resolve merge conflicts using tools like Git.
  • Simplified Model Management: Quickly locate and edit specific components of your model without sifting through a massive JSON file.


Enabling TMDL in Power BI


To get started with TMDL, youโ€™ll need to enable it in the Preview features of Power BI Desktop:

  • Open Power BI Desktop
  • Navigate to File > Options and settings > Options
  • Under Preview features, check the box next to "TMDL VIEW"

anmolmalviya05_1-1746090466319.png

Once the preview feature is enabled, the TMDL view tab will appear on the left side of the Power BI Desktop window:

anmolmalviya05_2-1746090493255.png

 

Exploring Semantic Model Metadata

 

Even if you're not looking to modify your semantic model, TMDL View is a powerful tool for exploring and understanding model metadata. You can explore any particular measure, column, table or complete Semantic Model. You can either drag and drop the field to the space or simply right click on it and select script tab

anmolmalviya05_3-1746090553250.png

 

By clicking on this you wil be able to see the complete summary of the field as below

anmolmalviya05_4-1746090581096.png

 

Boosting Development Efficiency

TMDL Viewโ€™s code editor isnโ€™t just for scriptingโ€”itโ€™s a comprehensive development environment. Key features include:

  • Semantic Highlighting: Easily distinguish between different elements in your code.
  • Expand/Collapse: Navigate complex scripts with ease.
  • Error Diagnostics: Quickly identify and resolve issues.
  • Autocomplete: Speed up scripting with intelligent code suggestions.

For example, if you need to remove prefixes like "dim_" or "fact_" from all your tables, you can script the full model, search for these prefixes using regular expressions, and replace them in bulk.

 

Applying and Managing Changes


Once your scripts are ready, simply click the Apply button to execute the changes. Successful changes trigger a confirmation notification, while errors prompt a detailed diagnostic message, guiding you through troubleshooting steps.
Itโ€™s important to note that TMDL View only modifies semantic model metadataโ€”it doesnโ€™t refresh data or impact report visuals unless those changes directly affect them. For example, renaming a field might break existing visuals that rely on that field.


Use Cases:


TMDL view isn't just about scripting; it's about transforming how you manage and interact with your semantic models. Here are some practical use cases:
1. Bulk Move Measures into a Folder
Organize your measures effortlessly by scripting them into specific folders, enhancing model clarity and navigation.

2. Update M-Code Without Query Editor
Modify your Power Query M-code directly through TMDL scripts, bypassing the query editor for quicker updates.

3. Change Data Types
Easily adjust the data types of your columns using simple TMDL commands, ensuring consistency across your model.

4. Update Summarization at Once
Apply summarization changes to multiple columns simultaneously, saving time and reducing manual errors.

5. Find and Replace
Use the search-and-replace functionality to quickly update naming conventions or correct errors across your model.

6. Switch Between Import and Direct Query
Toggle your data connection modes from Import to DirectQuery or vice versa using TMDL scripts.

7. Import and Collaborate Using TMDL Scripts
Share your TMDL scripts with colleagues via email or platforms like SharePoint, promoting collaborative development.

8. Create Calendar Tables and Calculation Groups
Generate calendar tables and calculation groups directly in TMDL, streamlining time intelligence functions.

9. Utilize Multiple Cursors
Speed up your coding process with multiple cursors, allowing simultaneous edits in different parts of your script.

In upcoming blogs we will share detail about each use case in detail.

 

Conclusion


TMDL View in Power BI Desktop is a powerful addition that opens new doors for developers and analysts alike. Whether you're looking to enhance efficiency, improve model transparency, or collaborate seamlessly with your team, TMDL View offers the tools you need.

 

Stay ahead of the curve by enabling this feature today and exploring its vast potential. And donโ€™t forgetโ€”weโ€™d love to hear your thoughts and experiences! Share your feedback through the Power BI Community and help shape the future of Power BI.

 

Ready to dive in? Enable TMDL View in Power BI Desktop and start scripting your way to more efficient data models!


Proud to be a Microsoft Fabric community super user


Let's Connect on LinkedIn


Subscribe to my YouTube channel for Microsoft Fabric and Power BI updates.

anmolmalviya05
Super User
Super User

Creating a robust, reusable Calendar Table is one of the most essential steps in any data modeling process. And now with the introduction of TMDL (Tabular Model Definition Language) in Power BI, this process becomes not just easier but faster than everโ€”literally in one click.


In this blog, Iโ€™ll show you how you can use the TMDL View in Power BI to instantly create a rich calendar table with fiscal year handling, week numbers, month names, and more. You can also check out the step-by-step walkthrough video Iโ€™ve created for better visual understanding ๐Ÿ“น.

 

๐Ÿš€ What is TMDL View in Power BI?
TMDL (Tabular Model Definition Language) is a new declarative way to define tabular models in Power BI using codeโ€”making your model components (tables, columns, measures, partitions) more manageable, auditable, and reusable.


With TMDL support enabled, you can now:

  • View and edit model metadata in human-readable format
  • Create model objects directly using code (like calculated tables, measures, etc.)
  • Track and version model changes easily using source control

๐Ÿง  Why Use a Calendar Table?
Having a dedicated Calendar Table enables:

  • Proper time intelligence (e.g., YTD, MTD, QTD calculations)
  • Consistent filtering and grouping across visuals
  • Fiscal year handling
  • Easier customizations for weeks, months, quarters

โš™๏ธ How to Create Calendar Table using TMDL View?
Hereโ€™s a sample TMDL definition for a Calendar Table you can plug into the TMDL view.

๐Ÿงพ TMDL Code: Download/Copy with correct Indentation from here: (Click)

๐Ÿ”ง Steps to Implement:

  1. Enable TMDL View in Power BI Desktop (Preview feature)
  2. Navigate to TMDL View in Power BI Desktop and Create a New Script.
  3. Paste the code (Copy with correct indentation from here) into the TMDL Script Interface (Refer below screenshot)
    2.png
  4. Click on Apply button on top left.
    3.png
  5. Calendar table will get created, click on the refresh now button.
    4.png
  6. Explore the calendar table from the Data view
    5.png
  7. Note: If you want to change the date range or FY Start month then you can change it in the variables created in line 72,73 & 74. (Screenshot attached)
    6.png

๐ŸŽฅ Step-by-Step Video Guide
I've also created a detailed video tutorial showing each step from enabling TMDL to using the Calendar table in your reports.

๐Ÿ‘‰ Watch now on my YouTube channel [ANMOLPOWERBICORNER]
๐Ÿ”— Video Link: https://youtu.be/ogEcYqf1yJI 

๐Ÿ“Œ Final Thoughts
TMDL is a game-changer for Power BI developers. With just one snippet of code, you now have a full-featured, reusable Calendar Table ready to go! This will help you:

  • Save time โณ
  • Maintain consistency across reports ๐Ÿ“Š
  • Simplify versioning and collaboration using Git โœ…

๐Ÿ“ Follow my blog series for more such Power BI TMDL tips and tricks!


Proud to be a Microsoft Fabric community super user


Let's Connect on LinkedIn


Subscribe to my YouTube channel for Microsoft Fabric and Power BI updates.

anmolmalviya05
Super User
Super User

Have you ever added multiple visuals on top of each other in Power BI and noticed that they don't always behave the way you'd like? Especially when using shapes as backgrounds with cards or KPIs placed on top โ€” clicking the shape often hides the visuals above it.

 

In this blog, weโ€™ll learn how to manage and maintain the correct layering of visuals using the Selection Pane in Power BI Desktop.

Read more...

Sahir_Maharaj
Super User
Super User

Weโ€™re officially into the second week of the Fabric Community DataViz Contest for May 2025 - and the energy is flying high! Whether you're still deciding how to approach your visual, or already in DAX formulas, this post is for you. And if youโ€™ve opened the official dataset we provided, youโ€™ll know itโ€™s absolutely packed with columns waiting to be charted, sliced, and explored in Power BI. So today, weโ€™re going to do a proper walkthrough of the dataset, column by column.

Read more...

kushanNa
Solution Specialist
Solution Specialist

Have you ever wanted to extract raw data from your Power BI semantic models directly into Python?

You're not aloneโ€”many developers and data engineers working with Microsoft Fabric and Power BI run into fragmented documentation and scattered solutions. Thatโ€™s exactly why I wrote this blog.

In this step-by-step guide, you'll learn how to:

  • Connect to a Power BI semantic model using adodbapi

  • Authenticate securely with Microsoft

  • Extract full tables into your Python environment

Whether you're automating workflows, validating data, or building external dashboardsโ€”this blog brings everything into one place.

 

Read more...

anmolmalviya05
Super User
Super User

In this blog, we'll walk through a simple yet powerful technique โ€” displaying multiple slicer selections in a card or text box in Power BI. This can enhance user experience by showing selected filters right on the canvas!

Read more...

Helpful resources

Join Blog
Interested in blogging for the community? Let us know.