Posts

Power BI TMDL View: Create a Time Intelligence Calculation Group in Just One Click!

Image
Power BI TMDL View: Create a Time Intelligence Calculation Group in Just One Click! With the new Developer Mode and TMDL View introduced in Power BI, creating reusable and powerful time intelligence logic is easier than ever. In this blog, I'll walk you through how to create a Calculation Group with just one click using the TMDL syntax – no need to go through Tabular Editor or external tools anymore. 🔍 What is a Calculation Group? A Calculation Group allows you to create reusable logic for commonly used calculations like: Year-to-Date (YTD) Quarter-to-Date (QTD) Month-to-Date (MTD) Current Value (no filter applied) These can be dynamically applied to any measure, drastically reducing duplication and making your model more maintainable. 🚀 One-Click Script to Create Time Intelligence Calculation Group Simply paste the following TMDL script (Check here/download here) into the TMDL View: createOrReplace table 'Time Intelligence' c...

How to Create a Measure Table in Power BI – Best Practices for Clean & Organized Reports

Image
  How to Create a Measure Table in Power BI – Best Practices for Clean & Organized Reports Hi everyone, welcome back to Anmol Power BI Corner , your go-to resource for mastering Power BI and Microsoft Fabric. I'm Anmol Malviya , a Senior Data Analyst at Addend Analytics , and a recognized Microsoft 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. 👉 S...

Exploring the TMDL View in Power BI Desktop – The 5th View You Need to Know!

Image
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 Collaboratio...