M-Language
11 posts on M-Language: benchmarks, internals and workarounds for the Microsoft data stack.
- 11Fix Slow Refreshes: Faster Way to Load SharePoint Files in Power BI
Optimize Power BI SharePoint data retrieval. Learn technical differences between connectors and implement a custom REST API strategy for faster dataset refreshes.
- 10How to Fix Slow SharePoint List Refresh in Power BI
Boost Power BI SharePoint refresh speed. Fix RenderListDataAsStream errors and use a custom M script to cut load times from minutes to seconds.
- 09Why Is Power Query List.Contains Slow? Faster Lookup Alternatives
Power Query lookup benchmarks. Learn why List.Contains is slow at scale, when buffering helps, and how joins or Record.FieldOrDefault beat list contains.
- 08How to Connect GraphQL APIs as a Data Source in Power BI
Learn how to connect GraphQL APIs to Power BI effortlessly. Discover key GraphQL concepts and integrate GraphQL with Power BI for seamless data analysis.
- 07How Power Query (M) evaluates your queries, and why the performance gets weird
Lazy versus eager evaluation in Power Query M, what buffering actually changes, and why the same query can return different numbers on each run.
- 06While Loop in M Language
Discover how to mimic a while loop in M Language using List.Generate(). Learn to implement while loop logic effectively in Power Query M.
- 05Ultimate intro to Power Query M Language
What M actually is, how Power Query writes it for you, and how to start editing it yourself. A beginner introduction built on working examples.
- 04Combine Files Quickly in Power Query
Power Query's built-in file combiner generates a folder of helper queries. Two simpler ways to combine files, in roughly one line of M.
- 03API Authentication in Power Query
The five authentication methods Power Query supports: Anonymous, API Key, Bearer Token, Basic and OAuth 2.0, with working M for each.
- 02Pagination in Power Query
How to page through an API from Power Query: offset, cursor and link-header styles, with M that keeps asking until the last page comes back.
- 01Introduction to API in Power Query
Calling a REST API from Power Query with Web.Contents and Json.Document: the request, the response, and turning JSON into a usable table.










