What’s New in Power Query and Dataflows in Power Apps – November 2020
Over the last few weeks, we have released lots of new Power Query & Dataflows features in Power Apps, enabling users to seamlessly bring their data into the Common Data Service – Here’s a recap of all the features added or improved in this period:
- Data Transformations and Query Editor enhancements:
- Diagram View for authoring of queries
- Schema view
- Add Column from Examples
- Web Connector – By Example Data Extraction
- Fuzzy Matching:
- Group By – Fuzzy Matching options
- Cluster Values
- Copy/Paste Queries between PQ Online and PQ Desktop
- Copy data from Query Editor preview
- Formula bar – Query Script mode
- Multi-select support in Queries pane
- Status Bar & Evaluation Performance Counters
- New and Enhanced Connectors:
- Parquet files
- SAP HANA
- SAP BusinessWarehouse
- Google Analytics
- Azure Tables
- Azure Blobs
- SQL Server – Advanced Options in Get Data UX
- Privacy Levels support within Get Data UX
- Dataflows Management:
- Admin Take-over
- Incremental Refresh for Dataflows loading data into CDS
- Create a new dataflow from a Power Query template
- New Power Query & Dataflows documentation
You can continue reading each of the sections below for more details about these new capabilities.
With Power Query customers can easily create complex dependencies between data sources, queries and data transformations. While the Power Query Editor provides ways for users to list queries (“Queries” pane) and steps within them (“Applied Steps” pane), customers have demanded a more visual representation of all queries and their dependencies. In Power Query Desktop, the Query Dependencies view provides a read-only view allowing users to understand the dependencies between data sources and queries, or between multiple queries. However, feedback from customers has been that the Query Dependencies view felt short in a couple of aspects:
- Providing only query-level visibility for dependencies, instead of step-level granularity.
- Not allowing users to make edits (such as adding/deleting/editing) to their queries and steps within those queries.
- Because the Query Dependencies view is a modal dialog experience, there is friction in transitioning between using the Query Dependencies view and authoring queries within the main Power Query Editor dialog, which is a highly iterative process.
Based on this feedback, we decided to invest on a new Diagram View experience that is more deeply integrated within the Power Query Editor experience; becoming a new pane within this dialog that users can interact with at any point in time during their Power Query authoring experience. Conceptually, this new Diagram View provides a graphical representation of the Queries & Steps panes together, with the ability to both get a high-level view of an entire graph of queries (e.g. all queries within a dataflow) as well as digging into query-level and step-level information in a highly visual interactive way.
We’re very happy to announce that the Diagram View is now available as a Public Preview feature within Power Query Online to author dataflows, which customers can enable from within the View tab in the ribbon.
Upon enabling this option, the new Diagram View pane appears on top of the main preview area. At the same time, the Queries & Steps panes are automatically collapsed (since the Diagram View now provides a more visual representation of queries and steps, as well as the same functional capabilities via context menu option on each of these object types).
Please note that, currently, Diagram View is in Preview and as such it provides limited capabilities compared to other Generally Available features – In particular, support for Accessibility features (keyboarding, high-contrast mode, screen readers support) is limited or not yet available. Providing an accessible feature set within the Diagram View is our top priority and area of investment within this feature, along with incorporating new capabilities and addressing feedback from Preview users.
You can learn more about Diagram View in this deep dive blog post: https://powerapps.microsoft.com/en-us/blog/announcing-visual-data-prep-public-preview-diagram-view-in-power-platform-dataflows/
When working in the Power Query Editor with tables that have many columns, simple tasks can become incredibly cumbersome because even finding the right column by horizontally scrolling and parsing through all the data is inefficient.
The newly released Schema view displays your column information in a list that’s easy to parse and interact with, making it easier than ever to work on your table schema within Power Query.
In addition to an optimized column management experience, another key benefit of schema view is that transforms tend to yield results faster. These results are faster because this view only requires the columns information to be computed instead of a preview of the data rows. So even working with long-running queries with a few columns will benefit from using the Schema view.
You can turn on the new Schema view by selecting Schema view in the View tab within the ribbon. When you’re ready to work on your data again, you can switch back to the Data view from the same location.
Upon enabling the Schema view, the main preview area switches from Data view to displaying the list of columns in the table results, including their names, data types and several contextual operations, can also be accessed from the ribbon’s new “Schema tools” tab.
You can learn more about the Schema view in this documentation article: https://docs.microsoft.com/en-us/power-query/schema-view
By Example Data Extraction
One of the most exciting and differentiating capabilities within Power Query is the ability to extract and reshape data by example from a variety of sources, including existing tables in the Query Editor, Web pages, Text & CSV files.
This month we are enabling two of these capabilities in Power Query Online: “Add Column From Examples” and “Web By Example”.
Add Column From Examples
“Add Column From Examples” enables users to seamlessly extract and reshape data from existing columns in the Power Query Editor without having to think about the (one or multiple) operations to apply on top of those columns. Instead, using Add Column From Examples (available within the “Add Column” tab in the ribbon) brings users into an interactive experience where they can specify one or more sample output values that they would like to obtain. With just a few examples, Power Query is able to apply smart AI heuristics to infer the best combination of data transformations to get to that result.
You can learn more about Add Column From Examples in this documentation article: https://docs.microsoft.com/en-us/power-query/column-from-example
Web By Example
The Web Page connector in Power Query allows users to extract data formatted as HTML tables from a Web Page. Often however, data on Web pages is not in tidy tables that are easy to extract. Getting data from such pages can be challenging, even if the data is structured and consistent.
Web By Example makes it very easy to extract data from such Web pages, by allowing users to specify a few sample output values from a web page and letting Power Query figure out the right transformation steps in order to extract data from the web page.
Web By Example can be accessed from the “Choose Data” screen when using the Web Page connector.
Upon selecting this option, users will be taken into the Web By Example dialog where they can specify sample output values to extract from this page. Note that, unlike in Power Query Desktop where an inline preview of the web page is displayed, this inline preview is not available within Power Query Online, but users can open it in a different browser window/tab.
Fuzzy Matching Enhancements
Often when trying to get data into the right shape, users need to deal with reconciling values that are conceptually the same but represented slightly different in their text form. Examples of this include company names, people names, cities, etc. with different representations or, simply, misspellings.
Last year, we introduced Fuzzy Matching options within the Merge Queries transformation, allowing users to match similar values when joining tables.
We’re now extending those capabilities, based on customer feedback, to support Fuzzy Matching capabilities within two other data transformations:
Fuzzy Group By
In Power Query, you can group values in various rows into a single value by grouping the rows according to the values in one or more columns. Up until now, the only matching criteria for grouping values was an exact match.
We have recently added new Fuzzy Matching options to the Group By dialog, allowing users to match similar values when trying to perform a Group By operation. In the example below, grouping rows to calculate total sales by person, and matching similar Name values.
Which results in the following summarized table:
You can learn more about the new Fuzzy Matching capabilities within Group By in this documentation article: https://docs.microsoft.com/en-us/power-query/group-by#fuzzy-grouping
In many cases when dealing with slightly similar values that need to be reconciled, users may not want to merge tables nor group rows within a single table, but rather simply have a new column in their tables with the canonical value that is common across multiple slightly different values – what is known as a “cluster” value.
The newly added “Cluster values” transform does exactly that. It can be found within the “Add Column” tab in the ribbon and provides Fuzzy Matching options to give users the most flexibility in clustering values, including the ability to obtain the similarity score between the input and canonical values for each row of data.
The output from this transformation is a new column with the clustered values and (optionally) another column with the similarity score between values.
Copy/Paste Queries between PQ Online and PQ Desktop
With Power Query being available across several products, including Power BI (Desktop & Dataflows in PowerBI.com), Excel, Power Apps (Dataflows), Dynamics 365 Customer Insights, Azure Data Factory, Power Automate and more, it’s very common for users to want to move their queries across products. While it is possible to copy-paste M code within the Advanced Editor, this can be complex when trying to copy multiple queries with dependencies.
In Power Query Desktop, it has been possible for some time to right-click (or CTRL+C) queries from the Queries pane, which would take care of copying the selected query (or multiple queries) and all of their upstream dependencies needed in order to the selected queries to work, then paste it into another Power Query Desktop instance (whether in Power BI, Excel or SQL Server Data Tools).
Recently we enabled the same capability within Power Query Online, in order to make it extremely easy to move queries between Power Query Desktop and Online, or between multiple Power Query Online instances.
Copy data from Query Editor preview
An even more basic scenario than copy-pasting queries for users is to copy-paste data results from the Power Query Online Editor – whether it is copying an entire table, a column, a cell value, etc. – These options have all been recently added to Power Query Online; simply right-click on the desired element to copy it to the clipboard.
Multi-select support in Queries pane
It is now possible to perform actions over multiple queries at once by multi-selecting them (CTRL+Click or Shift+Click) in the Queries pane.
Multi-select actions include the ability to Copy, Paste, Delete or move queries to a query group.
Formula bar – Query Script mode
We have introduced a new mode in the Formula Bar, allowing users to switch from step-level script to the full query script. Users can toggle between the two modes from the View tab in the ribbon, or the new shortcut in the Status Bar.
Status Bar & Evaluation Performance Counters
We recently added a new status bar to the Power Query Online Editor dialog, enabling users to:
- Get a summary view of any validation warnings in their queries.
- See column & row counts for the currently selected query.
- When query evaluations are in progress, see performance counters and progress indicators to better understand where time is spent during a query evaluation.
- When Data Profiling is enabled, allow users to switch between “Top 1,000 rows” and “Entire dataset” for their data profiles.
- Toggle between Step & Query script modes for the formula bar.
- Switch between Data & Schema views
Parquet Files connector
The new Parquet Files connector allows users to seamlessly import data from Parquet files into Power Query Online. With this connector users can point at specific files or use other connectors (such as Azure Data Lake Storage Gen2) to connect to a folder with multiple Parquet files and easily combine them together.
A few weeks ago, the SAP HANA connector was released in Power Query Online. This connector allows customers to import data from SAP HANA Analytic and Calculation views from SAP HANA databases in the cloud and on-premises, via the On-premises data gateway, into Power Query.
Note that Advanced Options for this connector (such as Native Database Queries, Connection Timeout options, etc.) are supported currently at the M Engine level. Support for these options in the Get Data UX will light up later this year, in the interim they can be configured via the formula bar or Advanced Editor.
Just like with SAP HANA, the existing SAP Business Warehouse connectors for Application and Message Server have been recently enabled in Power Query Online.
Recently we enabled the Snowflake connector in Power Query Online, enabling customers to import data from Snowflake Data Warehouse into Power Query Online.
The new Impala connector allows customers to import data from Impala clusters into Power Query Online, by either using a cloud-to-cloud connection or the On-premises data gateway for on-premises clusters.
We recently added a new connector to Power Query Online that allows users to import data from FHIR. FHIR is a standard describing data formats and APIs for exchanging electronic health records. The FHIR connector has been available for a few months in Power BI Desktop and we’re very excited to bring now into Power Query Online. You can learn more about the FHIR connector in this documentation article: https://docs.microsoft.com/en-us/power-query/connectors/fhir/fhir
Azure Tables & Blobs
The new Azure Tables & Blobs connectors enable customers to seamlessly ingest data from their Azure Tables and Blob storage accounts using Power Query Online.
SQL Server – Advanced Options in Get Data UX
We have enhanced the SQL Server connector to include Get Data UX support for some of the most frequently used Advanced Options provided by this connector, including the ability to specify a native SQL statement, to include relationship columns, navigating using full hierarchy (e.g. including database schemas) and support for SQL Server failover.
These new options can be found under the “Advanced Options” section within the SQL Server connector dialog.
Privacy Levels support within Get Data UX
Privacy levels allow users to combine data securely across multiple data sources without unintentionally leak data between sources. You can learn more about Privacy Levels in this documentation article: https://docs.microsoft.com/en-us/power-query/dataprivacyfirewall
Recently, we introduced support for (optionally) specifying the Privacy Level for a given data source while configuring its connection settings in the Get Data UX.
One of the most requested capabilities within Dataflows management has been the ability to take over or reassign an existing dataflow to a different owner. We have recently introduced this capability so that Environment Admins can search for dataflows created by another user within the environment and reassign as needed, either to themselves or to someone else within their organization.
Environment admins can now see a new “All Dataflows” tab within the Dataflows page and perform these management tasks.
Incremental Refresh for Standard Dataflows
We have recently introduced the ability to configure partition-based incremental refresh for dataflows ingesting data into CDS. This allows users to only refresh data from the last N days/weeks/months/years based on an existing date or time column within their query results.
The new Incremental Refresh option can be found under the “…” menu for a dataflow.
You can learn more about Dataflows Incremental Refresh capabilities in this documentation page: https://docs.microsoft.com/en-us/power-query/dataflows/incremental-refresh
Create a new dataflow from Power Query template
We built an easy way for you to export your Power Query queries from Excel into a Power Query template. Then, you can use that template to quickly create a new dataflow in Power Apps. This saves you from manually moving queries over.
This new capability to “Export Power Query Template” is currently available to Office Insiders – You can find more about the steps to try it out in this Office blog announcement: https://insider.office.com/en-us/blog/power-platform-dataflows-from-excel-queries
This is just the first step in our journey to allow broad reusability of Power Query templates across all Power Query product integrations.
New Power Query & Dataflows documentation
We have added over 50 new Power Query & Dataflows documentation articles, including getting started and quick how-to guides for common data transformations, connector reference articles and best practices for working with Power Query & Dataflows.
You can access them at https://docs.microsoft.com/en-us/power-query/
That’s all for this month! We hope that you find these features useful and continue sending us your feedback and suggestions so we can improve and add new capabilities to Power Query & Dataflows.