Skip to content

MQueryCheatSheet v1.0.1

Latest

Choose a tag to compare

@naveenjujaray naveenjujaray released this 20 Aug 07:50
cd379ac

๐Ÿ“ฆ 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.AddIndexColumn
  • Table.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.IsInCurrentMonth
  • Time.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.