Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi - This is for Power Query in Excel with SQL DB connection. Is there a way to configure just so that the data is automatically updated everytime the user opens up Excel file? Also I have a senario where the report viewer doesn't have an access to SQL database and we can only allow Windows authentication to the database (SQL authentication is not allowed). Is it possible to configure impersonation or anything that would allow user to refresh data? Please advice.
Thanks!
Solved! Go to Solution.
You can write a macro with VBA that triggers on open with the command Refresh.All
That will refresh all queries in the workbook.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I am not aware of that, and would probably advise against it. If you had a shared read only account to your database that anyone that would open your file had access to, that should work.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You can write a macro with VBA that triggers on open with the command Refresh.All
That will refresh all queries in the workbook.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I am not aware of that, and would probably advise against it. If you had a shared read only account to your database that anyone that would open your file had access to, that should work.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |