Created
October 17, 2019 12:56
-
-
Save ay65535/2ee3809a4afdd7774e98339bae2cf89b to your computer and use it in GitHub Desktop.
PowerQuery useful core functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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