Created
December 18, 2022 22:38
-
-
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
This file contains hidden or 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
| (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