Type Functions Overview

Updated on

Discover Type Functions in Power Query M Language, essential for manipulating type information. This page provides a comprehensive list and descriptions of Type Functions available in the M Language.

Function Type

FunctionDescription
Type.ForFunctionReturns a type that represents functions with specific parameter and return type constraints.
Type.FunctionParametersReturns a record with field values set to the name of the parameters of a function type, and their values set to their corresponding types.
Type.FunctionRequiredParametersReturns a number indicating the minimum number of parameters required to invoke the type of function.
Type.FunctionReturnReturns a type returned by a function type.

Record Type

FunctionDescription
Type.ClosedRecordReturns a closed version of the given record type (or the same type, if it is already closed).
Type.ForRecordReturns a type that represents records with specific type constraints on fields.
Type.IsOpenRecordReturns whether a record type is open.
Type.OpenRecordReturns an opened version of the given record type (or the same type, if it is already open).
Type.RecordFieldsReturns a record describing the fields of a record type with each field of the returned record type having a corresponding name and a value.

Table Type

FunctionDescription
Type.AddTableKeyAdds a key to the given table type.
Type.ReplaceTableKeysReturns a new table type with all keys replaced by the specified list of keys.
Type.TableColumnReturns the type of a column in a table.
Type.TableKeysReturns the possibly empty list of keys for the given table type.
Type.TableRowReturns the row type of the table type.
Type.TableSchemaReturns a table containing a description of the columns (i.e

Type Conversion and Inspection

FunctionDescription
Type.FacetsReturns the facets of a type.
Type.IsDetermines if a value of the first type is always compatible with the second type.
Type.IsNullableReturns true if a type is a nullable type; otherwise, false.
Type.ListItemReturns an item type from a list type.
Type.NonNullableReturns the non nullable type from a type.
Type.ReplaceFacetsReplaces the facets of a type.
Type.UnionReturns the union of a list of types.

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/type-functions

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy