Binary Functions Overview

Updated on

Explore Binary Functions in Power Query M Language, essential for carrying out binary operations on data in manipulation tasks. This page provides a comprehensive list and descriptions of Binary Functions available in the M Language.

Table of contents

Buffer and Compression Functions

FunctionDescription
Binary.BufferBuffers the binary value in memory.
Binary.CompressCompresses a binary value using the given compression type.
Binary.DecompressDecompresses a binary value using the given compression type.

Byte Order Functions

FunctionDescription
BinaryFormat.ByteOrderReturns a binary format with the byte order specified by a function.

Creation and Conversion Functions

FunctionDescription
#binaryCreates a binary value from a list of numbers or a base 64 encoded text value.
Binary.FromCreates a binary from the given value
Binary.FromListConverts a list of numbers into a binary value.
Binary.FromTextDecodes data from a text form into binary.
Binary.ToListConverts a binary value into a list of numbers.
Binary.ToTextEncodes binary data into a text form.

Information Functions

FunctionDescription
Binary.ApproximateLengthReturns the approximate length of the binary.
Binary.InferContentTypeReads the binary stream and tries to determine the content type and format information of the stream.
Binary.LengthReturns the number of characters.

Reading Functions

FunctionDescription
BinaryFormat.7BitEncodedSignedIntegerA binary format that reads a 64-bit signed integer that was encoded using a 7-bit variable-length encoding.
BinaryFormat.7BitEncodedUnsignedIntegerA binary format that reads a 64-bit unsigned integer that was encoded using a 7-bit variable-length encoding.
BinaryFormat.BinaryReturns a binary format that reads a binary value.
BinaryFormat.ByteA binary format that reads an 8-bit unsigned integer.
BinaryFormat.ChoiceReturns a binary format that chooses the next binary format based on a value that has already been read.
BinaryFormat.DecimalA binary format that reads a .NET 16-byte decimal value.
BinaryFormat.DoubleA binary format that reads an 8-byte IEEE double-precision floating point value.
BinaryFormat.GroupReturns a binary format that reads a group of items.
BinaryFormat.LengthReturns a binary format that limits the amount of data that can be read.
BinaryFormat.ListReturns a binary format that reads a sequence of items and returns a list.
BinaryFormat.NullA binary format that reads zero bytes and returns null.
BinaryFormat.RecordReturns a binary format that reads a record.
BinaryFormat.SignedInteger16A binary format that reads a 16-bit signed integer.
BinaryFormat.SignedInteger32A binary format that reads a 32-bit signed integer.
BinaryFormat.SignedInteger64A binary format that reads a 64-bit signed integer.
BinaryFormat.SingleA binary format that reads a 4-byte IEEE single-precision floating point value.
BinaryFormat.TextReturns a binary format that reads a text value.
BinaryFormat.TransformReturns a binary format that will transform the values read by another binary format.
BinaryFormat.UnsignedInteger16A binary format that reads a 16-bit unsigned integer.
BinaryFormat.UnsignedInteger32A binary format that reads a 32-bit unsigned integer.
BinaryFormat.UnsignedInteger64A binary format that reads a 64-bit unsigned integer.

Transformation Functions

FunctionDescription
Binary.CombineCombines a list of binaries into a single binary.
Binary.EndReturns the end of a binary value.
Binary.RangeReturns a subset of the binary value beginning at an offset.
Binary.SplitSplits the specified binary into a list of binaries using the specified page size.

View Functions

FunctionDescription
Binary.ViewCreates or extends a binary with user-defined handlers for query and action operations.
Binary.ViewErrorCreates a modified error record which won’t trigger a fallback when thrown by a handler defined on a view (via Binary.View).
Binary.ViewFunctionCreates a function that can be intercepted by a handler defined on a view (via Binary.View).

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

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