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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Ivy_KK
Frequent Visitor

Login window appears each time the excel query are opened

Hi everyone, 

 

I have encountered an issue that window login appears each time when I open excel query for auto-refresh. As such, is there a way to get rid of the window login?

 

If no, is there a way to auto-refresh excel query without opening the file so that powerbi dataset will reflected the latest. 

 

Thanks. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Ivy_KK 

Thanks for your detail description and reply. We may understand that you need to refresh automatically at the time of EXCEL file closure. OneDrive/SharePoint Refresh is where changes are made to Excel on OneDrive/SharePoint, then OneDrive checks Excel for changes and then updates it about every hour. You can click the link below to learn more about OneDrive Refresh.

https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-data

https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-desktop-file-onedrive

44.png

If we want to update the dataset when the Excel file is closed, we can try to use the Power Automate, set a trigger for SharePoint/OneDrive file changes or file closure. With this trigger, trigger a power BI refresh.

45.png

47.png

46.png

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi, @Ivy_KK 

I'm happy to answer your questions. If you want to get rid of the Login window, here's an idea: Try to invoke EXCEL's API to get EXCEL QUERY. See the EXCEL API document for details.

Here are two ways to make the Power BI dataset react to the latest content: upload EXCEL files to OneDrive or SharePoint. Use EXCEL files in power bi dataset whose source is OneDrive or SharePoint. OneDrive will check for changes every hour or so.

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

If the excel is connected with the external data source, the data will not refreshed automatially in the requsted time interval as the excel file is closed. In such case, I have already saved the excel file in Onedrive and connect source to Onedrive link, but the updates in the dataset does not refresh to the latest also. 

 

In such case, is there a way to address the isuse. 

Anonymous
Not applicable

hi, @Ivy_KK 

Do you think our solution is helpful? If you have any comments or suggestions, please feel free to contact us.

Anonymous
Not applicable

Hi, @Ivy_KK 

Thanks for your detail description and reply. We may understand that you need to refresh automatically at the time of EXCEL file closure. OneDrive/SharePoint Refresh is where changes are made to Excel on OneDrive/SharePoint, then OneDrive checks Excel for changes and then updates it about every hour. You can click the link below to learn more about OneDrive Refresh.

https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-data

https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-desktop-file-onedrive

44.png

If we want to update the dataset when the Excel file is closed, we can try to use the Power Automate, set a trigger for SharePoint/OneDrive file changes or file closure. With this trigger, trigger a power BI refresh.

45.png

47.png

46.png

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors