Record functions

Record functions functions for Power Query M language.

Functions

FunctionDescription
Geography.FromWellKnownTextConverts text that represents a geographical value in Well-Known Text (WKT) format into a structured record. WKT is a standardized format developed by the Open Geospatial Consortium (OGC) and is commo...
Geography.ToWellKnownTextConverts a structured geographic point value into its Well-Known Text (WKT) representation according to the specifications set by the Open Geospatial Consortium (OGC). This format is commonly used as ...
GeographyPoint.FromGenerates a data entry that represents a specific location on Earth using its individual components, like longitude, latitude, and, when available, elevation (Z) and measure (M). A unique spatial refe...
Geometry.FromWellKnownTextConverts text that contains information about a geometric value in Well-Known Text (WKT) format into a structured record. WKT is a standardized format created by the Open Geospatial Consortium (OGC) a...
Geometry.ToWellKnownTextThis function converts a specific geometric point value into its Well-Known Text (WKT) format according to the standards set by the Open Geospatial Consortium (OGC). WKT is commonly utilized as the se...
GeometryPoint.FromGenerates a data entry that represents a geometric point, using its fundamental components like X coordinate, Y coordinate, and optionally Z coordinate and measure (M). Users have the option to provid...
Record.AddFieldThis function will append a new field to a specific record. It requires the field name (fieldName) and the corresponding value (value) to be provided as parameters.
Record.CombineMerges the data in the specified records. If the records contain non-data values, an error will be generated.
Record.FieldThis function retrieves the value stored in the specified field. It is designed to generate field lookup syntax dynamically for a specific record. Essentially, it is a dynamic alternative to using the...
Record.FieldCountThis function retrieves the count of fields in the specified record.
Record.FieldNamesThis function retrieves the names of the fields in the specified record and returns them as text.
Record.FieldOrDefaultThis function retrieves the value of a specific field within a given record. If the field is not found, the defaultValue parameter is returned as an optional fallback option.
Record.FieldValuesReturns a collection of the values stored in the fields of the specified record.
Record.FromListThe function retrieves a data record based on a specified list of field values and a set of fields. Fields can be identified using either a list of text values or a record type. An error will be gener...
Record.FromTableThis function retrieves a single record from a table of records. The record includes both field names and their corresponding values, represented as pairs like {[Name = name, Value = value]}. If dupli...
Record.HasFieldsThis function checks if a record contains specified fields by returning a logical value (true or false). Multiple field values can be provided in a list format.
Record.RemoveFieldsThis function retrieves a record that excludes all the fields listed in the specified list from the original record. An error is thrown if the specified field does not exist in the record.
Record.RenameFieldsThis function creates a new record with renamed fields while maintaining the original order. It allows for swapping and chaining field names. However, all new field names, as well as the existing fiel...
Record.ReorderFieldsReturns a modified record with the fields reordered based on the specified list called fieldOrder. The values of the fields remain the same, and any fields not included in the fieldOrder list will ret...
Record.SelectFieldsThe function retrieves a new data entry that includes specific fields chosen from the original data entry. The sequence of the fields remains the same as in the original data entry.
Record.ToListThis function retrieves a list of values that includes the field values from the input record.
Record.ToTableGenerates a table that includes the columns Name and Value, with each field from the record represented as a row in the table.
Record.TransformFieldsThis function returns a modified record by applying specified transformations from a list called transformOperations. Transformation can be done on one or more fields at a time. When transforming a s...