BinaryFormat.ByteOrder

 

This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.

Returns a binary format with the specified byte order.

BinaryFormat.ByteOrder(binaryFormat as function, byteOrder as number) as function  

ArgumentDescription
binaryFormatThe binary format that will be used to read the value.
byteOrderThe most signficant byte appears first in Big Endian byte order. The least significant byte appears first in Little Endian byte order.

ByteOrder.LittleEndian = 0

ByteOrder.BigEndian = 1
let  
binaryData = #binary({0x01, 0x00}),  
littleEndianFormat = BinaryFormat.ByteOrder(  
BinaryFormat.UnsignedInteger16, ByteOrder.LittleEndian)  
in  
littleEndianFormat(binaryData)   
equals 1  

Show: