A question I’ve come across recently is around ways to better organise measures in Power BI so they are easier to find.
The query is usually along the lines of wishing there was a way to group measures together in the field list so users don’t have to scroll and search. ย Measures can often be spread across multiple tables and become harder to find as more tables are added to the data model.
I’m going to share in this blog a technique I’ve found useful in Power BI for collecting measures together in once place AND placing them at the top of the field list.
The good news is, calculated measures do not have to exist on the table that stores the underlying data specific to that measure. ย Measures can be placed on any table in the model and they will still work as expected. ย This may not be immediately obvious but it’s handy to know.
So lets look at the following simple calculated measure which counts the rows in the Customers table.
Count of Customers = COUNTROWS('Customers')
While it might make sense to create this measure on a Customer table, there is nothing stopping you creating the measure on any other table in the data model. ย It will still yield the same result. ย So in theory, you could create this particular measure on a Date table and the measure will still work as expected.
I’m not suggesting you create measures on your Dateย table but we can create a dummy table specifically to house your measures meaning they will be grouped together and easier to find.
This can be done easily enough as follows :
1. In Power BI Desktop, click the Enter Dataย button on the Home tab
2. Enter some fake data. ย In this case I added the value of 1 to the first row/column. ย We will not use this data, it just allows our table to exist.
3. Name your table
4. Load the data
Now you have a new table which you can start moving your existing measures to as follows :
1. Find your measure in the field list and click to select it so it has a yellow border.
2. In the modeling tab, select the Home Table button
3. Choose the name of the new table to be the home table for your measure.
Now repeat for all the measures you would like moved and grouped together.
The last thing to do is to hide the column we created when we created the table. ย You can do this by right clicking the column name in the field list and selecting Hide Field from the context menu.
When all columns from a table have been hidden and it only has measures, the table will jump to the top of the field list once you save, close and reopen the PBIX file. ย The icon for the table should also change to show a calculator rather than a table icon.
And that’s it!
In the following image you can see the My Measures table at the top of the field list showing measures ready to drag into your report.
In SSAS MDX and Tabular models we are lucky to have folders but this isn’t available in Power BI yet. ย I’m sure it will come. ย If you have multiple logical groupings of measures you may consider creating multiple measure tables named appropriately. ย Until then I hope you find this as a useful tip to help tidy up some messy Power BI models.








Hi Reza, just wondering does moving the measure to a separate table impact on the performance of the measures?
Hi Aaron.
Tables are just place holder of measures. It doesn’t matter at all which table holds the measure. No impact on the performance at all.
Great tip man! Thanks a lot!
Thank you very much!
Reza, I was thinking about the number of measures created. In a complex database, a hundred of measures could be necessary. Is it a problem?
Hi Peter
Having a lot of measures is not a problem by itself. Measures are just metadata definitions.
The problem might appear when you use them in visualizations and pages. If you have a page with 100s of complex measures, it will bring the performance of the report down.
Cheers
Reza