Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acaprojects/m-tools
A collection a useful tools for building Microsoft Power BI queries
https://github.com/acaprojects/m-tools
m powerbi powerquery
Last synced: about 2 months ago
JSON representation
A collection a useful tools for building Microsoft Power BI queries
- Host: GitHub
- URL: https://github.com/acaprojects/m-tools
- Owner: acaprojects
- License: mit
- Created: 2017-07-19T13:07:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T15:49:25.000Z (almost 7 years ago)
- Last Synced: 2024-11-13T16:43:18.933Z (3 months ago)
- Topics: m, powerbi, powerquery
- Language: Haskell
- Size: 42 KB
- Stars: 69
- Watchers: 14
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - acaprojects/m-tools - A collection a useful tools for building Microsoft Power BI queries (Haskell)
README
# M-tools
A collection a useful tools for building queries in the Power Query Formula Language ("*M*") used by [Microsoft Power BI](https://powerbi.microsoft.com/).
## Usage
>Power BI does not (appear) to currently support external dependencies so setup is a little rudimentary.
1. Create a new blank query.
2. Copy the content of [M.pq](M.pq) to this query using the advanced editor.
3. Name the query `M`.Functions may then be access from other queries as records on `M`. For example, `Pipe` may be invoked as:
M[Pipe]({functionA, functionB, ...})
## Contributing
Do not directly edit [M.pq](M.pq). This is built from the components defined in
[src/](src/). It is provided, preassembled for convenience only.To add functions, create new `*.pq` files within [src/](src/) containing the
expression body and any relevant documentation (see the other files for
reference). When compiled, the expression will be bound to the name of the file.### Building
```bash
runhaskell build.hs
```---
[M Language specification](https://msdn.microsoft.com/en-us/library/mt807488.aspx)
[Type system](https://msdn.microsoft.com/en-us/library/mt809131.aspx)
[Internal function references](https://msdn.microsoft.com/en-us/library/mt779182.aspx)