Extension Functions for Power BI Desktop and Excel
PBI Desktop (and Excel 2016) Query Functions that you can use to make life easy-peasy. Submit issues or pull requests for functions you'd like to see added. Most functions are self-documenting, and new documentation is being added all the time.
1. Create a blank query
2. Open the advanced editor
3. Paste in the library
Option 1: Always get the latest from GitHub - Requires data privacy considersations
Copying the below will give you the latest versions and all times. You can connect with anonymous credentials. Be sure to set the data privacy level appropriately when prompted.
Option 2: Copy the current version locally - No issues with data privacy
Copy paste the contents from https://raw.githubusercontent.com/tnclark8012/Power-BI-Desktop-Query-Extensions/master/power-query-extensions.pq
4. Name the query something short and sweet (like "PBI")
5. Click on function names to see documentation!
6. Use it by referencing PBI[TheFunctionName]
The more the merrier! Be sure to document your function and include a test