Skip to content

Instantly share code, notes, and snippets.

@ncalm
Created December 18, 2022 22:38
Show Gist options
  • Select an option

  • Save ncalm/2bdb9604f38f0519a016ac00928fcaf7 to your computer and use it in GitHub Desktop.

Select an option

Save ncalm/2bdb9604f38f0519a016ac00928fcaf7 to your computer and use it in GitHub Desktop.
M function to return a list of functions that have a specific parameter
(parameterName as text) as table =>
let
Source = Record.ToTable(#shared),
AddColumn = Table.AddColumn(
Source,
"Params",
each try Text.Combine(Record.FieldNames(Type.FunctionParameters(Value.Type([Value]))),", ") otherwise null
),
Result = Table.SelectRows(AddColumn, each Text.Contains([Params],parameterName))
in
Result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment