Power BI dataflows allow you to create and manage ETL (Extract, Transform, Load) processes in the cloud, enabling you to reuse a single set of transformed data across multiple reports and dashboards. By moving the data preparation layer from the Power BI Desktop file to the Power BI Service, you eliminate redundant data processing and ensure a single version of the truth for your organization. To get started, you need a Power BI Pro or Premium license and a workspace where you have Member or Admin permissions.

What You'll Need

  • A Power BI account with a Pro or Premium Per User (PPU) license.
  • Access to a Power BI Workspace (Personal workspaces do not support full dataflow sharing capabilities).
  • Credentials for the data sources you intend to connect to (e.g., SQL Server, SharePoint, Excel files on OneDrive, or Web APIs).
  • An On-premises Data Gateway installed and configured if your data sources are located behind a local firewall.

Step-by-Step

  1. Access the Workspace: Log into the Power BI Service via your web browser. Navigate to the specific workspace where you want the dataflow to reside. Note that menu labels may differ slightly depending on your region or the current version of the Power BI interface.
  2. Create the Dataflow: In the workspace view, select the New button (or the plus icon) and choose Dataflow from the dropdown menu. This opens the dataflow creation wizard.
  3. Select Data Source: You will be presented with a list of available connectors. Choose the source that matches your data (e.g., SQL Server, Azure Blob Storage, or a Web folder). If you are connecting to a local file or database, ensure your Gateway is selected and active in the connection settings.
  4. Establish Connection: Enter the server address, database name, or file path. Provide the necessary authentication credentials. For cloud sources, OAuth2 is common; for local sources, you may use Windows or Basic authentication.
  5. Transform Data in Power Query Online: Once the connection is established, the Power Query Online editor will open. This interface is nearly identical to the Power Query editor in Power BI Desktop. Here, you should perform all necessary cleaning steps:
    • Remove unnecessary columns to reduce the data load.
    • Filter rows to exclude irrelevant data.
    • Change data types (e.g., ensuring dates are recognized as Date types and not Text).
    • Merge or append tables to create a consolidated view of your data.
    • Create custom columns using M code or the conditional column interface.
  6. Name and Save: Give your tables descriptive names (e.g., "Fact_Sales" or "Dim_Customers") rather than the default "Query1". Once the transformations are complete, select Save and give the dataflow itself a clear, recognizable name.
  7. Configure Refresh Schedule: After saving, you must tell Power BI how often to update the data. Go to the dataflow settings and look for the Scheduled Refresh section. Toggle the switch to On and define the frequency (Daily or Weekly) and the specific times you want the refresh to occur.
  8. Connect to the Dataflow in Desktop: Open Power BI Desktop. Go to Get Data > Power BI Dataflows. Sign in to your account, navigate to the workspace, and select the tables you created in the dataflow. This imports the already-cleaned data, skipping the need to repeat the transformation steps in the .pbix file.

Common Mistakes

One of the most frequent errors is overloading a dataflow with too many complex transformations that could be handled at the source. If you have access to the SQL database, creating a View is often more efficient than performing complex joins inside Power Query Online. Another mistake is failing to manage data types early in the process. If a column is left as "Any" type, it can cause errors during the final load into the Power BI dataset or lead to incorrect aggregations in your reports.

Users also frequently forget to optimize their data volume. Importing millions of rows of historical data that is never used in a report slows down the refresh time and consumes workspace capacity. Always apply filters (such as date ranges) as the very first step in your query to ensure the engine only pulls the necessary records.

Finally, many developers create dataflows in their "My Workspace" area. While this works for personal testing, dataflows in a personal workspace cannot be shared with other users or used as a source for reports shared with a team. Always use a dedicated App Workspace for production-level dataflows.

Tips

To maintain a professional architecture, use a "Staging" dataflow and a "Transformation" dataflow. A staging dataflow simply pulls the raw data from the source with minimal changes. A second dataflow then connects to the staging dataflow to perform the complex cleaning and joining. This prevents the source system from being hit multiple times if you need to create several different transformed tables from the same raw source.

Utilize the "Computed Tables" feature if you have Power BI Premium. Computed tables allow you to perform transformations on data that has already been loaded into the dataflow, which is significantly faster than re-querying the original source. This is particularly useful for creating complex aggregations or calculated columns that would otherwise slow down the report's DAX measures.

Implement a strict naming convention for your dataflows. Use prefixes like "STG_" for staging and "DIM_" or "FACT_" for final tables. This makes it much easier for other developers to understand the data lineage when they connect to your workspace.

Troubleshooting

If your dataflow fails to refresh, the first step is to check the Refresh History. This log provides specific error messages. If the error mentions "Credentials," go to the dataflow settings and re-enter the credentials for the data source. This often happens when a password is changed or a token expires.

If the error relates to the Gateway, check the status of the On-premises Data Gateway application on the host machine. Ensure the machine is powered on and connected to the internet. If the gateway is online but the dataflow still fails, try updating the gateway to the latest version via the official download page.

In cases where the dataflow is stuck in a "Refreshing" state for an unusually long time, check for "Query Folding." If your transformations are too complex, Power BI may be unable to push the work back to the server and is instead downloading the entire dataset to process it in the cloud. Try simplifying your steps or moving them to a SQL View to resolve this bottleneck.

If you cannot see the "Power BI Dataflows" option in Power BI Desktop, ensure you are signed in with the account that has access to the workspace and that your Power BI Desktop application is updated to the latest version.

Frequently Asked Questions

Can I use dataflows with a free Power BI account?

No, creating and managing dataflows requires at least a Power BI Pro license or a Premium capacity. Free users can consume reports built from dataflows but cannot create or edit them.

What is the difference between a dataflow and a dataset?

A dataflow is the ETL layer that cleans and stores data in Azure Data Lake Storage. A dataset is the model that contains the data, relationships, and DAX measures used for visualization. Dataflows feed into datasets.

Do dataflows replace Power Query in Power BI Desktop?

They do not replace it, but they shift the workload. Instead of doing the cleaning inside the .pbix file, you do it once in the cloud via a dataflow, and then the .pbix file simply connects to that cleaned result.

How many dataflows can I have in one workspace?

There is no hard limit on the number of dataflows, but you are limited by the storage capacity of your workspace (Pro vs. Premium) and the overall performance of your data sources during refresh.

Can I connect one dataflow to another?

Yes, this is called "Linked Tables." You can reference a table from an existing dataflow as a source for a new dataflow, which is a best practice for creating a modular data architecture.