The following steps show how to create a new column in a table using existing custom function code. This works in Power BI as well as in Power Query in Excel:
1. Copy the function code
2. Create new blank query in the query editor
3. Open the advanced editor
4. Replace existing function code by new one
5. Rename query (optional)
6. Invoke custom function
7. Edit function parameters
Enjoy & stay queryious 😉
Pingback: Adding A Column With Custom Function Code In Power Query – Curated SQL
Pingback: Bulk-extract Power Query M-code from multiple Excel files at once – The BIccountant