Forum Discussion
Rename table headers from a SQL Datasource and match current name with a description (lookup)
- 4 years ago
I think this is what you are looking for: Table.ColumnNames - PowerQuery M | Microsoft Docs
Hi Anonymous ,
For DirectQuery, each DirectQuery storage mode table must be based on a Power Query query that can be folded.
Relational data source transformations that can be query folded are those that can be written as a single SELECT statement. A SELECT statement can be constructed with appropriate WHERE, GROUP BY, and JOIN clauses. It can also contain column expressions (calculations) that use common built-in functions supported by SQL databases.
Generally, the following list describes transformations that can be query folded.
-
Removing columns.
-
Renaming columns (SELECT column aliases).
-
Filtering rows, with static values or Power Query parameters (WHERE clause predicates).
-
Grouping and summarizing (GROUP BY clause).
-
Expanding record columns (source foreign key columns) to achieve a join of two source tables (JOIN clause).
-
Non-fuzzy merging of fold-able queries based on the same source (JOIN clause).
-
Appending fold-able queries based on the same source (UNION ALL operator).
-
Adding custom columns with simple logic (SELECT column expressions). Simple logic implies uncomplicated operations, possibly including the use of M functions that have equivalent functions in the SQL data source, like mathematic or text manipulation functions. For example, the following expressions returns the year component of the OrderDate column value (to return a numeric value).
powerquery-m - Pivoting and unpivoting (PIVOT and UNPIVOT operators).
For further information, you may refer to the following document.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.