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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Find articles, guides, information and community news

Most Recent
anmolmalviya05
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 Supplier
Solution Supplier

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

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

grazitti_sapna
Super User
Super User

Make Smarter Marketing Moves with a Unified Power BI Dashboard

Optimize Campaigns & ROI with an Omnichannel Power BI Dashboard

Customers engage with businesses across a multitude of touchpoints — social media, email campaigns, paid ads, organic search, and more. With such a fragmented marketing ecosystem, understanding which channels truly drive high-quality leads, align with sales goals, and deliver the best return on investment can feel overwhelming.

Many organizations find themselves relying on siloed tools and platforms, each offering only a piece of the customer puzzle. This disjointed view makes it difficult to track performance, calculate ROI or ROAS accurately, and coordinate efforts between sales and marketing teams. The result? Missed opportunities, inefficient budget allocation, and a reactive approach to strategy.

But what if all your data could converge into a single, interactive dashboard, offering a clear, unified view of your customer journey and campaign effectiveness? That’s exactly what the omnichannel dashboard by Power BI delivers.

Designed to be both powerful and user-friendly, this dashboard empowers marketing and sales teams to make data-driven decisions with confidence. From real-time performance tracking to cross-channel attribution, it provides the insights needed to optimize strategies, maximize ROI, and work in sync — all from one centralized hub. It untangles complex data and transforms your marketing and sales strategy from reactive to proactive.

 

What is an Omnichannel Dashboard?

An omnichannel dashboard is a centralized reporting system that brings together data from web, social media, email campaigns, CRM, sales platforms, paid ads, and more, giving you a 360-degree view of your customer journey and campaign performance. It helps businesses like yours identify:

  • The most effective channels
  • Customer drop-off points in the funnel
  • Revenue-driving tactics
  • Campaign ROI in real time

Key Components of an Omnichannel Dashboard

  • Overall Insights
    Get a bird’s-eye view of leads, conversions, revenue, and engagement metrics across all platforms.
  • Leads Analytics
    Understand where your leads are coming from, which channels convert best, and where they drop off.
  • Sales & Opportunity
    Monitor your pipeline — from first contact to deal closure.
  • Paid Media Analytics
    Deep dive into ad performance on Google Ads, Facebook, LinkedIn, and more.
  • Web Analytics
    Analyze user behavior on your site, bounce rates, top-performing content, and more.

Visualizing the Marketing Funnel: A Real-Life Use Case

Imagine this — a lead has just entered the funnel at the MAL (Marketing Accepted Lead) stage, full of potential and promise. As they progress toward becoming an SQL (Sales Qualified Lead), the journey gets tougher, with more scrutiny and higher expectations. This is where your sales team steps in, working diligently to ensure the lead stays engaged and doesn’t fall through the cracks. With timely follow-ups, personalized outreach, and the right nudges, the lead eventually converts and becomes a Closed Customer (C-Cust), completing the funnel journey.

 

grazitti_sapna_0-1745571190028.jpeg

This animated funnel isn't just fun — it tells the story of conversion, making your data relatable and powerful.

How Power BI Supercharges this Journey

Power BI acts as the engine behind this funnel visualization, offering capabilities that simplify and elevate your marketing and sales analytics.

  • Data Integration

Whether you're using HubSpot, Salesforce, Google Analytics, or LinkedIn Ads, Power BI connects them all, ensuring your dashboard is always powered by real-time, accurate data.

  • Interactive & Engaging Visuals

    With animated funnel charts, custom measures, tooltips, and drill-throughs, Power BI lets you create visuals that don’t just inform — they tell a story.

    • ROI/ROAS Calculation at Your Fingertips

    Track your Return on Investment (ROI) or Return on Ad Spend (ROAS) per channel with calculated measures and custom KPIs.

    • Collaboration Made Easy

    Need to share insights with your team? Power BI allows seamless sharing across departments via Power BI Service or Teams integration.

Best Practices for Building Your Omnichannel Dashboard

