You can import data into Excel from a wide variety of data sources and the sections that follow show you how. For more information on what to do with your data once it's imported, see How data journeys through Excel.
Â
You can create a query from an Excel table, named range, or dynamic array in the current workbook. If the selected data is a simple range, itâs converted to a table. Importing dynamic arrays requires a Microsoft 365 subscription. For more information on dynamic arrays, see Dynamic array formulas and spilled array behavior.
-
Select any cell within your data range.
-
Select Data > From Table/Range.
This command is also available from Data > From Other Sources > From Table/Range. -
If prompted, in the Create Table dialog box, you can select the Range Selection button to select a specific range to use as a data source.
-
If the table or range of data has column headers, select My table has headers. The header cells are used to define the column names for the query.
-
Select OK.
For more information, see Import from an Excel Table.
-
Select Data > Get Data > From File > From Excel Workbook.Â
-
In the Excel Browse dialog box, browse for or type a path to the file that you want to query.
-
Select Open.
If your source workbook has named ranges, the name of the range will be available as a data set.
For more information about advanced connector options, see Excel Workbook.
The following procedure shows the basic steps. For more detailed coverage, see Import or export text (.txt or .csv) files.
-
Select Data > Get Data > From File > From Text/CSV.Â
-
In the Comma-Separated Values Browse dialog box, browse for or type a path to the file that you want to query.
-
Select Open.
:Â If you are importing data from a CSV file, Power Query will automatically detect column delimiters including column names and types. For example, if you imported the example CSV file below, Power Query automatically uses the first row as the column names and changes each column data type.
Example CSV file
Power Query automatically changes each column data type:
-
Order ID changes to number
-
Order Date changes to date
-
Category remains text (the default column type)
-
Product Name remains text (the default column type)
-
Sales changes to number
For more information about advanced connector options, see Text/CSV.
The following procedure shows the basic steps of importing data. For more detailed coverage, see Import XML data.
-
Select Data > Get Data > From File > From XML.Â
-
In the From XML Browse dialog box, browse for or type a file URL to import or link to a file.
-
Select Open.
After the connection succeeds, use the Navigator pane to browse and preview the collections of items in the XML file in a tabular form.
For more information about advanced connector options, see XML.
-
Select Data > Get Data > From File > From JSON. The Import Data dialog box appears.
-
Locate the JSON file, and then select Open.
For more information about advanced connector options, see JSON.
Important  When you try to import a PDF file, you may get the following PDF message: âThis connector requires one or more additional components to be installed before it can be used.â The PDF connector requires .NET Framework 4.5 or higher to be installed on your computer. You can download the latest .NET Framework from here.Â
-
Select Data > Get Data > From File > From PDF.
-
Select your PDF file, and then click Open. The Navigator dialog box opens your PDF and displays available tables.
-
Select the tables you want to import, then do one of the following:
-
To view the data directly in Excel, Select Load > Load or to see the Import dialog box, select Load > Load To.
-
To work with the data in Power Query first, select Transform Data.
-
For more information about advanced connector options, see PDF.
You can import data from several files having a similar schema and format from a folder. Then, you can append the data into one table.
-
Select Data > Get Data > From File > From Folder.
-
In the Browse dialog box, locate the folder, and then select Open.
-
For detailed steps, see Import data from a folder with multiple files.
For more information about advanced connector options, see Folder.
You can import data from several files having a similar schema and format from a SharePoint library. Then, you can append the data into one table.
-
Select Data > Get Data > From File > From SharePoint Folder.
-
In the SharePoint Folder dialog box, enter the root URL for the SharePoint site not including any reference to a library, and then navigate to the library.
-
For detailed steps, see Import data from a folder with multiple files.
For more information about advanced connector options, see SharePoint folder.
-
Select Data > Get Data > From Database > From SQL Server Database.Â
-
In the Microsoft SQL Database dialog box, specify the SQL Server to connect to in the Server Name box. Optionally, you can specify a Database Name as well.
-
If you want to import data using a native database query, specify your query in the SQL Statement box. For more information, see Import Data from Database using Native Database Query.
-
Select OK.
-
Select the authentication mode to connect to the SQL Server database.
-
Windows    This is the default selection. Select this if you want to connect using Windows authentication.
-
Database Select this if you want to connect using SQL Server authentication. After you select this, specify a user name and password to connect to your SQL Server instance.
-
-
By default, the Encrypt connection check box is selected to signify that Power Query connects to your database using an encrypted connection. If you do not want to connect using an encrypted connection, clear this check box, and then click Connect.
If a connection to your SQL Server is not established using an encrypted connection, Power Query prompts you to connect using an unencrypted connection. Click OK in the message to connect using an unencrypted connection.
For more information about advanced connector options, see SQL Server database.
-
Select Data > Get Data > From Database > From Microsoft Access Database.Â
-
In the Import Data dialog box, browse for and locate the Access database file (.accdb).Â
-
Select the file, and then select Open. The Navigator dialog box appears.
-
Select the table or query in the left pane to preview the data in the right pane.
-
If you have many tables and queries, use the Search box to locate an object or use the Display Options along with the Refresh button to filter the list.
-
Select Load or Transform.
For more information about advanced connector options, see Access database.
Note    When you use a workbook connected to a SQL Server Analysis Services database, you may need additional information to answer specific product questions, such as reference information about multidimensional expressions (MDX), or configuration procedures for an online analytical processing (OLAP) server.
-
Select Data > Get External Data > From Database > From Analysis Services. The first page of the Data Connection Wizard appears. Its title is Connect to Database Server.
-
In the Server name box, enter the name of the OLAP database server.
:Â If you know the name of the offline cube file that you want to connect to, you can type the complete file path, file name, and extension.
-
Under Log on credentials, do one of the following, then click Next:
-
To use your current Windows user name and password, click Use Windows Authentication.
-
To enter a database user name and password, click Use the following User Name and Password, and then type your user name and password in the corresponding User Name and Password boxes.
Security Note
-
Use strong passwords that combine uppercase and lowercase letters, numbers, and symbols. Weak passwords don't mix these elements. For example, Y6dh!et5 is a strong password and House27 is a weak password. Passwords should contain 8 or more characters. A pass phrase that uses 14 or more characters is better.
-
It is critical that you remember your password. If you forget your password, Microsoft cannot retrieve it. Store the passwords that you write down in a secure place away from the information that they help protect.
-
-
-
Select Next to go to the second wizard screen. Its title is Select Database and Table.
To connect to a specific cube file in the database, make sure that Connect to a specific cube or table is selected, and then select a cube from the list.
-
In the Select the database that contains the data you want box, select a database, and then click Next.
-
Click Next to go to the third wizard screen. Its titled Save Data Connection File and Finish.
-
In the File Name box, revise the default file name as needed (optional).
-
Click Browse to change the default file location of My Data Sources, or check for existing file names.
-
In the Description, Friendly Name, and Search Keywords boxes, type a description of the file, a friendly name, and common search words (all are optional).
-
To ensure that the connection file is used when the PivotTable is refreshed, click Always attempt to use this file to refresh this data.
Selecting this check box ensures that updates to the connection file will always be used by all workbooks that use that connection file.
-
You can specify how a PivotTable is accessed if the workbook is saved to Excel Services and is opened by using Excel Services.Â
:Â The authentication setting is only used by Excel Services, and not by Microsoft Office Excel. If you want to ensure that the same data is accessed whether you open the workbook in Excel or Excel Services, make sure that the authentication setting in Excel is the same.
Select Authentication Settings, and select one of the following options to log on to the data source:Â
-
Windows Authentication       Select this option to use the Windows username and password of the current user. This is the most secure method, but it can affect performance when there are many users.
-
SSO       Select this option to use Single Sign On, and then enter the appropriate identification string in the SSO ID text box. A site administrator can configure a SharePoint site to use a Single Sign On database where a username and password can be stored. This method can be the most efficient when there are many users.
-
None       Select this option to save the username and password in the connection file.
:Â Avoid saving logon information when connecting to data sources. This information may be stored as plain text, and a malicious user could access the information to compromise the security of the data source.
-
-
Select OK.
-
Select Finish to close the Data Connection Wizard. The Import Data dialog box appears.
-
Decide how you want to import the data, and then select OK. For more information about using this dialog box, select the question mark (?).
You can create a dynamic connection between an Excel workbook and a SQL Server Analysis Services Online Analytical Processing (OLAP) database server, then refresh that connection whenever the data changes. You can connect to a specific offline cube file if it has been created on the database server. You can also import data into Excel as either a Table or a PivotTable report.
-
Select Data > Get Data > From Database > From SQL Server Analysis Services Database (Import).Â
-
Enter the Server name, and then select OK.
-
In the Navigator pane select the database, and then select the cube or tables you want to connect.
-
Click Load to load the selected table into a worksheet, or click Edit to perform additional data filters and transformations in the Power Query Editor before loading it.
For more information about advanced connector options, see SQL Server Analysis Services.
:Â Before you can connect to an Oracle database using Power Query, please ensure all prerequisites are met.Â
-
Select Data > Get Data > From Database > From Oracle Database.
-
In the Oracle Database dialog box, in Server Name specify the Oracle Server to connect to. If a SID is required, this can be specified in the form of âServerName/SIDâ.
-
If you want to import data using native database query, specify your query in the SQL Statement box. For more information, see Import data from database using Native Database Query.
-
Select OK.
-
If the Oracle server requires database user credentials:
-
In the Access a Database dialog box, enter your username and password.
-
Click Connect.
-
For more information about advanced connector options, see Oracle Database.
:Â
-
Before you can connect to an IBM DB2 database, you need the IBM DB2 Data Server Driver installed on your computer (minimum requirement is the IBM Data Server Driver Package (DS Driver)). Select the driver that matches your Power Query installation (32-bit or 64-bit).
-
There are known issues reported by IBM installing the IBM DB2 Data Server Driver on Windows 8. If you are using Windows 8 and want to connect to IBM DB2 using Power Query, you need to follow additional installation steps. Find more information about the IBM DB2 Data Server Driver on Windows 8.
-
Select Data > Get Data > From Database > From IBM DB2 Database.Â
-
In the IBM DB2 Database dialog box, in Server Name specify the IBM DB2 Database Server to connect to.
-
If you want to import data using native database query, specify your query in the SQL Statement box. For more information, see Import data from a database using Native Database Query.
-
Select OK.
-
If the IBM DB2 server requires database user credentials:
-
In the Access a Database dialog box, enter your username and password.
-
Click Connect.
-
For more information about advanced connector options, see IBM DB2 database.
:Â If receive the message âThis connector requires one or more additional components to be installed before it can be used.â, you need to download the appropriate ODBC Driver for MySQL to your Windows device from here. For more information, see MySQL Connectors.
-
Select Data > Get Data > From Database > From MySQL Database.
-
In the MySQL Database dialog box, in Server Name specify the MySQL Database Server to connect to.
-
If you want to import data using native database query, specify your query in the SQL Statement box. For more information, see Import data from a database using Native Database Query.
-
Select OK.
-
If the MySQL server requires database user credentials:
-
In the Access a Database dialog box, enter your username and password.
-
Click Connect.
-
For more information about advanced connector options, see MySQL database.
: Before you can connect to a PostgreSQL database in Power Query, you need the Ngpsql data provider for PostgreSQL installed on your computer. Select the driver that matches your Office version (32-bit or 64-bit). For more information, see Which version of Office am I using? . Also make sure you have the provider registered in the machine configuration that matches the most recent .NET version on your device.
-
Select Data > Get Data > From Database > From PostgreSQL Database.Â
-
In the PostgreSQL Database dialog box, specify the PostgreSQL Database Server you want to connect to in the Server Name section.
-
If you want to import data using native database query, specify your query in the SQL Statement box. For more information, see Import data from a database using Native Database Query.
-
Select OK.
-
If the PostgreSQL server requires database user credentials:
-
In the Access a Database dialog box, enter your username and password.
-
Select Connect.
-
For more information about advanced connector options, see PostgreSQL.
: Before you can connect to an SAP SQL Anywhere database, you need the⯠SAP SQL Anywhere driver installed on your computer. Select the driver that matches your Excel installation (32-bit or 64-bit).
-
Select Data > Get Data > From Database > From Sybase Database.Â
-
In the Sybase Database dialog box, specify the Sybase Server to connect to in the Server Name box. Optionally, you can specify a Database Name as well.
-
If you want to import data using a native database query, specify your query in the SQL Statement box. For more information, see Import data from a database using Native Database Query.
-
Select OK.
-
By default, the Encrypt connection check box is selected so that Power Query connects to your database using a simple encrypted connection.
-
Select Connect.
For more information, see Sybase database.
:Â Before you can connect to a Teradata database, you need the .NET Data Provider for Teradata on your computer.
-
Select Data > Get Data > From Database > From Teradata Database.
-
In the Teradata Database dialog box, in Server Name specify the Teradata Server to connect to.
-
If you want to import data using native database query, specify your query in the SQL Statement box. For more information, see Import data from a database using Native Database Query.
-
Select OK.
-
If the Teradata server requires database user credentials:
-
In the Access a Database dialog box, enter your username and password.
-
Click Save.
-
For more information, see Terabase database.
:Â
-
This feature is only available in Excel for Windows if you have Office 2019 or later, or a Microsoft 365 subscription. If you are a Microsoft 365 subscriber, make sure you have the latest version of Office.
-
Before you can connect to an SAP HANA database using Power Query, you need the SAP HANA ODBC Driver on your computer. Select the driver that matches your Power Query installation (32-bit or 64-bit).
-
You will need an SAP account to login to the website and download the drivers. If you are unsure, contact the SAP administrator in your organization.
To connect to an SAP HANA database:
-
Click Data > New Query > From Database > From SAP HANA Database.
-
In the SAP HANA Database dialog box, specify the server you want to connect to. The server name should follow the format ServerName:Port.
-
Optionally, if you want to import data using native database query, Select Advanced options and in the SQL Statement box enter the query.
-
Select OK.
-
If the SAP HANA server requires database user credentials, then in the Access an SAP HANA database dialog box, do the following:
-
Click the Database tab, and enter your username and password.
-
Click Connect.Â
-
For more information about advanced connector options, see SAP HANA database.
Azure SQL Database is a high-performing, fully managed, scalable relational database built for the cloud and used for mission-critical applications. For more information, see What is Azure SQL?.
-
Select Data > Get Data > From Azure > From Azure SQL Database.
-
In the Microsoft SQL Database dialog box, specify the SQL Server to connect to in the Server Name box. Optionally, you can specify a Database Name as well.
-
If you want to import data using a native database query, specify your query in the SQL Statement box. For more information, see Import Data from Database using Native Database Query.
-
Select OK.
-
Select the authentication mode to connect to the SQL Server database.
-
Windows    This is the default selection. Select this if you want to connect using Windows authentication.
-
Database Select this if you want to connect using SQL Server authentication. After you select this, specify a user name and password to connect to your SQL Server instance.
-
-
By default, the Encrypt connection check box is selected to signify that Power Query connects to your database using an encrypted connection. If you do not want to connect using an encrypted connection, clear this check box, and then click Connect.
If a connection to your SQL Server is not established using an encrypted connection, Power Query prompts you to connect using an unencrypted connection. Click OK in the message to connect using an unencrypted connection.
For more information about advanced connector options, see Azure SQL database.
Azure Synapse Analytics combines big data tools and relational queries by using Apache Spark to connect to Azure data services and the Power Platform. You can load millions of rows in no time. Then, you can work with tabular data by using familiar SQL syntax for queries. For more information, see What is Azure Synapse Analytics (docs.com).
-
Select Data > Get Data > From Azure > From Azure Synapse Analytics.
-
In the Microsoft SQL Database dialog box, specify the SQL Server to connect to in the Server Name box. Optionally, you can specify a Database Name as well.
-
If you want to import data using a native database query, specify your query in the SQL Statement box. For more information, see Import Data from Database using Native Database Query.
-
Select OK.
-
Select the authentication mode to connect to the SQL Server database.
-
Windows    This is the default selection. Select this if you want to connect using Windows authentication.
-
Database Select this if you want to connect using SQL Server authentication. After you select this, specify a user name and password to connect to your SQL Server instance.
-
-
By default, the Encrypt connection check box is selected to signify that Power Query connects to your database using an encrypted connection. If you do not want to connect using an encrypted connection, clear this check box, and then click Connect.
If a connection to your SQL Server is not established using an encrypted connection, Power Query prompts you to connect using an unencrypted connection. Click OK in the message to connect using an unencrypted connection.
For more information about advanced connector options, see Azure Synapse Analytics.
Azure HDInsight is used for big data analysis when you need to process large amounts of data. It supports data warehousing and machine learning; you can think of it as a data flow engine. For more information, see What is Azure HDInsight?.
-
Select Data > Get Data > From Azure > From Azure HDInsight (HDFS).Â
-
Enter the Account name or URL of the Microsoft Azure Blob Storage account associated with your HDInsight cluster, and then select OK.
-
In the Access Microsoft Azure HDInsight dialog box, enter your Account Key, and click Connect.
-
Select your cluster in the Navigator dialog, and then find and select a content file.
-
Select Load to load the selected table, or Edit to perform additional data filters and transformations before loading it.
For more information about advanced connector options, see Azure HDInsight.
Microsoft Azure Blob Storage is a service for storing large amounts of unstructured data, like images, videos, audio, and documents, which can be accessed from anywhere in the world via HTTP or HTTPS. For more information about Azure Blob Storage service, see How to Use Blob Storage.
-
Select Data > Get Data > From Azure > From Azure Blob Storage.Â
-
In the Microsoft Azure Blob Storage dialog box, enter your Microsoft Azure storage account name or URL, and then select OK.
-
If you are connecting to the Blob storage service for the first time, you will be prompted to enter and save the storage access key. In the Access Microsoft Azure Blob Storage dialog box, enter your storage access key in the Account Key box, and click Save.
:Â If you need to retrieve your storage access key, browse to the Microsoft Azure Portal, select your storage account, and then select the Manage Access Key icon on the bottom of the page. Select the copy icon to the right of the primary key, and then paste the value in the Account Key box.
-
The Query Editor lists all the available containers in your Microsoft Azure Blob Storage. In the Navigator, select a container from where you want to import data, and then select Apply & Close.
For more information, see Azure Blob Storage.
The Azure Storage provides storage services for a variety of data objects. The Table storage component targets NoSQL data stored as key/attribute pairs. For more information, see Introduction to Table storage.
-
Select Data > Get Data > From Azure > From Azure Synapse Analytics.
-
Enter the Account name or URL of the Microsoft Azure Table Storage account, and then select OK.
For more information about advanced connector options, see Azure Table Storage.
:Â Azure Data Lake Storage Gen 1 is being retired. For more information, see Action required: Switch to Azure Data Lake Storage Gen2 by 29 February 2024.
-
Select Data > Get Data > From Azure > From Azure Data Lake Storage.
-
Enter the Account name or URL of the Microsoft Azure Data Lake Storage account, and then select OK.swebhdfs://contoso.azuredatalake.net/
For example: -
Optionally, enter a value in the Page Size in Bytes box.
For more information, see Azure Data Lake Storage.
Azure Data Lake Storage Gen 2Â combines different data warehouses into a single, stored environment. You can use a new generation of query tools to explore and analyze data, working with petabytes of data. For more information, see Azure Data Lake Storage.
-
In the Azure Data Lake Storage Gen2 dialog box, provide the account URL. URLs for Data Lake Storage Gen2 have the following pattern:
https://<accountname>.dfs.core.windows.net/<container>/<subfolder> For example, https://contosoadlscdm.dfs.core.windows.net/ -
Select whether you want to use the File System View or the Common Data Model (CDM) Folder View.
-
Select OK.
-
You may need to choose an authentication method.
For example, if you select the Organizational account method, select Sign in to sign into your storage account. You'll be redirected to your organization's sign-in page. Follow the prompts to sign into the account. After you've successfully signed in, select Connect. -
In the Navigator dialog box verify the information, and then select either Transform Data to transform the data in Power Query or Load to load the data.
For more information, see Azure Data Lake Storage.
Azure Data Explorer is a fast and highly scalable data exploration service for log and telemetry data. It can handle large volumes of diverse data from any data source, such as websites, applications, IoT devices, and more. For more information, see What is Azure Data Explorer.
-
Select Data > Get Data > From Azure > From Azure Data Explorer.
-
In the Azure Data Explorer (Kusto) dialog box, enter appropriate values.
Each prompt provides helpful examples to walk you through the process. -
Select OK.
You can import Datasets from your organization with appropriate permission by selecting them from the Power BI Datasets pane, and then creating a PivotTable in a new worksheet.
-
Select Data > Get Data > From Power BI (<Tenant name>). The Power BI Datasets pane appears. <Tenant name> varies depending on your organization, for example, Power BI (Contoso).
-
If many Datasets are available, use the Search box. Select the arrow next to the box to display keyword filters for versions and environments to target your search.
-
Select a Dataset and create a PivotTable in a new worksheet. For more information, see Overview of PivotTables and PivotCharts.
For more information on Power BI, see Create a PivotTable from Power BI datasets and Data Management Experience in Power BI for Office 365 Help.
A dataflow is a data preparation technology that enables ingesting, transforming, and loading data into Microsoft Dataverse environments, Power BI workspaces, or Azure Data Lake. You can trigger dataflows to run either on demand or automatically on a schedule so that data is always kept up to date.
-
Select Data > Get Data > From Power Platform > From Dataflows.
-
If prompted, enter the required credentials, or sign in as a different user. The Navigator pane appears.
-
Select the dataflow in the left pane to preview it in the right pane.
-
Do one of the following:
-
To add the data to a worksheet, select Load.
-
To add the data to the Power Query Editor, select Transform Data.
-
For more information, see An overview of dataflows across Microsoft Power Platform.
Use Dataverse to securely store and manage data in the cloud. You can create or import custom tables specific to your organization, populate them with data by using Power Query, and then use Power Apps or Microsoft Access to build rich business applications.
-
Select Data > Get Data > From Power Platform > From Dataverse.
-
If prompted, enter the required credentials, or sign in as a different user. The Navigator pane appears.
-
Select the data in the left pane to preview it in the right pane.
-
Do one of the following:
-
To add the data to a worksheet, select Load.
-
To add the data to the Power Query Editor, select Transform Data.
-
For more information, see What is Microsoft Dataverse.
-
Select Data > Get Data > From Online Services > From SharePoint Online List.
-
In the SharePoint Folder dialog box, enter the root URL for the SharePoint site not including any reference to a library, and then navigate to the library.
-
Select the 2.0 Beta SharePoint implementation, which enables Advanced options, so you can select a View mode:
All    Retrieves all columns from a SharePoint List. Default    Retrieves the columns set in the Default View of a SharePoint List. -
As an alternative to 2.0 Beta, you can select 1.0, which corresponds to the earlier version of SharePoint.
For more information about advanced connector options, see SharePoint Online list.
-
Select Data > Get Data > From Online Services from SharePoint Online List.
-
In the Microsoft Exchange dialog box enter your email address in the form of <alias>@<organization>.com
-
If you have many objects, use the Search box to locate an object or use he Display Options along with the Refresh button to filter the list.
-
Select or clear the Skip files with errors checkbox at the bottom of the dialog box.
-
Select the table you want: Calendar, Mail, Meeting Requests, People, and Tasks.
-
Do one of the following:
-
To create a query, and then load to a worksheet, select Load > Load.
-
To create a query, and then display the Import Data dialog box, select Load > Load To.
-
To create a query, and then launch the Power Query Editor, select Transform Data.
For more information about advanced connector options, see Microsoft Exchange Online.
-
Select the Environment you want to connect to.
-
In the menu, select the Settings icon > Advanced customizations > Developer resources.
-
Copy the Instance Web API value.Â
:Â
-
The url format will be something like https://<tenant>.crm.dynamics.com/api/data/v9.0.
-
The exact format of the URL you will use to connect depends on your region and the version of CDS for Apps you're using. For more information see:Â Web API URL and versions.
-
-
Select Data > Get Data > From Online Services > From Dynamics 365 (online).
-
In the dialog box, with the Basic option selected, enter the Web API URL for your CDS for Apps connection, and click OK.
-
If you select the Advanced option, you can append certain additional parameters to the query to control what data is returned. For more information see:Â Query Data using the Web API.
-
-
Select Organization account.
-
If you aren't signed in using the Microsoft Work or School account you use to access Dataverse for Apps, select Sign in and enter the account username and password.
-
-
Select Connect.
-
Within the Navigator dialog, select the data you want to retrieve.
-
Verify the data is correct, and then select Load or Edit to open the Power Query Editor.
-
Select Data > Get Data > From Online Services > From Salesforce Objects. The Salesforce Objects dialog box appears.
-
Select either Production or Custom. If you select Custom, enter the URL of a custom instance.
-
Select or clear Include relationships column.
-
Select OK.
For more information about advanced connector options, see Salesforce Objects.
Because Salesforce Reports has API limits retrieving only the first 2,000 rows for each report, consider using the Salesforce Objects connector to work around this limitation if needed.
-
Select Data > Get Data > From Online Services > From Salesforce Reports. The Salesforce Reports dialog box appears.
-
Select either Production or Custom. If you select Custom, enter the URL of a custom instance.
-
Select or clear Include relationships column.
-
Select OK.
For more information about advanced connector options, see Salesforce Reports.
Make sure you have the latest version of the Adobe Analytics connector. For more information, see Connect to Adobe Analytics in Power BI Desktop.
-
Select Data > Get Data > From Online Services > From Adobe Analytics.
-
Select Continue. The Adobe Account dialog box appears.
-
Sign in with you Adobe Analytics Organizational account, and then select Connect.
For more information about advanced connector options, see Adobe Analytics.
For more information, see From Table/Range.
:Â
-
When you try to import a data from the web, you may get the following message:⯠âThis connector requires one or more additional components to be installed before it can be used.ââŻThe Web connector requires WebView 2 Framework to be installed on your computer.
-
You can download it from here.
-
This update does not apply for volume licensing versions (e.g. Commercial Perpetual).
Procedure
-
Select Data > New Query > From Other Sources > From Web.
-
In the From Web dialog box, enter a web page URL, then click OK.
In this case, we're using: http://en.wikipedia.org/wiki/UEFA_European_Football_Championship.
If the web page requires user credentials:
-
Select Advanced, and then In the Access Web dialog box, enter your credentials.
-
Select Save.
-
-
Select OK.
-
In the  Navigator pane, do the following:
Select Table View, such as Results. Select Web View to see the table as a web page. -
Select Load to load the data into a worksheet.
For more information about advanced connector options, see Web.
Microsoft Query has been around a long time and is still popular. In many ways, it's a progenitor of Power Query. For more information, see Use Microsoft Query to retrieve external data.
-
Select Data > Get Data > From Other Sources > From SharePoint List.
-
In the Microsoft SharePoint Lists dialog box, enter the URL for a SharePoint site.
:Â When connecting to a SharePoint list, enter the site URL instead of the list URL. In the Access SharePoint dialog box, select the most general URL to authenticate against the site correctly. By default, the most general URL is selected.
-
Select OK.
-
In the Access SharePoint dialog box, select a credentials option:
-
Select Anonymous if the SharePoint Server does not require any credentials.
-
Select Windows if the SharePoint Server requires your Windows credentials.
-
Select Organizational account if the SharePoint Server requires organizational account credentials.
-
-
Select Connect.
For more information about advanced connector options, see SharePoint list.
-
Select Data > Get Data > From Other Sources > From OData Feed.Â
-
In the OData Feed dialog box, enter the URL for an OData feed.
-
Select OK.
-
If the OData feed requires user credentials, in the Access an OData feed dialog box:
-
Select Windows if the OData feed requires Windows Authentication.
-
Select Basic if the OData feed requires your username and password.
-
Select Marketplace key if the OData feed requires a Marketplace account key. You can select the Get your Marketplace Account Key to subscribe to Microsoft Azure Marketplace OData feeds. You can also Sign up for Microsoft Azure Marketplace from the Access an OData Feed dialog box.
-
Click Organizational account if the OData feed requires federated access credentials. For Windows Live ID, log into your account.
-
Select Save.
-
:Â Importing to an OData feed supports the JSON light data service format.
For more information about advanced connector options, see OData feed.
Hadoop Distributed File System (HDFS) is designed to store terabytes and even petabytes of data. HDFS connects computer nodes within clusters over which data files are distributed and you can access these data files as one seamless file stream.
-
Select Data > Get Data > From Other Sources > From Hadoop File (HDFS).
-
Enter the name of the server in the Server box, and then select OK.
For more information about advanced connector options, see Hadoop File (HDFS).
-
Select Data > Get Data > From Other Sources > From Active Directory.
-
Enter your domain in the Active Directory dialog box.
-
In the Active Directory Domain dialog box for your domain, select Use my current credentials, or select Use alternate credentials and then enter your Username and Password.
-
Select Connect.
-
After the connection succeeds, use the Navigator pane to browse all the domains available within your Active Directory, and then drill down into Active Directory information including Users, Accounts, and Computers.
For more information about advanced connector options, see Active Directory.
-
Select Data > Get Data > From Other Sources > From Microsoft Exchange.Â
-
In the Access an Exchange Server dialog box, enter your Email Address and Password.
-
Select Save.
-
In the Microsoft Exchange Autodiscover Service dialog box, select Allow to allow the Exchange Service to trust your credentials.
For more information about advanced connector options, see Microsoft Exchange.
-
Select Data > Get Data > From Other Sources > From ODBC.Â
-
In the From ODBC dialog box, if displayed, select your Data Source Name (DSN).
-
Enter your connection string, and then select OK.
-
In the next dialog box, select from Default or Custom, Windows, or Database connection options, enter your credentials, and then select Connect.
-
In the Navigator pane, select the tables or queries that you want to connect to, then select Load or Edit.
For more information about advanced connector options, see ODBC data source.
-
Select Data > Get Data > From Other Sources > From OLEDB.Â
-
In the From OLE DB dialog box, enter your connection string, and then select OK.
-
In the OLEDB Provider dialog, select from the Default or Custom, Windows, or Database connection options, enter the appropriate credentials, and then select Connect.
-
In the Navigator dialog box, select the database, and tables or queries you want to connect to, and then select Load or Edit.
For more information about advanced connector options, see OLE DB.
: Retirement of Facebook data connector notice     Import and refresh data from Facebook in Excel will stop working in April, 2020. You will still be able to use the Facebook Power Query (Get & Transform) connector until then, but starting in April, 2020, you will be unable to connect to Facebook and will receive an error message. We recommend revising or removing any existing Power Query (Get & Transform) queries that use the Facebook connector as soon as possible to avoid unexpected results.
:Â If this is the first time you've connected to Facebook, you will be asked to provide credentials. Sign in using your Facebook account, and allow access to the Power Query application. You can turn off future prompts by clicking the Don't warn me again for this connector option.
-
On the Data tab, click Get Data > From Online Services > From Facebook. If you don't see the Get Data button, click New Query > From Other Sources > From Facebook.
-
In the Facebook dialog box, connect to Facebook using âMeâ, your Username, or Object ID.
:Â Your Facebook username is different from your login email.
-
Select a category to connect to from the Connection drop-down list. For example, select Friends to give you access to all information available in your Facebook Friends category.
-
Click OK.
-
If necessary, click Sign in from the Access Facebook dialog, then enter your Facebook email or phone number, and password. You can check the option to remain logged in. Once signed in, click Connect.
-
After the connection succeeds, you will be able to preview a table containing information about the selected category. For instance, if you select the Friends category, Power Query renders a table containing your Facebook friends by name.
-
Click Load or Edit.
You can create a blank query. You might want to enter data to try out some commands, or you can select the source data from Power Query:
-
To change a setting such as credentials or privacy, select Home > Data Source Settings. For more information, see Manage data source settings and permissions.
-
To import an external data source, select Home > New Source. This command is similar to the Get Data command on the Data tab of the Excel ribbon.
-
To import a recent source, select Home > Recent Sources. This command is similar to the Recent Sources command on the Data tab of the Excel ribbon.
When you merge two external data sources, you join two queries that create a relationship between two tables.
For more information, see Merge queries (Power Query), Learn to combine multiple data sources (Power Query), and Merge queries overview.
When you append two or more queries, the data is added to a query based on the names of the column headers in both tables. If the queries donât have matching columns, null values are added to the unmatched column. The queries are appended in the order in which they're selected.
For more information, see Append queries (Power Query) and Append queries.
If you are a developer, there are several approaches within Excel that you can take to import data:
-
You can use Visual Basic for Applications to gain access to an external data source. Depending on the data source, you can use either ActiveX Data Objects or Data Access Objects to retrieve the data. You can also define a connection string in your code that specifies the connection information. Using a connection string is useful, for example, when you want to avoid requiring system administrators or users to first create a connection file, or to simplify the installation of your application.
-
If you import data from an SQL Server database, consider using SQL Native Client, which is a standalone data access Application Programming Interface (API) that is used for both OLE DB and ODBC. It combines the SQL OLE DB Provider and the SQL ODBC Driver into one native, dynamic link library (DLL), while also providing new functionality that is separate and distinct from the Microsoft Data Access Components (MDAC). You can use SQL Native Client to create new applications or enhance existing applications that can take advantage of newer SQL Server features, such as Multiple Active Result Sets (MARS), User-Defined Types (UDT), and XML data type support.
-
The RTD function retrieves real-time data from a program that supports COM automation. The RTD COM automation add-in must be created and registered on a local computer.
-
The SQL.REQUEST function connects with an external data source and runs a query from a worksheet. The SQL.REQUEST function then returns the result as an array without the need for macro programming. If this function is not available, you must install the Microsoft Excel ODBC add-in program (XLODBC.XLA). You can install the add-in from Office.com.
For more information about creating Visual Basic for Applications, see Visual Basic Help.
-
Select Data > Get Data (Power Query).
-
In the Choose data source dialog box, select Excel workbook.
-
Select Browse to locate the file you want to connect as the data source.
-
In the File picker dialog box, select the file, review the file details, and then select Get Data and Next.
-
On the left, select the data you want to import, and then on the right, confirm the selection in data preview.
-
At the bottom right, select Load.
-
Select Data > Get Data (Power Query).
-
In the Choose data source dialog box, select Text/CSV.
-
Select Browse to locate the file you want to connect as the data source.
-
In the File picker dialog box, select the file, review the file details, and then select Get Data and Next.
-
Confirm the file origin and delimiter selection in data preview.
-
At the bottom right, select Load.
-
Select Data > Get Data (Power Query).
-
In the Choose data source dialog box, select XML.
-
Select Browse to locate the file you want to connect as the data source.
-
In the File picker dialog box, select the file, review the file details, and then select Get Data and Next.
-
On the left, select the data you want to import, and then on the right, confirm the selection in data preview.
-
At the bottom right, select Load.
-
Select Data > Get Data (Power Query).
-
In the Choose data source dialog box, select JASON.
-
Select Browse to locate the file you want to connect as the data source.
-
In the File picker dialog box, select the file, review the file details, and then select Get Data and Next.
-
At the bottom right, select Close &Â Load.
-
Select Data > Get Data (Power Query).
-
In the Choose data source dialog box, select SQL Server database.
-
Under Connection settings, enter the name of the server.
-
Under Connection credentials, enter the username and password, decide whether to use an encrypted connection, and then select Next.
-
On the left, select the data you want to import, and then on the right, confirm the selection in data preview.
-
At the bottom right, select Load.
-
Select Data > Get Data (Power Query).
-
In the Choose data source dialog box, select SharePoint Online list.
-
In the Connect to data source dialog box, enter the root URL for the SharePoint site not including any reference to a library, and then sign in to your organizational account.
-
Select the 2.0 SharePoint implementation, which enables Advanced options, so you can select a View mode:
-
All which retrieves all columns from a SharePoint List.
-
Default which retrieves the columns set in the Default View of a SharePoint List.
Note   As an alternative to 2.0, you can select 1.0, which corresponds to the earlier version of SharePoint.
-
-
Select Next.
-
On the left, select the data you want to import, and then on the right, confirm the selection in data preview.
-
At the bottom right, select Load.
-
Select Data > Get Data (Power Query).
-
In the Choose data source dialog box, select OData.
-
In the OData Feed dialog box, enter the URL for the OData feed.
-
If the OData feed requires user credentials, in the Connection credentials dialog box under Authentication kind:
-
Select Basic if the OData feed requires your username and password.
-
Select Organizational account if the OData feed requires federated access credentials, and select Sign in.
-
-
Select Next.
-
Select Data > Get Data (Power Query).
-
In the Choose data source dialog box, select Blank table.
-
Enter the desired data to the cells of the table. You can also rename the table under Name at the bottom.
-
Select Next.
-
After editing the query, on the top-right select Close & load.
-
Select Data > Get Data (Power Query).
-
In the Choose data source dialog box, select Blank query.
-
Enter the desired source and commands and then select Next.
-
After editing the query, on the top-right select Close & load.
See Also
Import data from database using native database query
Use multiple tables to create a PivotTable