Connect to data sources for dataflows
With Microsoft Power BI and Power Platform dataflows, you can connect to many different data sources to create new dataflows, or add new entities to an existing dataflow.
This article describes how to create dataflows by using these data sources. For an overview of how to create and use dataflows, go to Creating a dataflow for Power BI service and Create and use dataflows in Power Apps.
Create a dataflow from a data source
To create a dataflow from a data source, you'll first have to connect to your data.
To connect to data in Power BI:
- Open a workspace.
- Select New.
- Select Dataflow from the drop-down menu.
- Under Define new tables, select Add new tables.
Data sources for dataflows
Once you've created the dataflow from the dataflow authoring tool, you'll be presented with the Choose data source dialog box.
Data sources for dataflows are organized into the following categories, which appear as tabs in the Choose data source dialog box:
- All categories
- Power Platform
- Online Services
For a list of all of the supported data sources in Power Query, see Connectors in Power Query.
Connect to a data source
To connect to a data source, select the data source. This section uses one example to show how the process works, but each data connection for dataflows is similar in process. Different connectors might require specific credentials or other information, but the flow is similar. In this example, SQL Server database is selected from the Database data connection category.
A connection window for the selected data connection is displayed. If credentials are required, you're prompted to provide them. The following image shows a server and database being entered to connect to a SQL Server database.
After the server URL or resource connection information is provided, enter the credentials to use for access to the data. You may also need to enter the name of an on-premises data gateway. Then select Next.
Power Query Online initiates and establishes the connection to the data source. It then presents the available tables from that data source in the Navigator window.
You can select tables and data to load by selecting the check box next to each in the left pane. To transform the data you've chosen, select Transform data from the bottom of the Navigator window. A Power Query Online dialog box appears, where you can edit queries and perform any other transformations you want to the selected data.
Connecting to additional data sources
There are additional data connectors that aren't shown in the Power BI dataflows user interface, but are supported with a few additional steps.
You can take the following steps to create a connection to a connector that isn't displayed in the user interface:
Open Power BI Desktop, and then select Get data.
Open Power Query Editor in Power BI Desktop, right-click the relevant query, and then select Advanced Editor, as shown in the following image. From there, you can copy the M script that appears in the Advanced Editor window.
Open the Power BI dataflow, and then select Get data for a blank query.
Paste the copied query into the blank query for the dataflow.
Your script then connects to the data source you specified.
The following list shows which connectors you can currently use by copying and pasting the M query into a blank query:
- SAP Business Warehouse
- Azure Analysis Services
- Adobe Analytics
- OLE DB
- SharePoint Online folder
- SharePoint folder
- Hadoop HDFS
- Azure HDInsight (HDFS)
- Hadoop file HDFS
- Informix (beta)
This article showed which data sources you can connect to for dataflows. The following articles go into more detail about common usage scenarios for dataflows:
- Self-service data prep in Power BI
- Using incremental refresh with dataflows
- Creating computed entities in dataflows
- Link entities between dataflows
For information about individual Power Query connectors, go to the connector reference list of Power Query connectors, and select the connector you want to learn more about.
Additional information about dataflows and related information can be found in the following articles:
- Create and use dataflows in Power BI
- Using dataflows with on-premises data sources
- Developer resources for Power BI dataflows
- Dataflows and Azure Data Lake integration (Preview)
For more information about Power Query and scheduled refresh, you can read these articles:
For more information about Common Data Model, you can read its overview article: