Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I have created many measures in a query. I identified that the query is not necessary and the measure can be written in another existing query so I would like to delete the query but first I need to relocate the measures.
Is there an easy way to move a measure from one query to another other than individually copying/pasting the measure string?
It is possible to do it!! Go to the "model" tab on the left side
In that tab you can select the measurements you want to move
Next to it, in the "properties" tab switch to the table you want to be the measurements
And that's it 🙂
Of course, the measurement fields should be in the other data set as well, otherwise you will get an error.
Hope I helped 🙂
The latest version of PBI desktop includes a feature in the modeling tool to move measures. It works pretty well, but takes a while if you have a lot of measures. I tested this new feature in desktop, but when I went to connect an existing report to the test dataset, all of the visuals displayed errors saying that the measure can't be found. I thought since measures didn't explicitly reference the table like columns do, that this would not be an issue. Has anyone else tried this?
I found the solution and it is oh so easy. Changed my world haha
https://radacad.com/move-measures-to-another-table-in-power-bi
Click on the measure, go to the "Measure tools" ribbon and change the Home table on the left of the top navigation.
Thank you. You're the only person to post a valid solution!
Use the Tabular Editor tool. https://tabulareditor.com/
Then follow the below steps.
Open your pbix file and then open the tabular editor. File ==> Open ==> From DB ==> Local instance
In the below screenshot, I have two tables. Table 1 contains 4 measures.
Now I'm going to copy all the measures into Table 2
For that ctrl+click all the measures
Then drag into Table 2
Then click save
Now go-to Power BI desktop and click the refresh button.
Note: Make sure you have backup file before testing this.
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
@alicia_pbi, I doubt it now. There's an idea for that. Vote for that.
@alicia_pbi , I doubt it possible now. There is an idea for that. Vote for that
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
87 | |
85 | |
67 | |
49 |
User | Count |
---|---|
135 | |
112 | |
100 | |
66 | |
62 |