Forum Discussion
WilkoVanA
8 years agoFrequent Visitor
Passing a column as parameter to a function
Hi, Something I have a workaround for but not happy with it is when I try to use custom function in Power BI and whant the name of the column as a parameter. In the example below: fnParseColumn ...
Greg_Deckler
8 years agoCommunity Champion
Why not just pass the entire column in versus the name using something like Table.SelectColumns? Or I may be missing something.
WilkoVanA
8 years agoFrequent Visitor
Thanks for the suggestion. I tried that but didn't succeed in getting the syntax right. What is the type that is passed to the function? How do I refer to it in the function?
If you have some hints or code snippets as examples....
Regards,
Wilko