Forum Discussion
Power Query Custom Function dialog box
- 1 year ago
Functions need parameters. Parameters in the "function dialogue" can only be of basic type (plus binary)
So this will work
let
alist = {2,2,2,2,2},
SumF = (x) => List.Sum(x)
in
SumF(alist)but it won't work if your alist is a parameter, even if that parameter is "list of values".
Apart from the academic aspect - is there a business problem you are trying to solve? You may have to dive deep into Expression.Evaluate().
- 1 year ago
No, I was just interested to see if there was some trick I was overlooking ,
thanks anyway .
Richard.
Functions need parameters. Parameters in the "function dialogue" can only be of basic type (plus binary)
So this will work
let
alist = {2,2,2,2,2},
SumF = (x) => List.Sum(x)
in
SumF(alist)
but it won't work if your alist is a parameter, even if that parameter is "list of values".
Apart from the academic aspect - is there a business problem you are trying to solve? You may have to dive deep into Expression.Evaluate().
- Dicken1 year ago
Post Prodigy
No, I was just interested to see if there was some trick I was overlooking ,
thanks anyway .
Richard.