
Learn how to access the code and some of the first basics about the "M"ashup language.
A brief video demonstrating a text comparison tool, which I use during this chapter to highlight differences between code sets.
Microsoft has added Intellitext support to the PowerQuery editor within Excel. Hooray!
Many users new to VBA learn commands via the macro recorder. The Get and Transform query editor offers a similar approach to learning functions by doing without diving deep into any documentation. This lesson looks at three different functions using a text comparer to see how the different usages generate different M Language commands.
This lesson dives into how each line within a query relates to each other line. In standard editor-only queries, each line is a one-use-only variable. When writing code directly, you can reuse and reorder how operations are performed. The attached resources include the starting and ending points from this video, plus the challenge file.
This lecture consists of the recorded live-stream of the challenge solution walk-through plus the completed challenge file for reference.
Query parameters are parameter items built within the confines of the Get & Transform engine with specific syntax and uses. This feature has more value in Power BI than Excel; however, I use it on occasion in the following chapter generally for testing purposes. The Challenge file can be found in the resources, along with the starting and ending workbook from this video.
A live-stream recording of the solution to the challenge with edits for time.
Introduces the concept of re-usable query functions.
Solution to the challenge, recorded live-stream.
Use of optional parameters to extend and customize functions, with starting and ending workbook to follow lesson.
Recording of the live-stream solution.
Write shorter, more concise functions for simple commands.
Write functions that return other functions.
A walk-through of the challenge with two separate solution files for comparison.
How to build records within M code. Used significantly in the recursion lessons.
What the Each keyword means and how it pertains to functions for the following recursion lessons.
How to write functions that call themselves, along with the general logic such functions should follow.
How to use the List.Generate function and use it to perform recursive logic.
Quick review of the concepts, how they fit together, and introduction to the Word Search exercise.
A walkthrough for the first half of the exercise solution.
The second-half walkthrough of the exercise solution
This lesson offers some tips and tricks for working with lists that can come in handy for different scenarios, including in the chapter exercise.
A highly customizable function that can be used to create loops and much, much more.
This lesson offers a brief overview of the try and otherwise keywords for catching and handling errors.
This lesson discusses how to throw customized errors for situations where a technical error doesn't occur but the results violate the intended rules of your function or query. The follow-up challenge is attached to this lesson as 4-2-challenge-v2.xlsx. [Updated: 5/9/2019]
This video will offer a walk-through of the creation for the solution to the Blackjack challenge posed for this chapter.
Empower your ability to transform data..
The Query Editor that supports Get & Transform is powerful and allows even the newest Excel users to create powerful data manipulation queries with only their mouse and, occasionally, a few keyboard inputs. Behind each query is the powerful Mashup language, "M" for short. Picking up even a few tips and tricks with the language itself can allow you to create even more useful and powerful queries far faster than with strictly the editor alone.
In this course, you'll dive behind the Query Editor to learn about the syntax and structure of M Code so that you can build queries with the query editor and make manual adjustments to create results not achievable strictly through the graphical interface.
Save time with reusable query code..
Found yourself loving how quickly you can do so many things in the Query Editor but feel like you've been doing the same thing over and over? You probably have been and there's a solution for that!
With a few extra lines of code, you can turn many of your queries that you've duplicated and re-used over and over again into directly re-usable functions that will save you time, hassle, and dramatically improve your ability to maintain, update, and edit your queries.
In this course, you will learn about how to build reusable functions from existing queries or from scratch to give you the ability to build custom reusable user functions within your Query Editor.
Incorporate complex logic into your transformations..
Have you ever found yourself needing the results of an iterative calculation based upon a combination of fields or wanting to compute a compound calculation based upon other rows within the same data set?
These types of problems require complex logic that is generally the realm of true object oriented languages and other solutions rather than database computations like those generated from SQL.
The "M" language allows for constructing loops, writing recursive functions, and incorporating proper error trapping and management as part of your queries, allowing you to incorporate the detailed logic necessary for your solution.
In this course, you'll learn how to do each of these things within the M language, using the Query Editor to guide and test your code as you progress.
Apply the concepts together to solve problems..
The course has multiple challenges plus full-scale practice exercises to help you learn how to apply and combine the various components together. One large-scale exercise will have you applying everything you know about Get & Transform to build a series of queries and functions that can solve Word Search puzzles.
Each challenge and practice set has guided video explanations for how to arrive at the solution plus the solution files to peruse at your own pace.