Skip to content

Instantly share code, notes, and snippets.

@m-dekorte
Created August 25, 2025 16:11
Show Gist options
  • Select an option

  • Save m-dekorte/ac523c07477076abe2aa6267cf13d9c1 to your computer and use it in GitHub Desktop.

Select an option

Save m-dekorte/ac523c07477076abe2aa6267cf13d9c1 to your computer and use it in GitHub Desktop.
Explore 'Item Access' in Power Query M from the strict 'Required' to the safer 'Optional' method.
let
/* Samples */
myList = {0..4},
myTable = Table.FromValue({0..4}),
/* List | Item Access */
ListRequiredItemAccess = {0..4}{1},
ListRequiredItemAccess2 = {0..4}{10},
ListOptionalItemAccess = {0..4}{10}?,
/* Table | Item Access */
TableRequiredItemAccess = Table.FromValue({0..4}){1},
TableRequiredItemAccess2 = Table.FromValue({0..4}){10},
TableOptionalItemAccess = Table.FromValue({0..4}){10}?
in
TableOptionalItemAccess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment