๐ฆ Power Query / M Query Cheatsheet โ Release v1.0.1
Author: Naveen Jujaray
Version : v1.0.1
Created On: 20-Aug-2025
Last Updated: 20-Aug-2025
Reference Links:
๐ PDF Version
๐ Microsoft Learn Docs
๐ What's Included
This release introduces a comprehensive cheatsheet for Power Query M language, designed for quick lookup and learning. It includes:
- โ Syntax and examples for 200+ M functions
- ๐ Categorized sections for:
- Table, Text, Number, Date, Time, DateTime, Duration functions
- Logical & Conditional, List, Record, Uri, Binary, and Metadata functions
- Advanced topics like Expression Evaluation, Diagnostics, and Accessing Data
- ๐ง Best practices and production-readiness tips
โ ๏ธ Warnings on deprecated or preview-only features
๐ Highlights
๐งฎ Table Functions
Table.AddColumn,Table.AddConditionalColumn,Table.AddIndexColumnTable.Buffer,Table.Combine,Table.Group,Table.Join,Table.Pivot,Table.Unpivot
๐ค Text Functions
Text.Upper,Text.Trim,Text.Replace,Text.Split,Text.Combine,Text.Format
๐ข Number Functions
Number.Abs,Number.Power,Number.Round,Number.Mod,Number.RandomBetween
๐ Date & Time Functions
Date.Year,Date.Month,Date.AddDays,Date.IsInCurrentMonthTime.Hour,DateTime.LocalNow,DateTimeZone.SwitchZone
๐งช Logical & Conditional
if...then...else,try...otherwise,Value.Equals,Value.Is,List.AnyTrue
๐งฐ Advanced & Metadata
Expression.Evaluate,Value.Metadata,Diagnostics.Trace,Error.Raise
๐ก๏ธ Production Usage Tips
- โ Always verify function signatures in official docs
- ๐งช Test with your target engine (Power BI, Excel, Dataflows, etc.)
- ๐ Use explicit types and culture parameters
- ๐ Watch for deprecation and breaking changes
๐ Disclaimer
This cheatsheet is community-compiled. Use at your own risk.
No warranty of completeness or correctness is provided.
Always follow Microsoft Learn and your organizationโs governance policies.