Inkey Solution Logo
banner

Blogs

Power BI > How to easily copy Measures from one pbix file to another?

, February 5, 2021 46914 Views

Have you ever questioned if it is feasible to move all of the measures from one Power BI PBIX file to any other PBIX file?

Imagine you’ve got 2 PBIX files with the same models, i.e all tables used in the measures have the same data structure. If someday you are in this position then there will be a lot of measures to move from one file to another. Copying and pasting measures one by one can be a test from hell. It is a wolf in sheep’s clothing. It takes your efforts as well as your time. So how to do it at one go? 

Here is the solution for it!

You will need an external tool Tabular Editor for this. If you already don’t have it, then please install it first.

You can visit the Tabular Editor website to download the latest installer.

You will then have 2 running instances of Power BI Desktop on your PC as you need to open both the pbix files at the same time. Make sure you are clear which file is which. Just rename your files for better understanding.

 


Discover the power of our services:

Microsoft Fabric, Power BI, Microsoft Business Intelligence, SQL Server, and Business Central. By the power of these services, from advanced analytics to seamless business integration, we’ve got the expertise you need to optimize operations and drive growth. Harness the potential of your data infrastructure with our comprehensive suite of solutions.


 

Here I have 2 files one is Employee_details with Measures and another is  ‘Employee_details without Measures’.

Launch Tabular Editor for both PBIX files

Go to each file, one at a time, and launch Tabular Editor. Do it carefully, one at a time, ensuring you understand which model belongs to which PBIX file.


Copy the Measures

If you can’t see measures in the source file, make sure they are not hidden.
In Tabular Editor, from the View menu, select Measures. We can see that the measures are visible in the ‘Employee_details with Measures’ file shown in the image below(left side).

In our case, all the measures exist in the _Measure Table.


Below are the steps to copy measures from one file to another:

  • Select all measures from the list you want to copy.
  • Copy the measures. Press Ctrl+C.
  • Switch to the second instance of Tabular editor(one that’s not having measures)
  • Select the destination table to store the measures.
  • Paste the measures. Press Ctrl+V.

Click save on Tabular Editor in the destination workbook.


After saving the destination model, you will be able to see all the measures in the destination file.

Happy Reporting!

mm

Inkey

INKEY is your solution partner.
Our focus is to deliver you in-time intelligent innovative solutions ("key") for the problems in hand. Maintaining a quality standard right from the inception of a project is our top most priority.

Our team of talented professionals will execute your projects with dedication and excellence. We take ownership and accountability for the effort that goes into meeting our client’s needs.

Years of experience and proven success of delivering innovative custom solutions.

More posts by

2 responses to “Power BI > How to easily copy Measures from one pbix file to another?”

  1. Anki Tibs says:

    Thank you for this. I sit possible to copy the measures using DAX Studio ?

    • Admin says:

      AFAIK, it is not possible to copy measures using DAX Studio, we can surely export it, but not COPY.

Leave a Reply

Your email address will not be published. Required fields are marked *

The maximum upload file size: 2 MB. You can upload: image, audio, video, document, spreadsheet, interactive, text, archive, code, other. Drop file here

Would you like to digitize your business and put it on the cloud?
Do you need clear, concise reports for your organization?