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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PatrickNealis
Frequent Visitor

Power BI Desktop connecting to One Drive for Automatic Refresh not working

I'm using Power BI Pro: If I create a report on Power BI Server (Online client), and select:

 

Get Data --> Impot Files --> One Drive for Business

 

A live connection to that file is created with a once, hourly automatic refresh. 

 

However, if I create a report on Power BI Desktop, then select:

 

Get Data --> File --> Excel --> (Navigate to file stored on One Drive for Business)

 

A connection is created which requires me to manually refresh the PBIX in order to update the data file in Power BI. 

 

I understand there is an option to setup a Data Gateway to schedule a refresh of the file using my computer, however if my computer is not turned on the Data Gateway will not run. 

 

The Question: Is there a way to establish a live connection to a file stored on One Drive using the Power BI Desktop client, so that the file stored on One Drive will automatically refresh? Basically, I want the functionality if the live connection of the Server client described above, using the Desktop client to build the report.

 

This workflow works using reports created in the Server client, but I have to use the Desktop client because RLS is currently not supported in the Server client. 

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @PatrickNealis,

However, if I create a report on Power BI Desktop, then select:

 

Get Data --> File --> Excel --> (Navigate to file stored on One Drive for Business)

 

A connection is created which requires me to manually refresh the PBIX in order to update the data file in Power BI. 

 

I understand there is an option to setup a Data Gateway to schedule a refresh of the file using my computer, however if my computer is not turned on the Data Gateway will not run. 



Instead of using Get Data --> File --> Excel, you should be able to use Get Data > Web to connect to files on OneDrive for Business.

 

In this way, the files on One Drive for Business are connected directly, so no Gateway is needed. You can then configure a daily schedule refresh on Power BI service. For more details about how to use OneDrive for Business links in Power BI Desktop, you can refer to this article. Smiley Happy

 

onedirve1.PNG

 

Regards

View solution in original post

3 REPLIES 3
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @PatrickNealis,

However, if I create a report on Power BI Desktop, then select:

 

Get Data --> File --> Excel --> (Navigate to file stored on One Drive for Business)

 

A connection is created which requires me to manually refresh the PBIX in order to update the data file in Power BI. 

 

I understand there is an option to setup a Data Gateway to schedule a refresh of the file using my computer, however if my computer is not turned on the Data Gateway will not run. 



Instead of using Get Data --> File --> Excel, you should be able to use Get Data > Web to connect to files on OneDrive for Business.

 

In this way, the files on One Drive for Business are connected directly, so no Gateway is needed. You can then configure a daily schedule refresh on Power BI service. For more details about how to use OneDrive for Business links in Power BI Desktop, you can refer to this article. Smiley Happy

 

onedirve1.PNG

 

Regards

Get Data --> Web worked! I have been banging my head against my keyboard for days trying to figure that out... Thank you!!!

I have the same issue I want to publish my powerbi file from one drive to web.  However, when i upload the file and get the .pbi file through the web Data --> File --> Excel --> (Navigate to file stored on One Drive for Business) I need to refresh manually. I tried to get the link of the .pbi file from one drive for business and get the same from power bi web as mentioned in the previous comment. But I cannot find the option to get the data from the web. I know i am missing something but cannot figure out what.

 

Any help is much appreciated. 

 

Thanks,

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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