Creating Measure Tables directly in your Fabric Data Warehouse

Introduction

Half a year ago, I wrote a blog post on creating Measure Tables in Fabric Data Lakehouses directly in the browser: How to create Measure Tables in Microsoft Fabric – Downhill Data (downhill-data.com). Back then, Data Warehouses were less relevant for the story, as they could not be used for Direct Lake models, and we could always just create our Measure Tables in Power BI Desktop.

Since then, support for Warehouse based Direct Lake Semantic Models has arrived, and it is worth showcasing that you can of course also create Measure Tables in your Data Warehouse based DirectLake Semantic Models.

Read on below to learn how!

Creating the Measure Table

To create your Measure table, simply create a new or open your existing Fabric Data Warehouse. Right-click on the Tables folder, and click New table.

This will auto-generate a SQL query that once executed, will create a simple table in your Data Warehouse:

Feel free to modify the schema as well as the name for the table – I have chosen the name ‘NewMeasureTableForBlog’ as the name for my table. The table needs at least one column in order to be created. However, it is not important what you call this column, as we will be hiding it from view anyway.

Running the Query should create the table in your Warehouse. You may or may not need to manually refresh the Tables folder in your Warehouse to see the result:

Converting the Table to a Measure Table

Now you arrive at a fork in your path, and you need to make a decision.

Do you wish to build your Power BI reports using the Default Semantic Model for your Warehouse? Or do you wish to create new Semantic Models on top of the Warehouse?

If the first is true, you can go ahead and create your Measures directly in the table you just created inside the default semantic model:

After creating the Measure, you can hide the original column:

And despite not being visible from within the Warehouse itself, the table will now be represented as a Measure Table when you use the semantic model to build reports:

However, if you do plan on creating new Semantic Models on top the warehouse, instead of using the default semantic model, you should instead avoid creating your Measure in the default semantic model, as this will prevent you from adding the Measure Table to your new semantic model.

Instead, simply create a new semantic model using the unmodified Measure Table you created originally, and only create the New Measure and Hide the original column, once inside and editing the new semantic model.

And there you have it! That is how to create Measure Tables in your Fabric Warehouse Semantic Models.

Also check out these other blogs:

Bulk Write-Back w. Translytical Task Flows in Microsoft Fabric / Power BI: Writing a single value back to multiple records at the same time

Introduction On this blog we’ve previously covered quite a few areas of Translytical Task Flows: Having presented a few sessions on Translytical Task Flows at conferences in the past moths, there is one major recurring question: How do you write-back multiple records at once? If you ask me, the questions of bulk write-back/writing back multiple…

Fabric Quick Tips – Pushing transformation upstream with Self Service Views and Tables in Visual Queries for Lakehouses/Warehouses/SQL DB

Introduction Recently, I’ve experienced a huge influx in requests from Microsoft Fabric customers wanting a good way for user’s to push data transformation upstream, following Roche’s Maxim: Data should be transformed as far upstream as possible, and as far downstream as necessary. To elaborate slightly, there are tons of Power BI Semantic Models out there…

Organizing your Microsoft Fabric Data Platform: Tags and Task Flows

Introduction We’ve arrived at the final level of detail in our series on Organizing your Microsoft Fabric Data Platform. So far we’ve covered, from broadest to narrowest scope: This time we go all the way down to the Item level on our platform, and describe strategies for labeling and categorising individual items by using Tags…

Something went wrong. Please refresh the page and/or try again.

Leave a comment