Vojtěch ŠímaData Bender

M-Language

11 posts on M-Language: benchmarks, internals and workarounds for the Microsoft data stack.

  1. 11
    Fix 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.

  2. 10
    How 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.

  3. 09
    Why 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.

  4. 08
    How 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.

  5. 07
    How 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.

  6. 06
    While 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.

  7. 05
    Ultimate 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.

  8. 04
    Combine 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.

  9. 03
    API 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.

  10. 02
    Pagination 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.

  11. 01
    Introduction 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.