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
JMDEJESUS88
Frequent Visitor

Refresh Excel Power Query data from Power BI

Hello everyone,

 

I created a custom API query in Excel Power Query to pull my data. I want to link this to my PowerBI without replicating the queries in Power BI because the API query takes a lot of data and it is from different excel workbooks. Also, its taking a long time to Query so I decided to place everything in Excel and then I import the excel workbook to my Power BI desktop. When I refresh my PowerBI, it does not refresh my PowerQuery in Excel. The only way to refresh data from PowerBi is to refresh the individual PowerQuery in Excel then refresh PowerBI. Is there a way to make my Excel Query refresh when I do a refresh from PowerBI?

 

Would appreciate any help you have.

Thanks

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @JMDEJESUS88 ,

 

No, Power BI can't send an instruction to Excel to refresh its queries, that's why Power BI has Power Query integrated.

Put your API query into PBI PQ, it will take less time as you will just be running the query then sending to the data model, rather than running a query, pulling the data over from Excel, then sending to the data model.

 

Additionally, the work for the PBI refresh will be picked up by your gateway machine once in production. This should have more available resources for processing and, therefore, will be faster again.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
BA_Pete
Super User
Super User

Hi @JMDEJESUS88 ,

 

No, Power BI can't send an instruction to Excel to refresh its queries, that's why Power BI has Power Query integrated.

Put your API query into PBI PQ, it will take less time as you will just be running the query then sending to the data model, rather than running a query, pulling the data over from Excel, then sending to the data model.

 

Additionally, the work for the PBI refresh will be picked up by your gateway machine once in production. This should have more available resources for processing and, therefore, will be faster again.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Thanks Pete, I guess I got no choice but to migrate all my Queries to PowerBI (should be easy by doing an import). The goal of this is to have a common dataset for the API Query I did and can be utilized by any users who's gonna pull it from our workspace.

Hi @JMDEJESUS88 ,

 

Moving queries from Excel to Power BI is as easy as selecting all queries in Excel PQ, right-click or Ctrl+C, go to PBI PQ then right-click on the empty query area and select paste.

 

Best of luck! 🙂

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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.

Top Solution Authors