Writing documentation for custom M-functions, Part3 | THE SELF-SERVICE-BI BLOG
Adding allowed values to your custom M function adds high value to the user experience. This post shows you how to do that in the M language for Power Query and Power BI Desktop