Creating an effective omnichannel dashboard in Power BI isn’t just about loading in data — it’s about turning that data into meaningful insights that drive smarter decisions. Here are some key best practices to keep in mind:

  • Keep Visuals Clean and Focused on Outcomes
    Avoid clutter and information overload. Choose visuals that communicate performance against your goals, such as lead conversion rates, ROI, or campaign effectiveness. Every chart or graph should have a purpose and guide the viewer toward actionable insights.
  • Use Drill-throughs for Deeper Exploration
    Surface-level metrics are useful, but the real strength of Power BI lies in its ability to let users explore the "why" behind the numbers. Set up drill-throughs that allow users to click into specific campaigns, segments, or timeframes for more detailed analysis without crowding the main dashboard.
  • Update Dashboards Regularly
    Your marketing strategy is dynamic, and your dashboard should reflect that. Schedule regular data and review your KPIs periodically to ensure they align with current goals, channels, and campaign types. An outdated dashboard can mislead more than it informs.
  • Validate Data Logic and Source Mapping
    Clean data is the foundation of trustworthy insights. Make sure your data sources are mapped correctly, definitions are consistent across platforms, and calculated metrics (like ROAS or funnel drop-offs) are logically sound. Inaccuracies here can lead to poor strategic decisions.

Final Thoughts

An omnichannel dashboard built in Power BI isn't just another report — it's a strategic asset. It empowers your team to:

  • Spot what’s working — and what’s not
  • Boost ROI and conversion rates
  • Align marketing and sales like never before.

 

 

anmolmalviya05
Super User
Super User

Hi there! 👋

In this blog, we’re diving into an important statistical concept in Power BI — percentiles — specifically the difference between PERCENTILE.INC and PERCENTILE.EXC. If you work with distributions, outliers, or box plots, this one's for you!

Read more...

samratpbi
Super User
Super User

Recently, I wanted to show quarterly data in a simple column chart over the period of last and current year. The data is monthly and the requirement was to show partial Quarter with an indicator. Also, if the current quarter, lets say Q1 is not full (i.e. if on Jan & Feb data available) then the previous year's Q1 also should show partial data with an indication of the same. We will have to show values starting from the previous year. The idea is to show something like this.

 

samratpbi_1-1746458227762.png

 

Read more...

anmolmalviya05
Super User
Super User

Power BI is a feature-rich tool for building powerful data reports and dashboards. But beyond the commonly used visuals and DAX measures, there's a hidden gem that can add personality, context, and even visual storytelling to your reports — the UNICHAR() function.

 

In this blog, we’ll explore what UNICHAR() does, how to use it, and where it can bring real magic to your reports. 🪄

 

🔍 What is the UNICHAR() Function?

The UNICHAR() function returns the Unicode character that corresponds to the given numeric code.

 

📌 Syntax:

UNICHAR(<Unicode_Code>)

 

🧠 Example:

Checkmark = UNICHAR(10004)

 

This will display:

 

Unicode is a universal character set that includes symbols, emojis, characters from various languages, and more — meaning you can go far beyond plain text.

💡 Practical Use Cases for UNICHAR() in Power BI

Let’s look at how this small function can make a big impact.

 

1️⃣ Custom Icons & Visual Indicators

Use UNICHAR() to add visual feedback like checkmarks, crosses, arrows, and more.

 

Example:

Success Icon = IF([Status] = "Completed", UNICHAR(10004), UNICHAR(10008))

 

  • UNICHAR(10004) → ✓
  • UNICHAR(10008) → ✗

These symbols help users immediately identify statuses without reading detailed text.

anmolmalviya05_0-1744795888000.png

2️⃣ Emojis for Data Labeling 🎯

Emojis can turn boring tables into engaging insights. You can represent customer sentiment, priority levels, or product types with just a glance.

 

Customer Feedback =

SWITCH(TRUE(),

[Rating] = 5, UNICHAR(128522), -- 😊

[Rating] = 3, UNICHAR(128528), -- 😐

[Rating] = 1, UNICHAR(128546) -- 😢

)

anmolmalviya05_1-1744795966488.jpeg

👀 Bonus Tip: Combine with conditional formatting to show these emojis dynamically in table visuals!

3️⃣ Multilingual Flags 🌍

You can even use UNICHAR() to add flag emojis for internationalization — making your reports more user-friendly in global environments.

 

LanguageFlag =

