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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
erhodes
Advocate II
Advocate II

Copy a Query from one PowerBI file to another

Does anyone know how (if it is possible) to copy a query from one PowerBI file to another. I have a query that pulls data from CRM (Account Set) that I have customized (i.e. modified values, data types, calculated columns, etc.) that I would like to copy into a different powerBI file instead of having to redo the same query.

 

 

3 REPLIES 3
pqian
Employee
Employee

Since December in the queries editor you can simply right click->copy and then right click->paste into the target pbix

Cool, I hadn't seen passed this feature.

Thx @pqian

 

 

itchyeyeballs
Impactful Individual
Impactful Individual

If you edit the query, select advanced editor from the ribbon, then just copy the code and do the reverse in the new file

 

I often save mine to text files for easy reference and transfer

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.