Skip to content

Power Query (M Code)

Rodrigo Celso de Lima Porto edited this page Jan 13, 2026 · 4 revisions
Function Description Documentation
Binary.Unzip Extracts file from a compressed ZIP file πŸ“„
DateTime.ToUnixTime Converts a datetime format to Unix Time Stamp πŸ“„
Decision.EntropyWeights Calculates the weights of a decision multicriteria using the entropy weighting method πŸ“„
Decision.TOPSIS Applies the TOPSIS multicriteria method to a table in order to rank alternatives πŸ“„
List.Correlation Calculates the correlation coefficient between two lists of numeric values πŸ“„
List.Intercept Calculates the intercept B of the linear regression line Y = AX + B between two numerical lists X and Y πŸ“„
List.Outliers Returns a numerical list of outliers existing in a list πŸ“„
List.PopulationStdDev Calculates the population standard deviation of a numerical list πŸ“„
List.Primes Returns a list of prime numbers less than or equal to a given number n πŸ“„
List.Rank Returns a list of ranks for a given list of values πŸ“„
List.Slope Calculates the slope A of the linear regression Y = AX + B between two numerical lists X and Y πŸ“„
List.Variance Calculates the population variance of a numerical list πŸ“„
List.WeightedAverage Calculates the weighted average of a list of values given a corresponding list of weights πŸ“„
Number.FromRoman Converts a Roman numeral to a number πŸ“„
Number.IsInteger Checks if a number is integer or not πŸ“„
Number.IsPrime Checks if a number is prime or not πŸ“„
Number.ToRoman Converts a number to Roman numeral, if it's possible πŸ“„
Statistical.NormDist Calculates the Normal distribution for a given input x πŸ“„
Statistical.NormInv Returns the inverse of the CDF of the normal distribution πŸ“„
Table.AddColumnFromList Adds a new column to a table using values from a provided list πŸ“„
Table.CorrelationMatrix Calculates the correlation matrix for a given table πŸ“„
Table.NormalizeColumnNames Cleans and standardizes column names in a table πŸ“„
Table.NormalizeTextColumns Cleans, standardizes and formats column names in a table πŸ“„
Table.NormalizeTextColumns Cleans, standardizes and formats text columns in a table πŸ“„
Table.RemoveBlankColumns Removes columns from a table that contain only blank values πŸ“„
Table.TransposeCorrectly Transposes a table without losing the original column names πŸ“„
Text.CountChar Counts the occurrences of a specific character in a given text string πŸ“„
Text.ExtractNumbers Returns all numeric values from a given text πŸ“„
Text.HtmlToPlainText Converts HTML content to plain text πŸ“„
Text.RegexExtract Extracts a pattern from a text by using a regular expression πŸ“„
Text.RegexReplace Replaces a pattern in a text that match a given regular expression πŸ“„
Text.RegexSplit Splits a text into a list of strings based on a regular expression pattern πŸ“„
Text.RegexTest Tests whether a text matches a regular expression pattern πŸ“„
Text.RemoveAccents Removes any accent from characters in a text πŸ“„
Text.RemoveDoubleSpaces Replaces any sequence of multiple spaces in a text to sigle spaces πŸ“„
Text.RemoveLetters Removes all alphabetic characters from a text πŸ“„
Text.RemoveNumerals Removes all digits from a text πŸ“„
Text.RemovePunctuations Removes all punctuations from a text πŸ“„
Text.RemoveStopwords Removes common Portuguese stopwords from a text πŸ“„
Text.RemoveWeirdChars Removes special and non-printable characters from a text πŸ“„

Clone this wiki locally