Professional Documents
Culture Documents
Refresh_a_dataset_created_from_an_Excel_workbook_cloud_Power_BI
Refresh_a_dataset_created_from_an_Excel_workbook_cloud_Power_BI
You can import Excel workbooks from your local machine, or from cloud storage such as
OneDrive for work or school or SharePoint Online. This article explores the advantages of
using cloud storage for your Excel files. For more information about how to import Excel files
into Power BI, see Get data from Excel workbook files.
When you import an Excel workbook from your personal OneDrive, any data in the
workbook loads into a new dataset in Power BI. For example, tables in worksheets, data
loaded into the Excel data model, and the structure of the data model goes into a new
dataset. Power BI automatically connects to the workbook on OneDrive, or SharePoint Online,
approximately every hour to check for updates. If the workbook changed, Power BI refreshes
the dataset and reports in the Power BI service.
You can refresh the dataset in the Power BI service. When you manually refresh or schedule a
refresh on the dataset, Power BI connects directly to the external data sources to query for
any updated data. It then loads updated data into the dataset. Refreshing a dataset from
within Power BI doesn't refresh the data in the workbook on OneDrive or SharePoint Online.
What’s supported?
Power BI supports the Refresh Now and Schedule Refresh options for datasets that meet
the following conditions:
The datasets are created from Power BI Desktop files that are imported from a local
drive.
Get data or Power Query Editor in Power BI is used to connect to and load the data.
The data is from a source that's described in one of the following sections.
7 Note
A gateway must be installed and running in order for Power BI to connect to on-
premises data sources and refresh the dataset.
In Power BI, connecting to OneDrive for work or school is typically seamless because you
likely use the same account to sign in to Power BI as OneDrive for work or school. But with
personal OneDrive, it's more common to sign in with a different Microsoft account .
837e862abf2aaf7c124dd4017ed51c5416d7e5b2
When you sign in to OneDrive for work or school with your Microsoft account, select Keep
me signed in. Power BI can then synchronize any updates you make in the file in Power BI
Desktop with datasets in Power BI.
If your Microsoft account credentials change, edits to your file on OneDrive can't synchronize
with the dataset or reports in Power BI. You need to reconnect and import the file again from
your personal OneDrive.
When you connect to an Excel workbook this way, a dataset isn't created in Power BI. But the
workbook appears in the Power BI service under Reports with an Excel icon next to the name.
Unlike with Excel Online, when you connect to your workbook from Power BI, if your
workbook has connections to external data sources that load data into the Excel data model,
you can set up a refresh schedule.
When you set up a refresh schedule this way, the only difference is refreshed data goes into
the workbook’s data model on OneDrive, or SharePoint Online, rather than a dataset in
Power BI.
1. In Excel, select Data > Get Data and select where you want your data to come from. In
this example, the data loads from an Excel workbook file.
2. In the file browser window, locate and select your data file and then select Import.
4. Then, in Import Data, be sure to select Add this data to the Data Model and select OK.
What if I use Get External Data in Power Pivot?
No problem. Whenever you use Power Pivot to connect to and query data from an on-
premises or online data source, the data automatically loads to the data model.
Troubleshooting
Sometimes refreshing data might not go as expected. Typically, problems with refreshing are
an issue with the data gateway. For tools, tips, and known issues, see the following articles
about troubleshooting the gateway.