Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
admin11
Memorable Member
Memorable Member

How to copy sales table from one PBI file to another PBI file ?

Hi All

 

I have a PBI file , which unable to refresh , so i like to copy the SALES table from power quary to another new PBI file , As you notice that right side the red color box , it have more then 20 row. like rename the column and change the date format etc.

admin11_0-1646483521053.png

It is possible for me , by just copy the code from advance editor :- 

admin11_1-1646483675658.png

Hope some one can advise me.

 

Paul

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi ,


Do you want to debug the error query or just copy the correct query to another file?

If  just copy the correct query to another file,please try below steps:

Select queries you want to copy from file 1 >  after that Right click and Copy the queries. Using ctrl + click you can select multiple queries.

Now go to file 2, and open Power Query Editor.

After that right click on blank area and paste the queries.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mahoneypat
Microsoft Employee
Microsoft Employee

You can copy the M code from the Advanced Editor to a new blank query (or you can just right click on the query on the left and choose copy and then paste it into the same place in a new file), but if you are unable to refresh the data, you wouldn't be able to do it in the new file either.

 

If you need to export the data from the report, you can use DAX Studio. You can export it as a csv and bring it into a new pbix file with the Text/CSV connector.

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.