Table Functions
Functions for creating, transforming, and querying tables.
- Cube.AddAndExpandDimensionColumnMerges a dimension into the cube's filter context and expands specified dimension attributes as new columns.
- Cube.AddMeasureColumnAdds a column to the cube containing the results of a measure applied in each row's context.
- Cube.ApplyParameterReturns a cube after applying a parameter with arguments to it.
- Cube.AttributeMemberIdReturns the unique member identifier from a dimension attribute member property value.
- Cube.AttributeMemberPropertyReturns the value of a named property from a dimension attribute member.
- Cube.CollapseAndRemoveColumnsCollapses dimension attributes mapped to specified columns, removing them from the cube's tabular view and changing its granularity.
- Cube.DimensionsReturns a table containing the set of available dimensions within a cube.
- Cube.DisplayFoldersReturns a nested tree of tables representing the display folder hierarchy of objects available in the cube.
- Cube.MeasurePropertiesReturns a table containing the set of available properties for measures that are expanded in the cube.
- Cube.MeasurePropertyReturns the value of a named property from a measure.
- Cube.MeasuresReturns a table containing the set of available measures within a cube.
- Cube.ParametersReturns a table containing the set of parameters that can be applied to a cube.
- Cube.PropertiesReturns a table containing the set of available properties for dimensions that are expanded in the cube.
- Cube.PropertyKeyReturns the key of a property.
- Cube.ReplaceDimensionsReplaces the set of dimensions returned by Cube.Dimensions for a cube.
- Cube.TransformApplies a list of cube functions as transforms to a cube.
- #tableCreates a table literal from column names and a list of row value lists.
- Table.AddColumnAdds a new column with values computed from a function applied to each row.
- Table.AddFuzzyClusterColumnAdds a column containing representative cluster values based on fuzzy matching of an existing column.
- Table.AddIndexColumnAdds a sequential index column to a table.
- Table.AddJoinColumnAdds a column of nested tables from a second table by matching each row by key.
- Table.AddKeyMarks specified columns as a key (primary or non-primary) in the table's type metadata.
- Table.AddRankColumnAdds a rank column to the table based on the specified comparison criteria.
- Table.AggregateTableColumnExpands a column of nested tables by applying aggregation functions to each nested table.
- Table.AlternateRowsKeeps and drops alternating groups of rows based on a repeating keep/drop pattern.
- Table.ApproximateRowCountReturns an approximate row count that may be faster than Table.RowCount for large folded queries.
- Table.BufferBuffers a table into memory, ensuring it is fully evaluated and its row order is preserved.
- Table.ColumnReturns a list of all values from the named column.
- Table.ColumnCountReturns the number of columns in the table.
- Table.ColumnNamesReturns the column names of a table as a list of text values.
- Table.ColumnsOfTypeReturns a list of column names whose types match any of the given types.
- Table.CombineAppends multiple tables into a single table by stacking their rows.
- Table.CombineColumnsCombines multiple columns into a single column using a combiner function.
- Table.CombineColumnsToRecordCombines selected columns into a single record column.
- Table.ConformToPageReaderConforms a table for page-based reading using a shaping function. Intended for internal use only.
- Table.ContainsReturns true if the table contains a row matching the given record.
- Table.ContainsAllReturns true if the table contains all of the specified rows.
- Table.ContainsAnyReturns true if the table contains any of the specified rows.
- Table.DemoteHeadersMoves the column headers down into the first row of data, replacing them with default column names.
- Table.DistinctRemoves duplicate rows from a table based on all columns or specified criteria.
- Table.DuplicateColumnDuplicates a column in a table with a new name.
- Table.ExpandListColumnExpands a column containing lists into multiple rows, one row per list element.
- Table.ExpandRecordColumnExpands a column of records into individual columns.
- Table.ExpandTableColumnExpands a column of nested tables into individual columns in the parent table.
- Table.FillDownReplaces null values in specified columns with the most recent non-null value above.
- Table.FillUpFills null values in specified columns with the next non-null value below.
- Table.FilterWithDataTableFilters a table using a data table identifier. Intended for internal use only.
- Table.FindTextReturns rows where any cell contains the given text string (case-insensitive).
- Table.FirstReturns the first row of the table as a record, or a default value if the table is empty.
- Table.FirstNReturns the first N rows from a table, or rows matching a condition.
- Table.FirstValueReturns the value in the first row and first column of the table, or a default value if the table is empty.
- Table.FromColumnsConstructs a table from a list of column lists, with optional column names and type information.
- Table.FromListConverts a list to a table by applying a splitter function to each element.
- Table.FromPartitionsCreates a table from a list of partition tables with a synthetic partition column added.
- Table.FromRecordsCreates a table from a list of records.
- Table.FromRowsConstructs a table from a list of row lists, with optional column names or types.
- Table.FromValueWraps a scalar value, list, or record into a table.
- Table.FuzzyGroupGroups rows using fuzzy matching on key column(s), tolerating typos and spelling variations.
- Table.FuzzyJoinJoins two tables using fuzzy (approximate) string matching on key columns.
- Table.FuzzyNestedJoinJoins two tables using fuzzy string matching and produces a nested table column of matches.
- Table.GroupGroups rows by key columns and applies aggregation functions to produce summary results.
- Table.HasColumnsReturns true if a table contains the specified column or columns.
- Table.InsertRowsInserts a list of row records into the table at the given offset.
- Table.IsDistinctReturns true if no two rows in the table are equal.
- Table.IsEmptyReturns true if a table contains no rows.
- Table.JoinJoins two tables on key columns, returning a flat combined table.
- Table.KeysReturns a list of key records defined on the table type.
- Table.LastReturns the last row of the table as a record, or a default value if the table is empty.
- Table.LastNReturns the last N rows from a table, or rows matching a condition from the end.
- Table.MatchesAllRowsReturns true if every row in the table satisfies the given condition function.
- Table.MatchesAnyRowsReturns true if at least one row in the table satisfies the given condition function.
- Table.MaxReturns the row with the maximum value according to the given comparison criteria.
- Table.MaxNReturns the top N rows with the highest values according to the given comparison criteria.
- Table.MinReturns the row with the minimum value according to the given comparison criteria.
- Table.MinNReturns the N rows with the lowest values according to the given comparison criteria.
- Table.NestedJoinJoins two tables on matching key columns and returns the matched rows from the second table as a nested table column.
- Table.PartitionPartitions a table into a list of tables using a hash function on a specified column.
- Table.PartitionKeyReturns the partition key of the specified table.
- Table.PartitionValuesReturns a table describing the partition values for a partitioned data source.
- Table.PivotRotates distinct values from an attribute column into new column headers, aggregating corresponding values.
- Table.PositionOfReturns the zero-based row index of the first (or all) rows matching the given record, or -1 if not found.
- Table.PositionOfAnyReturns the first position of any row in the table that matches any record in the given list.
- Table.PrefixColumnsPrefixes all column names in a table with a given text value.
- Table.ProfileReturns a profile of the values in each column of a table.
- Table.PromoteHeadersPromotes the first row of a table to column headers.
- Table.RangeReturns a specified number of rows from a table starting at a given offset.
- Table.RemoveColumnsRemoves the specified columns from a table.
- Table.RemoveFirstNRemoves the first N rows of a table, or rows while a condition is true.
- Table.RemoveLastNRemoves the last N rows of a table, or rows while a trailing condition is true.
- Table.RemoveMatchingRowsRemoves all rows from a table that match any row in the given list of records.
- Table.RemoveRowsRemoves a specified number of rows starting at a given offset.
- Table.RemoveRowsWithErrorsRemoves rows that contain error values, optionally limited to specified columns.
- Table.RenameColumnsRenames one or more columns in a table.
- Table.ReorderColumnsReorders columns in a table to a specified order.
- Table.RepeatReturns a table that repeats the original table's rows a specified number of times.
- Table.ReplaceErrorValuesReplaces error values in specified columns with replacement values.
- Table.ReplaceKeysReplaces all keys on a table with a new set of key definitions.
- Table.ReplaceMatchingRowsReplaces rows that match specified records with new values.
- Table.ReplacePartitionKeyReplaces the partition key of the specified table.
- Table.ReplaceRelationshipIdentityReplaces the relationship identity on a value. Intended for internal use only.
- Table.ReplaceRowsReplaces a specified number of rows starting at an offset with a new set of row records.
- Table.ReplaceValueReplaces occurrences of a value in specified columns using a replacer function.
- Table.ReverseRowsReverses the order of rows in a table.
- Table.RowCountReturns the number of rows in a table.
- Table.SchemaReturns a table describing the columns (schema) of the input table.
- Table.SelectColumnsReturns a table with only the specified columns.
- Table.SelectRowsReturns a table of rows from the input table that match a selection condition.
- Table.SelectRowsWithErrorsReturns rows that contain at least one error value, optionally limited to specified columns.
- Table.SingleRowReturns the single row of a table as a record. Throws an error if the table does not have exactly one row.
- Table.SkipSkips the first N rows of a table, or rows matching a condition.
- Table.SortSorts the rows of a table using one or more comparison criteria.
- Table.SplitSplits a table into a list of tables, each containing at most pageSize rows.
- Table.SplitAtSplits a table into two parts at a given row count, returning both as fields of a record.
- Table.SplitColumnSplits a text column into multiple columns using a splitter function.
- Table.StopFoldingReturns a new table that prevents any further query folding, forcing local evaluation.
- Table.ToColumnsReturns a list of lists, where each inner list contains the values of one column.
- Table.ToListConverts a table to a list by applying a combiner function to each row.
- Table.ToRecordsConverts a table to a list of records, one record per row.
- Table.ToRowsConverts a table into a list of lists, where each inner list contains the row values.
- Table.TransformColumnNamesTransforms column names in a table using the specified function.
- Table.TransformColumnsApplies transformation functions to the values in one or more columns.
- Table.TransformColumnTypesTransforms the types of the specified columns in a table.
- Table.TransformRowsApplies a transform function to each row (as a record) and returns a list of the results.
- Table.TransposeTransposes the table so that rows become columns and columns become rows.
- Table.UnpivotTransforms specified columns into attribute-value pairs, normalizing a wide table into a tall, narrow format.
- Table.UnpivotOtherColumnsUnpivots all columns except the specified ones into attribute-value pairs.
- Table.ViewCreates a custom view of a table with handler functions that override default operation behavior.
- Table.ViewErrorCreates a modified error record that prevents fallback behavior when raised inside a Table.View handler.
- Table.ViewFunctionCreates a view function that can be intercepted by a Table.View handler.
- Table.WithErrorContextAssociates an error context string with a value. Intended for internal use only.
- Tables.GetRelationshipsReturns the relationships among a set of tables structured like a navigation table.