New
Microsoft Power BI Quick Start Guide
Build interactive dashboards and reports with Power BI Desktop, the Power BI service, and DAX
by Bradley Schacht, Devin Knight, Erin Ostrowsky, Mitchell Pearson
Published
2015
A Guide to the M Language in Power Query for Excel and Power BI
Master the M language and build reliable, reusable data transformation pipelines in Power Query β without guessing your way through the formula bar.
Power Query's M language sits behind every query you build in Excel and Power BI, but most users never learn to write it directly. M Is for (Data) Monkey by Ken Puls and Miguel Escobar changes that. It walks you through M from first principles, showing you how to connect to data sources, clean messy inputs, reshape tables, and automate repetitive transformation work β all in plain, practitioner-focused language backed by real examples.
Every time you click through Power Query's interface, M code is being written on your behalf. That works fine until the interface can't do what you need β and then you're stuck. M Is for (Data) Monkey closes that gap by teaching you to read, write, and modify M directly, so the query editor does exactly what you intend instead of approximately what you clicked.
Ken Puls and Miguel Escobar are two of the most widely trusted voices in the Power Query community. In this book, they translate years of hands-on consulting work into a structured, example-driven introduction to the M language. You don't need a programming background. You need a willingness to look past the ribbon and understand what's actually happening in your queries.
The book moves at a deliberate pace. Early chapters cover the fundamentals: how M evaluates expressions, how data types work, and how the query editor generates code you can then modify. Later chapters tackle practical transformation challenges β combining files from a folder, handling errors gracefully, building reusable custom functions, and working with nested tables and lists. Each concept is grounded in the kind of data problems analysts face every day.
Whether you're an Excel analyst moving toward Power BI or a Power BI developer who has been avoiding the Advanced Editor, this book gives you the vocabulary and confidence to work with M as a real language rather than a black box. The skills you build here carry directly into every Power BI report and Excel workbook you build from this point forward.
Get oriented to the Power Query environment, understand where M fits in the Excel and Power BI ecosystem, and load your first dataset using the query editor.
Learn how M evaluates expressions, how let and in blocks work, and how each step in the Applied Steps pane corresponds to a line of M code.
Explore M's core value types β text, number, date, logical, null β and understand why getting types right prevents silent errors downstream.
Connect to flat files, Excel workbooks, folders of files, databases, and web sources, and learn how M's source functions differ by connector type.
Apply filters, rename columns, change types, pivot and unpivot data, and merge or append queries using M functions you can read and edit directly.
Work with M's three compound data structures as first-class values, and learn how to navigate and transform nested data that the GUI struggles to reach.
Build parameterized M functions that encapsulate repeated transformation logic, then invoke them across multiple queries or workbook files.
Use try, otherwise, and Table.AddColumn patterns to catch and manage errors so your queries surface problems explicitly rather than returning wrong results silently.
Work through end-to-end examples drawn from common analyst workflows β combining monthly exports, normalizing inconsistent source formats, and automating file-folder ingestion.
No. The book assumes you have used Power Query's interface in Excel or Power BI but have no prior experience writing M code. Programming concepts are introduced from scratch in plain language.
No. The book focuses entirely on the M language and Power Query data transformation. DAX and report-layer topics are out of scope, though the skills here complement DAX work directly.
The M language itself has remained stable, and the core concepts taught here still apply. Some screenshots and connector interfaces may look different in current versions of Power BI Desktop or Excel, but the query logic and function patterns are accurate.
The M language and Power Query engine are shared across both products. Most examples work in either environment, so you can follow along with whichever tool you have access to.
Check the publisher or authors' official pages for any companion files associated with the book. No download links are bundled directly in this listing.
New
Build interactive dashboards and reports with Power BI Desktop, the Power BI service, and DAX
by Bradley Schacht, Devin Knight, Erin Ostrowsky, Mitchell Pearson
New
A practical guide to Power BI data modeling, DAX, and enterprise-grade report design
by Brett Powell, Greg Deckler, Leon Gordon
New
Reusable DAX solutions for common Power BI and Analysis Services business intelligence scenarios
by Alberto Ferrari, Marco Russo
New