IF([Language] = "French",

UNICHAR(127467) & UNICHAR(127479), -- 🇫🇷

UNICHAR(127464) & UNICHAR(127487) -- 🇺🇸

)

 

🗣️ Want to show language or region indicators next to your data? This is the cleanest way.

4️⃣ Decorative Separators & Styling

Sometimes, all you need is a nice horizontal line, arrow, or bullet point to separate or decorate your visual components.

 

LineSeparator = UNICHAR(8213) -- ⎯⎯⎯⎯

Bullet = UNICHAR(8226) -- •

RightArrow = UNICHAR(10145) -- ➡️

 

You can use these in table columns, cards, or even as a legend in tooltips.

📌 Unicode Resources

You can find Unicode codes at:

Just copy the code number and plug it into UNICHAR()!

🎯 Conclusion

The UNICHAR() function in Power BI may not get the spotlight, but it’s a game-changer for anyone looking to:

  • Enhance visual appeal
  • Add contextual indicators
  • Support international users
  • Make reports more interactive and fun

Next time you're building a dashboard, think beyond charts. Add some Unicode charm with UNICHAR()! 🧩

 

📢 Let’s Stay Connected!

 

Regards

Anmol Malviya | Addend Analytics

lbendlin
Super User
Super User

Let’s assume you have multiple files with similar or identical structure that you need to combine into a single table.  We will show you a more streamlined process than what is offered by the default "Combine files" option.

Read more...

anmolmalviya05
Super User
Super User

Switching between development and production databases in Power BI can often be a hassle — especially if you're manually editing PBIX files every time. But what if you could dynamically change the database connection directly from the Power BI Service?

In this blog, I’ll show you exactly how to make your SQL Server connection dynamic using parameters, allowing seamless switching between databases without downloading your PBIX file.

Read more...

anmolmalviya05
Super User
Super User

Power BI offers a powerful feature called What-If Parameters, which allows users to interact with their reports in real-time and perform scenario-based analysis.

 

In this blog, we’ll walk through:

🔹 What a What-If Parameter is

🔹 How to create one in Power BI

🔹 A practical use case with a sample dataset

Let’s dive in!

 

📊 Intro to the Dataset

For this example, I’m using a sales prediction dataset that estimates sales based on three conditions:

RA,A,SB

anmolmalviya05_0-1744707186841.png

 

Rather than focusing on the model’s backend logic, this blog will guide you through building a user-friendly, interactive report using these three columns as parameters.

 

🛠️ Creating What-If Parameters

To add What-If Parameters in Power BI:

 

Step 1: Go to the Modeling tab and select New Parameter.

anmolmalviya05_2-1744707322204.png

 

Create three parameters – one each for RA, A, and SB. Here are the settings I used for each:

anmolmalviya05_1-1744707263495.png

anmolmalviya05_3-1744707418804.png

 

Pro Tip: When you create a What-If parameter, Power BI will automatically generate:

  • A parameter table
  • A measure that returns the selected value from the slicer

📈 Using What-If Parameters

Now that our parameters are set up, we’ll use them in a measure to simulate how changes affect sales predictions.

 

Step 2: Create a Measure

This measure will calculate the predicted sales based on parameter values.

(You can plug in your model’s logic here using the parameter values.)

anmolmalviya05_4-1744707456629.png

 

Step 3: Build the Report

🧩 Add Slicers: Drag the columns from the parameter tables onto the report canvas to create three slicers for RA, A, and SB.

anmolmalviya05_5-1744707476392.png

 

🧮 Add a Card or Chart: Use your newly created measure to visualize the outcome — in our case, predicted sales.

anmolmalviya05_6-1744707487929.png

 

Now when you adjust the slicer values, the sales prediction updates instantly, allowing users to explore different scenarios.

anmolmalviya05_7-1744707499338.png

 

Conclusion

What-If Parameters are an excellent tool to enhance interactivity and provide flexibility to end users. Whether it’s for forecasting, pricing scenarios, or operational decision-making — they bring your data to life.

 

💡 Want to try more What-If ideas?

Experiment with pricing changes, marketing budget simulations, or stock forecasting!

 

Best regards

Anmol Malviya

Sr. Data Analyst | Addend Analytics

Helpful resources

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