Dear all,
In terms of structuring my power query analysis I was wondering is it possible to put all your functions in a single query and then call them as required. At the moment each of my functions is its own query. Is it possible to consolidate these all together. In a similar way one as you may have a file/module in another language that contains all related functions.
For example I would like to a have a single query/file that contains the functions
/* my functions
add = (x, y) =>
let
return = x + y
in
return
subtract = (x, y) =>
let
return = x - y
in
return
*/ end of my functions
/* Then a new query
let
myTable = someTableOfData
_1 = Table.SelectColumns(myTable, {"numberColumn"}),
_2 = Table.AddColumn(_1, "numberAdd1", each add([numberColumn],1))
in
_2