Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
PowerQuery M-Code - Complete Course (24 hours)
Rating: 4.3 out of 5(474 ratings)
3,190 students

PowerQuery M-Code - Complete Course (24 hours)

Learn Power Query M Code with Lists, Records, Functions, Text & Date Functions, Dynamic Solutions and Real-World Project
Created byajay parmar
Last updated 9/2026
English
English [Auto],

What you'll learn

  • We will learn the use of M functions in PowerQuery . M stands for Mash-up language.
  • Understand the fundamentals of Power Query M Code and learn how to read and write M syntax
  • Work with Lists Records Tables and important Table and List functions in Power Query
  • Create and use IF functions custom functions parameters variables and optional parameters in M Code
  • You will learn the basics of Mcode. How to write your own syntax.
  • Use Text Date List and Record functions to solve practical data transformation problems
  • Write and modify M Code directly to create solutions that go beyond the Power Query user interface
  • Build dynamic and reusable solutions using advanced List functions including List Generate
  • Apply M Code to real world data cleaning transformation and automation projects including practical student questions and business scenarios

Course content

8 sections • 77 lectures • 23h 58m total length
  • Introduction to Mash Up - M code43:59
    • What is M code language in powerquery

    • Where it is written and how we can do changes if result demands it

    • Rules to follow in writing M code language

    • By default Syntax formation - How you can change it

    • Taking help of Default syntaxes and doing amazing things

    • How to rename steps

    • Theory PQ editor follows when you do data changes or applies steps

    • What are the applied steps and what do they do actually.

    • Use of punctuation - Need and Importance

    • Write your own steps in blank query - For better understanding and confidence

  • Know more about M code language16:33

    Master M code in Power Query: learn let and in structure, handle spaces with hash prefixes, and interpret applied steps as functions producing tables or values.

  • Edit the PQ directly without adding new steps -More necessary information.15:57
    • What if instead adding new steps or deleting existing steps because of some last minute modifications you can just directly jump into PQ editor and modify the code. That will be awesome

    • Unleashing the power of M code in this lecture. More information means more visibility in terms of what are we going to do in upcoming sessions with this amazing M code.

  • Table Functions Introduction42:18

    Learn the use of M Table functions and see the outcomes. it has no comparison with normal powerquery.

    Using table functions - in real situations and talking about them from scratch

  • Amazing List Introductions - Why and how we use them1:13:07
    • What is  List object in PQ.

    • How it is different from table functions.

    • How to use List functions and Why we need it

    • Complete tutorial on Lists objects or Functions with real time examples

  • Surprise Test for you on List - Can you do it?25:33

    Just want you to understand the question and do it by yourself. Of-course, later come back and see the solution. Its a revision as well as a kind of quiz for you.

  • Test1
  • Test2
  • Test3
  • Test4
  • Test5
  • Test6
  • Auto Reflect New Columns using List knowledge25:30

    Learn to auto reflect new columns across multiple sheets in Power Query by using M code to build a dynamic header list from table column names.

  • Time to see magical Record objects25:25
    • What are the records in PQ. Their syntax formation and Use in practical life.

    • Linking excel cell with PowerQuery - In following record chapter you shall see

    • Calculation the performance gap between current and previous month using Index and Record combination. Simple Awesome!

  • Example of Record in practical life19:05

    How about linking excel cell with powerquery output. This is possible and it is possible because we have learnt now  how to use record objects in PQ.

  • Second real example of using Records16:02

    How to do comparison between current and previous values in table.  A wonderful example to showcase the talent of record object in  PowerQuery

  • Project for you - Authors Book alignment Challenge7:41
  • Tough Project Challenge for us - Headers are different1:05:12

    Student discussed the issue that he was not able to compile files which are very big in numbers because of the different headers showing in each workbook. So, before we compile all those files into one, we need to go and make sure each file has same header naming convention.

  • PQ ribbon first and then use it in M code -Smart way of Writing IFs - PRACTICAL15:40

    I would like to give your more confidence here. A clear Vision with creative ideas must be shared with you which can help you in doing the things by yourself. Such examples will help you.

  • How to link values from different rows Your Question my solution23:43

    Explore linking values from different rows in Power Query M code by adding an index, creating a custom column, and using step references to multiply and sum across rows.

  • Table Sort & Table Select Columns-Ready for any scenario9:35

    Learn to use Power Query M code to sort data with table sort and to extract specific columns with table select columns, improving data shaping in any scenario.

  • Amazing Project - How to put headers from high to low values17:51

    Learn to restructure data in PowerQuery by unpivoting four category columns, sorting from highest to lowest, and transposing headers to produce a clean, sortable table ready for merging.

  • SQL Server Query controlled from Excel Cell - Magnificent Project13:46

    Learn to import data from a SQL Server into Power Query via Excel cell input, using Adventure Works 2019, with optional where clauses and Excel-driven parameterization.

Requirements

  • You should be knowing Powerquery basics . You should know how to work with powerquery features available in its Ribbon.

Description

Section One

Introduction to M Code

Introduction to M Code Language

Understanding Power Query M Code

Editing M Code Directly

Understanding Power Query Steps

Table Functions Introduction

Introduction to Lists

Working With Lists

Practical List Examples

Using Lists To Create Dynamic Solutions

Working With Records

Record Objects And Practical Examples

Using Lists And Records Together

Section Two

Intermediate M Code

Introduction To IF Functions

IF Functions Part Two

IF Functions Part Three

User Defined Functions

Creating Your Own Functions

Function Parameters

Using Multiple Variables In Functions

Optional Parameters

Error Handling

Top Salaries Project

Avoiding Irrelevant Rows

Avoiding Specific Rows

Percentage Calculations

Category Based Ranking

Finding Unique Records

CountIF And SumIF Concepts

Table Transform Column Function

Section Three

Date And List Functions

Basic Date Functions

Date Extraction And Conversion

Date Handling Quiz

Practical Date Problem Solving

Important Date Functions

List Union Function

List Intersect Function

List Difference Function

List Sum And List Range Functions

Linking Data With Excel Cells

Practical List Projects

Section Four

Text Functions

Text Start Function

Text End Function

Text Middle Function

Text Position Of Function

Finding Specific Text

Checking Whether Text Contains A Specific Value

Reversing Text

Adding Values To Text

Removing Values From Text

Removing Multiple Values From Text

Splitting Text

Practical Text Function Projects

Finding Duplicate Records

Finding The Last Record Of A Duplicate

Section Five

Advanced Text Functions And Practical Projects

Advanced Text Transformations

Practical Student Questions

Dynamic Text Solutions

Finding And Replacing Values

Replacing Multiple Values

Creating Robust Text Solutions

Real World Data Transformation Projects

Section Six

Projects And Real World Applications

Finding Top Sales

Finding Rankings By Category

Removing Irrelevant Rows

Avoiding Specific Rows

Finding Unique Records

Reversing And Extracting Data

Finding Duplicate Records

Finding The Last Record Of A Duplicate

Controlling SQL Server Queries From Excel Cells

Dynamic Column Handling

Working With Changing Headers

Section Seven

Advanced List Functions

List Generate Function

Creating Dynamic Lists

Using Variables With List Generate

Using Multiple Variables

Optional Parameters In List Generate

Find And Replace Project

Replacing All Values

Converting Code Into A Function

Table Sort Function

Table Select Columns Function

Table Join Function

List Zip Function

Table To Columns Function

Looping With List Generate

Creating Dynamic And Robust M Code Solutions

Who this course is for:

  • Students who want to go in data analytics or professionals who want to make career in Excel based applications or who are already working in MIS reporting or business analyst and work day and night in excel.