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
i2rsantos
Helper I
Helper I

Clarification on Power BI Data Connections

Hi There,

I have questions about what happens behind the scenes when I import an Excel spreadsheet into Power BI Desktop from a file on my local computer.  When I do this, does this mean there is a 'live connection' to the underlying Excel spreadsheet?  So, whatever I do will be reflected in the  .pbix referencing that spreadsheet if I edit the spreadsheet.  Is the connection broken when I publish to the Power BI service?

 

On a secondary note, how do I reference an Excel spreadsheet in my OneDrive for Business?  When I choose Excel as a data source, Power BI Desktop takes me to my local file system.

1 ACCEPTED SOLUTION
v-xiaosun-msft
Community Support
Community Support

Hi @i2rsantos ,

 

There are three connection modes in Power BI: Import, Direct Query, and Live Connection.

When the report runs in Import mode, the data is queried from the data source and stored in the cache on a schedule.

When a report operates in DirectQuery/Live mode, data is queried live from the data source. There is no caching involved.

Thus, when you import an Excel spreadsheet into Power BI Desktop, it does not mean there is a 'live connection' to the underlying Excel spreadsheet. After you do some changes in your excel, you need to right click the table and then click "refresh data", you will see the table upgraded.

vxiaosunmsft_0-1667959321362.png

If you publish the report to service, since the data source is a local file, so you need to use a gateway to connect to the data source. With a gateway, you can configure a scheduled refresh.

If you want to reference an Excel spreadsheet in your OneDrive for Business, you need to use "Get Data" ->"Web".

vxiaosunmsft_1-1667960138924.png

Then paste the link of your excel to it.

vxiaosunmsft_2-1667960172492.png

 

Please reference to the following documents.

Power BI connection modes – Davidson Technology & Innovation

Get data from Excel workbook files - Power BI | Microsoft Learn

On-premises data gateway - Power BI | Microsoft Learn

Add or remove a gateway data source - Power BI | Microsoft Learn

 

Best Regards,
Community Support Team _ xiaosun

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

1 REPLY 1
v-xiaosun-msft
Community Support
Community Support

Hi @i2rsantos ,

 

There are three connection modes in Power BI: Import, Direct Query, and Live Connection.

When the report runs in Import mode, the data is queried from the data source and stored in the cache on a schedule.

When a report operates in DirectQuery/Live mode, data is queried live from the data source. There is no caching involved.

Thus, when you import an Excel spreadsheet into Power BI Desktop, it does not mean there is a 'live connection' to the underlying Excel spreadsheet. After you do some changes in your excel, you need to right click the table and then click "refresh data", you will see the table upgraded.

vxiaosunmsft_0-1667959321362.png

If you publish the report to service, since the data source is a local file, so you need to use a gateway to connect to the data source. With a gateway, you can configure a scheduled refresh.

If you want to reference an Excel spreadsheet in your OneDrive for Business, you need to use "Get Data" ->"Web".

vxiaosunmsft_1-1667960138924.png

Then paste the link of your excel to it.

vxiaosunmsft_2-1667960172492.png

 

Please reference to the following documents.

Power BI connection modes – Davidson Technology & Innovation

Get data from Excel workbook files - Power BI | Microsoft Learn

On-premises data gateway - Power BI | Microsoft Learn

Add or remove a gateway data source - Power BI | Microsoft Learn

 

Best Regards,
Community Support Team _ xiaosun

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

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!

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.