Examine Table Functions in Power Query M Language, essential for creating and manipulating tables. This page provides a comprehensive list and descriptions of Table Functions available in the M Language.
Table of contents
Table Creation and Conversion
Function Description #table Creates a table value from columns and rows. ItemExpression.From Returns the abstract syntax tree (AST) for the body of a function. ItemExpression.Item An abstract syntax tree (AST) node representing the item in an item expression. RowExpression.Column Returns an abstract syntax tree (AST) that represents access to a column within a row expression. RowExpression.From Returns the abstract syntax tree (AST) for the body of a function. RowExpression.Row An abstract syntax tree (AST) node representing the row in a row expression. Table.Combine Returns a table that is the result of merging a list of tables. Table.FromColumns Creates a table from a list of columns and specified values. Table.FromList Converts a list into a table by applying the specified splitting function to each item in the list. Table.FromPartitions Returns a table that is the result of combining a set of partitioned tables. Table.FromRecords Converts a list of records into a table. Table.FromRows Creates a table from a list of row values and optional columns Table.FromValue Creates a table with a column from the provided value(s). Table.Partition Partitions the table into a list of tables based on the number of groups and column specified. Table.PartitionValues Returns information about how a table is partitioned. Table.Split Splits the specified table into a list of tables using the specified page size. Table.SplitAt Returns a list containing the first count rows specified and the remaining rows. Table.ToColumns Creates a list of nested lists of column values from a table. Table.ToList Converts a table into a list by applying the specified combining function to each row of values in the table. Table.ToRecords Converts a table to a list of records. Table.ToRows Creates a list of nested lists of row values from a table.
Column Operations
Add and Expand Columns
Column Header Manipulation
Joining Columns
Function Description Table.AddFuzzyClusterColumn Adds a new column with representative values obtained by fuzzy grouping values of the specified column in the table. Table.AddJoinColumn Performs a join between tables on supplied columns and produces the join result in a new column. Table.FuzzyJoin Joins the rows from the two tables that fuzzy match based on the given keys. Table.FuzzyNestedJoin Performs a fuzzy join between tables on supplied columns and produces the join result in a new column. Table.Join Joins the rows from the two tables that match based on the given keys. Table.NestedJoin Performs a join between tables on supplied columns and produces the join result in a new column.
Selecting and Ordering Columns
Function Description Table.AddKey Adds a key to a table. Table.CombineColumns Combines the specified columns into a new column using the specified combiner function. Table.CombineColumnsToRecord Combines the specified columns into a new record-valued column where each record has field names and values corresponding to the column names and values of the columns that were combined. Table.Keys Returns the keys of the specified table. Table.Pivot Given a pair of columns representing attribute-value pairs, rotates the data in the attribute column into a column headings. Table.PrefixColumns Returns a table where the columns have all been prefixed with the given text. Table.ReplaceKeys Replaces the keys of the specified table. Table.SplitColumn Splits the specified columns into a set of additional columns using the specified splitter function. Table.TransformColumnTypes Applies type transformation(s) of the form { column, type } using a specific culture. Table.TransformColumns Transforms the values of one or more columns. Table.TransformRows Transforms the rows of the table using the specified transform function. Table.Unpivot Translates a set of columns in a table into attribute-value pairs. Table.UnpivotOtherColumns Translates all columns other than a specified set into attribute-value pairs.
Row Operations
Adding or Removing Rows
Selecting and Ordering Rows
Function Description Table.FilterWithDataTable This function is intended for internal use only. Table.First Returns the first row or a specified default value. Table.FirstN Returns the first count rows specified. Table.FirstValue Returns the first column of the first row of the table or a specified default value. Table.Last Returns the last row or a specified default value. Table.LastN Returns the last specified number of rows. Table.Max Returns the largest row or default value using the given criteria. Table.MaxN Returns the largest row(s) using the given criteria. Table.Min Returns the smallest row or a default value using the given criteria. Table.MinN Returns the smallest row(s) using the given criteria. Table.RemoveRowsWithErrors Returns a table with the rows removed from the input table that contain an error in at least one of the cells Table.ReverseRows Returns a table with the rows in reverse order. Table.SelectRows Selects the rows that meet the condition function. Table.SelectRowsWithErrors Returns a table with only those rows of the input table that contain an error in at least one of the cells Table.SingleRow Returns the single row in the table. Table.Sort Sorts the table using one or more column names and comparison criteria.
Other Table Functions
Function Description Table.Buffer Buffers a table in memory, isolating it from external changes during evaluation. Table.ConformToPageReader This function is intended for internal use only. Table.ReplaceRelationshipIdentity This function is intended for internal use only. Table.StopFolding Prevents any downstream operations from being run against the original source of the data. Table.View Creates or extends a table with user-defined handlers for query and action operations. Table.ViewError Creates a modified error record which won’t trigger a fallback when thrown by a handler defined on a view (via Table.View). Table.ViewFunction Creates a function that can be intercepted by a handler defined on a view (via Table.View).
2023-2026 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. |
Privacy Policy