March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Power BI has been improving on monthly basis and we get to learn new features in this tool every now and then.
Recently working within a project I felt an extreme need of organizing my measures in some way. I ended up adding so many measures based on the requirements that my original dataset started looking messy. I recently came across Measure tables term in Power BI. Trust me, this measure table is an amazing way to organize all the measure calculations, specially when you have so many of them in your report.
Today in this blog I will take you through the steps of creating these measure tables in Power BI by taking a simple example.
Consider the following dataset where in the screesnhot you see the part of the table. Here you can see that I have got few measures, though I have got more:
Our task is to somehow organise these measures at a single location so that they can be easily managed.
We will start by creating a table in Power BI using the ENTER DATA option:
The following window appears and give the following entries as shown and hit LOAD:
You will see a table is created under fields pane as MEASUREDOMAIN which has got a TestColumn in it:
Now create a test measure in this table as follows and you end up with following:
Now we will hide the only column in this table by right clicking on it and choosing HIDE option:
We end up with just a measure in this table:
Refresh the FIELDS PANE section now. This can be done by using the arrow in this pane by collapsing it and then expanding it again. See below:
You will see that the MEASUREDOMAIN table has landed to the top under FIELDS Pane with a new MEASURE icon:
So, we have successfully created a measure table, where we can organize our measures.
The only step now we need to do is move all our measures from the base CLOTHINGSALES table to MEASUREDOMAIN table.
Follow the steps in the short gif below to move all the measures:
I have shown how we can move AverageSales measure from CLOTHINGSALES to MEASUREDOMAIN table.
Once I move all the measure, I get the following:
We can see that the CLOTHINGSALES table is much cleaner and less messy. You can now delete the TestMeasure that we created earlier.
All the measures are under MEASUREDOMAIN table and easy to track and manage.
Trust me this is a brilliant way to organise measures in your Power BI report and will make your life much easier specially in the scenarios where you end up having so many measure calculations on a single Power BI report.
Hope this helps everyone out there.
- Pragati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.