Skip to content

Commit 72200d9

Browse files
committed
Merge branch 'main' of github.com:ninmonkey/Ninmonkey.PowerQueryLib
2 parents 1eb14e8 + 3511a18 commit 72200d9

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

Examples-Blog/Custom Functions/Part 1 - Using Optional Parameters.pq

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
let
22
/*
33
About: Compare different optional parameter types
4-
54
From this blog post: https://ninmonkeys.com/blog/2024/06/05/power-query-functions-part1-using-optional-parameters
6-
75
source: https://github.com/ninmonkey/Ninmonkey.PowerQueryLib/blob/bf4e1d63b8bb9ffe3b3e4df0d687435bb88be30d/Examples-Blog/Custom%20Functions/Part%201%20-%20Using%20Optional%20Parameters.pq
86

9-
lets call Text.Combine() to test declaring optional parameters
10-
117

8+
lets call Text.Combine() to test declaring optional parameters:
129

1310
For this version:
14-
- you can pass a null value for a separator
15-
- always requires you pass 2 parameters
11+
- you can pass a null value for a separator
12+
- always requires you pass 2 parameters
1613
*/
1714
Join_Nullable = (texts as list, separator as nullable text) =>
1815
Text.Combine( texts, separator ),
1916

2017
/*
2118
For this version:
22-
- you can pass a null value for a separator
23-
- you can skip the second parameter
24-
- 'optional' parameters are automatically 'nullable',
25-
so you can drop the 'nullable' part
19+
- you can pass a null value for a separator
20+
- you can skip the second parameter
21+
- 'optional' parameters are automatically 'nullable',
22+
so you can drop the 'nullable' part
2623

2724
This is how library functions have multiple call signatures
2825
Power Query defines one function

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ Custom functions for Power BI
2525
## New Usage
2626

2727
- This template loads any external `pq` file [Template-Import-ninlib.pbix](./Template-Import-ninlib.pbix) or [Template-Import-ninlib.pq](./Template-Import-ninlib.pq)
28-
- You can use it to load libraries like [Ninmonkey.PowerQueryLib.pq](./build/2024-04.ninlib.pq) or [Write.Html.pq](./source/Html/Write.Html.pq)
28+
- You can use it to load libraries like [Ninmonkey.PowerQueryLib.pq](./build/2024-04.ninlib.pq) or [Write.Html.pq](https://github.com/ninmonkey/Ninmonkey.PowerQueryLib/blob/c56147e99962d8d9bfc1b5f5b0799700fa2d65ca/source-modules/Write.Html.module.pq)
2929

3030
## Importing External `.pq` files
3131

32-
If you want to load your own `.pq` files, check out this function: [Import.PowerQueryLib.pq](./source/Import.PowerQueryLib.pq)
33-
Or grab the pbix [Template-Import-ninlib.pbix](./Template-Import-ninlib.pbix)
32+
If you want to load your own `.pq` files, check out this function:
33+
34+
[Import.PowerQueryLib.pq](https://github.com/ninmonkey/Ninmonkey.PowerQueryLib/blob/3a2bd38021b43703af5e8444881bfda5c9d00db2/source/Evaluate/Example/Import.PowerQueryLib.pq.example) Or grab the pbix [Template-Import-ninlib.pbix](./Template-Import-ninlib.pbix)
3435

3536
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.
3637
Example error:
@@ -51,7 +52,10 @@ Context:
5152
5253
## Other projects
5354
55+
- [answering forums: ninMonkQuery Example](https://github.com/ninmonkey/ninMonkQuery-examples/tree/main/forumQuestions)
5456
- [OscarValerock/PowerQueryFunctions](https://github.com/OscarValerock/PowerQueryFunctions)
57+
- [tirnovar/m-custom-functions](https://github.com/tirnovar/m-custom-functions)
58+
- [tirnovar/Power-BI-Admin-REST-API-Connector](https://github.com/tirnovar/Power-BI-Admin-REST-API-Connector) and [tirnovar/Power BI REST API using Power Query](https://github.com/tirnovar/Power_BI_REST_API_PQ?tab=readme-ov-file#power-bi-rest-api-custom-function-library)
5559
5660
## Special functions
5761

0 commit comments

Comments
 (0)