Quick reference for Power Query M — the functional language behind Power BI and Excel data transformations. Covers values, operators, text, numbers, dates, lists, records, and tables.
List creationList.CountList.First / LastList.FirstN / LastNList.DistinctList.SelectList.TransformList.SortList.ReverseList.Contains / ContainsAny / AllList.MatchesAny / AllList.RemoveNullsList.RemoveRangeList.RepeatList.CombineList.SplitList.Min / Max / Sum / AverageList.Product / StandardDeviationList.Union / Intersect / DifferenceList.NumbersList.DatesList.GenerateList.SingleOrDefault
Record Functions
Record creationRecord.Fieldrecord[FieldName]Record.FieldNames / ValuesRecord.HasFieldsRecord.AddFieldRecord.RemoveFieldsRecord.RenameFieldsRecord.ToTableRecord.FromList