Skip to content

Instantly share code, notes, and snippets.

@ay65535
Created October 17, 2019 12:56
Show Gist options
  • Save ay65535/2ee3809a4afdd7774e98339bae2cf89b to your computer and use it in GitHub Desktop.
Save ay65535/2ee3809a4afdd7774e98339bae2cf89b to your computer and use it in GitHub Desktop.
PowerQuery useful core functions
// GetTable
(rangeName as text) => Excel.CurrentWorkbook(){[Name=rangeName]}[Content] as table
// GetValue
let
result = (key as text, optional rangeName as nullable text) =>
if rangeName = null or rangeName = "" then
GetTable("t_props"){[key=key]}[value]
else
GetTable(rangeName){[key=key]}[value]
in
result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment