Ninmonkey.PowerQueryLib icon indicating copy to clipboard operation
Ninmonkey.PowerQueryLib copied to clipboard

Custom functions for Power BI

Ninmonkey.PowerQueryLib

  • Ninmonkey.PowerQueryLib
    • View Functions By Category
    • Exported Culture as Csv
    • New Usage
    • Importing External .pq files
    • Other projects
    • Functions
    • Other links
    • Usage ( Old version )
    • Language data

Custom functions for Power BI

View Functions By Category

  • List Functions By Group.md 📌 ( Is new )

Exported Culture as Csv

  • Table of Named DateTime FormatStrings by Culture.csv

New Usage

  • This template loads any external pq file Template-Import-ninlib.pbix or Template-Import-ninlib.pq
  • You can use it to load libraries like Ninmonkey.PowerQueryLib.pq or Write.Html.pq

Importing External .pq files

If you want to load your own .pq files, check out this function:

Import.PowerQueryLib.pq Or grab the pbix Template-Import-ninlib.pbix

If the script you load has any parsing errors it will show you extra information about the error. Which line, which error kind, uses xray to view nested Error Details fields, and more. Example error:

Reason: Expression.Error
Path: 75, H:\2024\tabular\2024.pq-lib.pq
Message: [75,9-75,11] Invalid identifier.
...
RemainingMessage:  Invalid identifier.
DetailsJson: 
    [{"Location":{"Kind":"Language.TextSourceLocation","Text":"","Range":
     {"Start":{"Line":74,"Column":8},"End":{"Line":74,"Column":10}}},"Text":"Invalid identifier."}]
...
Context: 
        Format.Csv = Csv,
        23

Other projects

Functions

Categories: ValuesTypesExpressionsComparerFunctions

Other links

Usage ( Old version )

  1. Open your report and open test_All.pbix
  2. Select the functions you want (Any dependencies will be included for you)
  3. Copy -> Paste

searching_csv

Language data

searching_csv

  • All PowerQuery Functions
  • All PowerQuery Constants
  • All *.Types This contains all built-in types like: Int64.Type, Currency.Type, etc.