Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 760 Bytes

binary-range.md

File metadata and controls

34 lines (24 loc) · 760 Bytes
title ms.date ms.service ms.reviewer ms.topic author ms.author
Binary.Range | Microsoft Docs
11/23/2020
powerquery
gepopell
reference
dougklopfenstein
bezhan

Binary.Range

Syntax

Binary.Range(binary as binary, offset as number, optional count as nullable number) as binary

About

Returns a subset of the binary value beginning at the offset binary. An optional parameter, offset, sets the maximum length of the subset.

Example 1

Returns a subset of the binary value starting at offset 6.

Binary.Range(#binary({0..10}), 6)

#binary({6, 7, 8, 9, 10})

Example 2

Returns a subset of length 2 from offset 6 of the binary value.

Binary.Range(#binary({0..10}), 6, 2)

#binary({6, 7})