Power Query M (By Category)

Accessing data functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
AccessControlEntry.ConditionToIdentitiesReturns a list of identities that the condition will accept.
AccessControlKind.AllowAccess is allowed.
AccessControlKind.DenyAccess is denied.
Access.DatabaseReturns a structural representation of an Microsoft Access database.
ActiveDirectory.DomainsReturns a list of Active Directory domains in the same forest as the specified domain or of the current machine's domain if none is specified.
AdobeAnalytics.CubesReturns the report suites in Adobe Analytics.
AdoDotNet.DataSourceReturns the schema collection for an ADO.NET data source.
AdoDotNet.QueryReturns the schema collection for an ADO.NET data source.
AnalysisServices.DatabaseReturns a table of multidimensional cubes or tabular models from the Analysis Services database.
AnalysisServices.DatabasesReturns the Analysis Services databases on a particular host.
AzureStorage.BlobContentsReturns the content of the specified blob from an Azure storage vault.
AzureStorage.BlobsReturns a navigational table containing all containers found in the Azure Storage account. Each row has the container name and a link to the container blobs.
AzureStorage.DataLakeReturns a navigational table containing the documents found in the specified container and its subfolders from Azure Data Lake Storage.
AzureStorage.DataLakeContentsReturns the content of the specified file from an Azure Data Lake Storage filesystem.
AzureStorage.TablesReturns a navigational table containing a row for each table found at the account URL from an Azure storage vault. Each row contains a link to the azure table.
BufferMode.DelayedThe type of the value is computed immediately but its contents aren't buffered until data is needed, at which point the entire value is immediately buffered.
BufferMode.EagerThe entire value is immediately buffered in memory before continuing.
Cdm.ContentsThis function is unavailable because it requires .NET 4.5.
Csv.DocumentReturns the contents of a CSV document as a table using the specified encoding.
CsvStyle.QuoteAfterDelimiterQuotes in a field are only significant immediately following the delimiter.
CsvStyle.QuoteAlwaysQuotes in a field are always significant regardless of where they appear.
Cube.AddAndExpandDimensionColumnMerges the specified dimension table, dimensionSelector, into the cube’s, cube, filter context and changes the dimensional granularity by expanding the specified set, attributeNames, of dimension attributes.
Cube.AddMeasureColumnAdds a column with the name column to the cube that contains the results of the measure measureSelector applied in the row context of each row.
Cube.ApplyParameterReturns a cube after applying parameter with arguments to cube.
Cube.AttributeMemberIdReturns the unique member identifier from a member property value.
Cube.AttributeMemberPropertyReturns the property propertyName of dimension attribute attribute.
Cube.CollapseAndRemoveColumnsChanges the dimensional granularity of the filter context for the cube by collapsing the attributes mapped to the specified columns columnNames.
Cube.DimensionsReturns a table containing the set of available dimensions within the cube.
Cube.DisplayFoldersReturns a nested tree of tables representing the display folder hierarchy of the objects (for example, dimensions and measures).
Cube.MeasurePropertiesReturns a table containing the set of available properties for measures that are expanded in the cube.
Cube.MeasurePropertyReturns the property of a measure.
Cube.MeasuresReturns a table containing the set of available measures within the cube.
Cube.ParametersReturns a table containing the set of parameters that can be applied to cube.
Cube.PropertiesReturns a table containing the set of available properties for dimensions that are expanded in the cube.
Cube.PropertyKeyReturns the key of property property.
Cube.ReplaceDimensionsReplaces the set of dimensions returned by Cube.Dimensions.
Cube.TransformApplies the list cube functions, transforms, on the cube.
DB2.DatabaseReturns a table of SQL tables and views available in a Db2 database.
Essbase.CubesReturns the cubes in an Essbase instance grouped by Essbase server.
Excel.CurrentWorkbookReturns the tables in the current Excel Workbook.
Excel.WorkbookReturns a table representing sheets in the given excel workbook.
Exchange.ContentsReturns a table of contents from a Microsoft Exchange account.
File.ContentsReturns the binary contents of the file located at a path.
Folder.ContentsReturns a table containing the properties and contents of the files and folders found in the specified folder.
Folder.FilesReturns a table containing a row for each file found at a folder path, and subfolders. Each row contains properties of the folder or file and a link to its content.
GoogleAnalytics.AccountsReturns the Google Analytics accounts for the current credential.
Hdfs.ContentsReturns a table containing a row for each folder and file found at the folder url, {0}, from a Hadoop file system. Each row contains properties of the folder or file and a link to its content.
Hdfs.FilesReturns a table containing a row for each file found at the folder url, {0}, and subfolders from a Hadoop file system. Each row contains properties of the file and a link to its content.
HdInsight.ContainersReturns a navigational table containing all containers found in the HDInsight account. Each row has the container name and table containing its files.
HdInsight.ContentsReturns a navigational table containing all containers found in the HDInsight account. Each row has the container name and table containing its files.
HdInsight.FilesReturns a table containing a row for each folder and file found at the container URL, and subfolders from an HDInsight account. Each row contains properties of the file/folder and a link to its content.
Html.TableReturns a table containing the results of running the specified CSS selectors against the provided html.
Identity.FromCreates an identity.
Identity.IsMemberOfDetermines whether an identity is a member of an identity collection.
IdentityProvider.DefaultThe default identity provider for the current host.
Informix.DatabaseReturns a table of SQL tables and views available in an Informix database on server server in the database instance named database.
Json.DocumentReturns the contents of a JSON document. The contents may be directly passed to the function as text, or it may be the binary value returned by a function like File.Contents.
Json.FromValueProduces a JSON representation of a given value value with a text encoding specified by encoding.
LimitClauseKind.AnsiSql2008This SQL dialect supports an ANSI SQL-compatible LIMIT N ROWS specifier to limit the number of rows returned.
LimitClauseKind.LimitThis SQL dialect supports a LIMIT specifier to limit the number of rows returned.
LimitClauseKind.LimitOffsetThis SQL dialect supports LIMIT and OFFSET specifiers to limit the number of rows returned.
LimitClauseKind.NoneThis SQL dialect does not support a limit clause.
LimitClauseKind.TopThis SQL dialect supports a TOP specifier to limit the number of rows returned.
MySQL.DatabaseReturns a table with data relating to the tables in the specified MySQL Database.
OData.FeedReturns a table of OData feeds offered by an OData serviceUri.
ODataOmitValues.NullsAllows the OData service to omit null values.
Odbc.DataSourceReturns a table of SQL tables and views from the ODBC data source specified by the connection string connectionString.
Odbc.InferOptionsReturns the result of trying to infer SQL capabilities for an ODBC driver.
Odbc.QueryConnects to a generic provider with the given connection string and returns the result of evaluating the query.
OleDb.DataSourceReturns a table of SQL tables and views from the OLE DB data source specified by the connection string.
OleDb.QueryReturns the result of running a native query on an OLE DB data source.
Oracle.DatabaseReturns a table with data relating to the tables in the specified Oracle Database.
Pdf.TablesReturns any tables found in pdf.
PostgreSQL.DatabaseReturns a table with data relating to the tables in the specified PostgreSQL Database.
RData.FromBinaryReturns a record of data frames from the RData file.
Salesforce.DataConnects to the Salesforce Objects API and returns the set of available objects (i.e. Accounts).
Salesforce.ReportsConnects to the Salesforce Reports API and returns the set of available reports.
SapBusinessWarehouse.CubesReturns the InfoCubes and queries in an SAP Business Warehouse system grouped by InfoArea.
SapBusinessWarehouseExecutionMode.DataStream'DataStream flattening mode' option for MDX execution in SAP Business Warehouse.
SapBusinessWarehouseExecutionMode.BasXml'bXML flattening mode' option for MDX execution in SAP Business Warehouse.
SapBusinessWarehouseExecutionMode.BasXmlGzip'Gzip compressed bXML flattening mode' option for MDX execution in SAP Business Warehouse. Recommended for low latency or high volume queries.
SapHana.DatabaseReturns the packages in an SAP HANA database.
SapHanaDistribution.AllReturns the packages in an SAP HANA database.
SapHanaDistribution.Connection'Connection' distribution option for SAP HANA.
SapHanaDistribution.Off'Off' distribution option for SAP HANA.
SapHanaDistribution.Statement'Statement' distribution option for SAP HANA.
SapHanaRangeOperator.Equals'Equals' range operator for SAP HANA input parameters.
SapHanaRangeOperator.GreaterThan'Greater than' range operator for SAP HANA input parameters.
SapHanaRangeOperator.GreaterThanOrEquals'Greater than or equals' range operator for SAP HANA input parameters.
SapHanaRangeOperator.LessThan'Less than' range operator for SAP HANA input parameters.
SapHanaRangeOperator.LessThanOrEquals'Less than or equals' range operator for SAP HANA input parameters.
SapHanaRangeOperator.NotEquals'Not equals' range operator for SAP HANA input parameters.
SharePoint.ContentsReturns a table containing a row for each folder and document found at the SharePoint site url. Each row contains properties of the folder or file and a link to its content.
SharePoint.FilesReturns a table containing a row for each document found at the SharePoint site url, and subfolders. Each row contains properties of the folder or file and a link to its content.
SharePoint.TablesReturns a table containing the result of a SharePoint List as an OData feed.
Soda.FeedReturns the resulting table of a CSV file that can be accessed using the SODA 2.0 API. The URL must point to a valid SODA-compliant source that ends in a .csv extension.
Sql.DatabaseReturns a table containing SQL tables located on a SQL Server instance database.
Sql.DatabasesReturns a table with references to databases located on a SQL Server instance. Returns a navigation table.
Sybase.DatabaseReturns a table with data relating to the tables in the specified Sybase Database.
Teradata.DatabaseReturns a table with data relating to the tables in the specified Teradata Database.
WebAction.RequestCreates an action that, when executed, will return the results of performing a method request against url using HTTP as a binary value.
Web.BrowserContentsReturns the HTML for the specified url, as viewed by a web browser.
Web.ContentsReturns the contents downloaded from a web url as a binary value.
Web.HeadersReturns the HTTP headers downloaded from the url as a record value.
Web.PageReturns the contents of an HTML webpage as a table.
WebMethod.DeleteSpecifies the DELETE method for HTTP.
WebMethod.GetSpecifies the GET method for HTTP.
WebMethod.HeadSpecifies the HEAD method for HTTP.
WebMethod.PatchSpecifies the PATCH method for HTTP.
WebMethod.PostSpecifies the POST method for HTTP.
WebMethod.PutSpecifies the PUT method for HTTP.
Xml.DocumentReturns the contents of an XML document as a hierarchical table (list of records).
Xml.TablesReturns the contents of an XML document as a nested collection of flattened tables.

Binary functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
BinaryFormat.7BitEncodedSignedIntegerA binary format that reads a 64-bit signed integer that was encoded using a 7-bit variable-length encoding.
BinaryFormat.7BitEncodedUnsignedIntegerA binary format that reads a 64-bit unsigned integer that was encoded using a 7-bit variable-length encoding.
BinaryFormat.BinaryReturns a binary format that reads a binary value.
BinaryFormat.ByteA binary format that reads an 8-bit unsigned integer.
BinaryFormat.ChoiceReturns a binary format that chooses the next binary format based on a value that has already been read.
BinaryFormat.DecimalA binary format that reads a .NET 16-byte decimal value.
BinaryFormat.DoubleA binary format that reads an 8-byte IEEE double-precision floating point value.
BinaryFormat.GroupReturns a binary format that reads a group of items. Each item value is preceded by a unique key value. The result is a list of item values.
BinaryFormat.LengthReturns a binary format that limits the amount of data that can be read. Both BinaryFormat.List and BinaryFormat.Binary can be used to read until end of the data. BinaryFormat.Length can be used to limit the number of bytes that are read.
BinaryFormat.ListReturns a binary format that reads a sequence of items and returns a list.
BinaryFormat.NullA binary format that reads zero bytes and returns null.
BinaryFormat.RecordReturns a binary format that reads a record. Each field in the record can have a different binary format.
BinaryFormat.SignedInteger16A binary format that reads a 16-bit signed integer.
BinaryFormat.SignedInteger32A binary format that reads a 32-bit signed integer.
BinaryFormat.SignedInteger64A binary format that reads a 64-bit signed integer.
BinaryFormat.SingleA binary format that reads a 4-byte IEEE single-precision floating point value.
BinaryFormat.TextReturns a binary format that reads a text value. The optional encoding value specifies the encoding of the text.
BinaryFormat.TransformReturns a binary format that will transform the values read by another binary format.
BinaryFormat.UnsignedInteger16A binary format that reads a 16-bit unsigned integer.
BinaryFormat.UnsignedInteger32A binary format that reads a 32-bit unsigned integer.
BinaryFormat.UnsignedInteger64A binary format that reads a 64-bit unsigned integer.
BinaryFormat.ByteOrderReturns a binary format with the byte order specified by a function.
Table.PartitionValuesReturns information about how a table is partitioned.
Binary.BufferBuffers the binary value in memory. The result of this call is a stable binary value, which means it will have a deterministic length and order of bytes.
Binary.CombineCombines a list of binaries into a single binary.
Binary.CompressCompresses a binary value using the given compression type.
Binary.DecompressDecompresses a binary value using the given compression type.
Binary.FromReturns a binary value from the given value.
Binary.FromListConverts a list of numbers into a binary value
Binary.FromTextDecodes data from a text form into binary.
Binary.InferContentTypeReturns a record with field Content.Type that contains the inferred MIME-type.
Binary.LengthReturns the length of binary values.
Binary.RangeReturns a subset of the binary value beginning at an offset.
Binary.ToListConverts a binary value into a list of numbers
Binary.ToTextEncodes binary data into a text form.
BinaryEncoding.Base64Constant to use as the encoding type when base-64 encoding is required.
BinaryEncoding.HexConstant to use as the encoding type when hexadecimal encoding is required.
BinaryOccurrence.OptionalThe item is expected to appear zero or one time in the input.
BinaryOccurrence.RepeatingThe item is expected to appear zero or more times in the input.
BinaryOccurrence.RequiredThe item is expected to appear once in the input.
ByteOrder.BigEndianA possible value for the byteOrder parameter in BinaryFormat.ByteOrder. The most signficant byte appears first in Big Endian byte order.
ByteOrder.LittleEndianA possible value for the byteOrder parameter in BinaryFormat.ByteOrder. The least signficant byte appears first in Little Endian byte order.
Compression.BrotliThe compressed data is in the 'Brotli' format.
Compression.DeflateThe compressed data is in the 'Deflate' format.
Compression.GZipThe compressed data is in the 'GZip' format.
Compression.LZ4The compressed data is in the 'LZ4' format.
Compression.NoneThe data is uncompressed.
Compression.SnappyThe compressed data is in the 'Snappy' format.
Compression.ZstandardThe compressed data is in the 'Zstandard' format.
Occurrence.OptionalThe item is expected to appear zero or one time in the input.
Occurrence.RepeatingThe item is expected to appear zero or more times in the input.
Occurrence.RequiredThe item is expected to appear once in the input.
#binaryCreates a binary value from numbers or text.

Combiner functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Combiner.CombineTextByDelimiterReturns a function that combines a list of text into a single text using the specified delimiter.
Combiner.CombineTextByEachDelimiterReturns a function that combines a list of text into a single text using each specified delimiter in sequence.
Combiner.CombineTextByLengthsReturns a function that combines a list of text into a single text using the specified lengths.
Combiner.CombineTextByPositionsReturns a function that combines a list of text into a single text using the specified positions.
Combiner.CombineTextByRangesReturns a function that combines a list of text into a single text using the specified positions and lengths.

Comparer functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Comparer.EqualsReturns a logical value based on the equality check over the two given values.
Comparer.FromCultureReturns a comparer function given the culture and a logical value for case sensitivity for the comparison. The default value for ignoreCase is false. The value for culture are well known text representations of locales used in the .NET framework.
Comparer.OrdinalReturns a comparer function which uses Ordinal rules to compare values.
Comparer.OrdinalIgnoreCaseReturns a case-insensitive comparer function which uses Ordinal rules to compare the provided values x and y.
Culture.CurrentReturns the current culture of the system.

Date functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Date.AddDaysReturns a Date/DateTime/DateTimeZone value with the day portion incremented by the number of days provided. It also handles incrementing the month and year potions of the value as appropriate.
Date.AddMonthsReturns a DateTime value with the month portion incremented by n months.
Date.AddQuartersReturns a Date/DateTime/DateTimeZone value incremented by the number of quarters provided. Each quarter is defined as a duration of three months. It also handles incrementing the year potion of the value as appropriate.
Date.AddWeeksReturns a Date/DateTime/DateTimeZone value incremented by the number of weeks provided. Each week is defined as a duration of seven days. It also handles incrementing the month and year potions of the value as appropriate.
Date.AddYearsReturns a DateTime value with the year portion incremented by n years.
Date.DayReturns the day for a DateTime value.
Date.DayOfWeekReturns a number (from 0 to 6) indicating the day of the week of the provided value.
Date.DayOfWeekNameReturns the day of the week name.
Date.DayOfYearReturns a number that represents the day of the year from a DateTime value.
Date.DaysInMonthReturns the number of days in the month from a DateTime value.
Date.EndOfDayReturns a DateTime value for the end of the day.
Date.EndOfMonthReturns a DateTime value for the end of the month.
Date.EndOfQuarterReturns a Date/DateTime/DateTimeZone value representing the end of the quarter. The date and time portions are reset to their terminating values for the quarter. The timezone information is persisted.
Date.EndOfWeekReturns a DateTime value for the end of the week.
Date.EndOfYearReturns a DateTime value for the end of the year.
Date.FromReturns a date value from a value.
Date.FromTextCreates a Date from local, universal, and custom Date formats.
Date.IsInCurrentDayIndicates whether the given datetime value dateTime occurs during the current day, as determined by the current date and time on the system.
Date.IsInCurrentMonthReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the current month, as determined by the current date and time on the system.
Date.IsInCurrentQuarterReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the current quarter, as determined by the current date and time on the system.
Date.IsInCurrentWeekReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the current week, as determined by the current date and time on the system.
Date.IsInCurrentYearReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the current year, as determined by the current date and time on the system.
Date.IsInNextDayIndicates whether the given datetime value dateTime occurs during the next day, as determined by the current date and time on the system.
Date.IsInNextMonthReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the next month, as determined by the current date and time on the system.
Date.IsInNextNDaysIndicates whether the given datetime value dateTime occurs during the next number of days, as determined by the current date and time on the system.
Date.IsInNextNMonthsIndicates whether the given datetime value dateTime occurs during the next number of months, as determined by the current date and time on the system.
Date.IsInNextNQuartersIndicates whether the given datetime value dateTime occurs during the next number of quarters, as determined by the current date and time on the system.
Date.IsInNextNWeeksIndicates whether the given datetime value dateTime occurs during the next number of weeks, as determined by the current date and time on the system.
Date.IsInNextNYearsIndicates whether the given datetime value dateTime occurs during the next number of years, as determined by the current date and time on the system.
Date.IsInNextQuarterReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the next quarter, as determined by the current date and time on the system.
Date.IsInNextWeekReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the next week, as determined by the current date and time on the system.
Date.IsInNextYearReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the next year, as determined by the current date and time on the system.
Date.IsInPreviousDayIndicates whether the given datetime value dateTime occurs during the previous day, as determined by the current date and time on the system.
Date.IsInPreviousMonthReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the previous month, as determined by the current date and time on the system.
Date.IsInPreviousNDaysIndicates whether the given datetime value dateTime occurs during the previous number of days, as determined by the current date and time on the system.
Date.IsInPreviousNMonthsIndicates whether the given datetime value dateTime occurs during the previous number of months, as determined by the current date and time on the system.
Date.IsInPreviousNQuartersIndicates whether the given datetime value dateTime occurs during the previous number of quarters, as determined by the current date and time on the system.
Date.IsInPreviousNWeeksIndicates whether the given datetime value dateTime occurs during the previous number of weeks, as determined by the current date and time on the system.
Date.IsInPreviousNYearsIndicates whether the given datetime value dateTime occurs during the previous number of years, as determined by the current date and time on the system.
Date.IsInPreviousQuarterReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the previous quarter, as determined by the current date and time on the system.
Date.IsInPreviousWeekReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the previous week, as determined by the current date and time on the system.
Date.IsInPreviousYearReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the previous year, as determined by the current date and time on the system.
Date.IsInYearToDateReturns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred in the period starting January 1st of the current year and ending on the current day, as determined by the current date and time on the system.
Date.IsLeapYearReturns a logical value indicating whether the year portion of a DateTime value is a leap year.
Date.MonthReturns the month from a DateTime value.
Date.MonthNameReturns the name of the month component.
Date.QuarterOfYearReturns a number between 1 and 4 for the quarter of the year from a DateTime value.
Date.StartOfDayReturns a DateTime value for the start of the day.
Date.StartOfMonthReturns a DateTime value representing the start of the month.
Date.StartOfQuarterReturns a DateTime value representing the start of the quarter.
Date.StartOfWeekReturns a DateTime value representing the start of the week.
Date.StartOfYearReturns a DateTime value representing the start of the year.
Date.ToRecordReturns a record containing parts of a Date value.
Date.ToTextReturns a text value from a Date value.
Date.WeekOfMonthReturns a number for the count of week in the current month.
Date.WeekOfYearReturns a number for the count of week in the current year.
Date.YearReturns the year from a DateTime value.
#dateCreates a date value from year, month, and day.
Day.SundayRepresents Sunday.
Day.MondayRepresents Monday.
Day.TuesdayRepresents Tuesday.
Day.WednesdayRepresents Wednesday.
Day.ThursdayRepresents Thursday.
Day.FridayRepresents Friday.
Day.SaturdayRepresents Saturday.

DateTime functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
DateTime.AddZoneAdds the timezonehours as an offset to the input datetime value and returns a new datetimezone value.
DateTime.DateReturns a date part from a DateTime value
DateTime.FixedLocalNowReturns a DateTime value set to the current date and time on the system.
DateTime.FromReturns a datetime value from a value.
DateTime.FromFileTimeReturns a DateTime value from the supplied number.
DateTime.FromTextCreates a datetime from local and universal datetime formats.
DateTime.IsInCurrentHourIndicates whether the given datetime value occurs during the current hour, as determined by the current date and time on the system.
DateTime.IsInCurrentMinuteIndicates whether the given datetime value occurs during the current minute, as determined by the current date and time on the system.
DateTime.IsInCurrentSecondIndicates whether the given datetime value occurs during the current second, as determined by the current date and time on the system.
DateTime.IsInNextHourIndicates whether the given datetime value occurs during the next hour, as determined by the current date and time on the system.
DateTime.IsInNextMinuteIndicates whether the given datetime value occurs during the next minute, as determined by the current date and time on the system.
DateTime.IsInNextNHoursIndicates whether the given datetime value occurs during the next number of hours, as determined by the current date and time on the system.
DateTime.IsInNextNMinutesIndicates whether the given datetime value occurs during the next number of minutes, as determined by the current date and time on the system.
DateTime.IsInNextNSecondsIndicates whether the given datetime value occurs during the next number of seconds, as determined by the current date and time on the system.
DateTime.IsInNextSecondIndicates whether the given datetime value occurs during the next second, as determined by the current date and time on the system.
DateTime.IsInPreviousHourIndicates whether the given datetime value occurs during the previous hour, as determined by the current date and time on the system.
DateTime.IsInPreviousMinuteIndicates whether the given datetime value occurs during the previous minute, as determined by the current date and time on the system.
DateTime.IsInPreviousNHoursIndicates whether the given datetime value occurs during the previous number of hours, as determined by the current date and time on the system.
DateTime.IsInPreviousNMinutesIndicates whether the given datetime value occurs during the previous number of minutes, as determined by the current date and time on the system.
DateTime.IsInPreviousNSecondsIndicates whether the given datetime value occurs during the previous number of seconds, as determined by the current date and time on the system.
DateTime.IsInPreviousSecondIndicates whether the given datetime value occurs during the previous second, as determined by the current date and time on the system.
DateTime.LocalNowReturns a datetime value set to the current date and time on the system.
DateTime.TimeReturns a time part from a DateTime value.
DateTime.ToRecordReturns a record containing parts of a DateTime value.
DateTime.ToTextReturns a text value from a DateTime value.
#datetimeCreates a datetime value from year, month, day, hour, minute, and second.

DateTimeZone functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
DateTimeZone.FixedLocalNowReturns a DateTimeZone value set to the current date, time, and timezone offset on the system.
DateTimeZone.FixedUtcNowReturns the current date and time in UTC (the GMT timezone).
DateTimeZone.FromReturns a datetimezone value from a value.
DateTimeZone.FromFileTimeReturns a DateTimeZone from a number value.
DateTimeZone.FromTextCreates a datetimezone from local, universal, and custom datetimezone formats.
DateTimeZone.LocalNowReturns a DateTime value set to the current system date and time.
DateTimeZone.RemoveZoneReturns a datetime value with the zone information removed from the input datetimezone value.
DateTimeZone.SwitchZoneChanges the timezone information for the input DateTimeZone.
DateTimeZone.ToLocalReturns a DateTime value from the local time zone.
DateTimeZone.ToRecordReturns a record containing parts of a DateTime value.
DateTimeZone.ToTextReturns a text value from a DateTime value.
DateTimeZone.ToUtcReturns a DateTime value to the Utc time zone.
DateTimeZone.UtcNowReturns a DateTime value set to the current system date and time in the Utc timezone.
DateTimeZone.ZoneHoursReturns a time zone hour value from a DateTime value.
DateTimeZone.ZoneMinutesReturns a time zone minute value from a DateTime value.
TimeZone.CurrentReturns the name of the current time zone for the application.
#datetimezoneCreates a datetimezone value from year, month, day, hour, minute, second, offset-hours, and offset-minutes.

Duration functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Duration.DaysReturns the day component of a Duration value.
Duration.FromReturns a duration value from a value.
Duration.FromTextReturns a Duration value from a text value.
Duration.HoursReturns an hour component of a Duration value.
Duration.MinutesReturns a minute component of a Duration value.
Duration.SecondsReturns a second component of a Duration value.
Duration.ToRecordReturns a record with parts of a Duration value.
Duration.TotalDaysReturns the total magnitude of days from a Duration value.
Duration.TotalHoursReturns the total magnitude of hours from a Duration value.
Duration.TotalMinutesReturns the total magnitude of minutes from a Duration value.
Duration.TotalSecondsReturns the total magnitude of seconds from a duration value.
Duration.ToTextReturns a text value from a Duration value.
#durationCreates a duration value from days, hours, minutes, and seconds.

Error handling


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Diagnostics.ActivityIdReturns an opaque identifier for the currently-running evaluation.
Diagnostics.TraceWrites a trace message, if tracing is enabled, and returns value.
Error.RecordReturns a record containing fields “Reason”, “Message”, and “Detail” set to the provided values. The record can be used to raise or throw an error.
TraceLevel.CriticalReturns 1, the value for Critical trace level.
TraceLevel.ErrorReturns 2, the value for Error trace level.
TraceLevel.InformationReturns 4, the value for Information trace level.
TraceLevel.VerboseReturns 5, the value for Verbose trace level.
TraceLevel.WarningReturns 3, the value for Warning trace level.

Expression functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Expression.ConstantReturns the M source code representation of a constant value.
Expression.EvaluateReturns the result of evaluating an M expression.
Expression.IdentifierReturns the M source code representation of an identifier.

Function values


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Function.FromTakes a unary function function and creates a new function with the type functionType that constructs a list out of its arguments and passes it to function.
Function.InvokeInvokes the given function using the specified and returns the result.
Function.InvokeAfterReturns the result of invoking function after duration delay has passed.
Function.IsDataSourceReturns whether or not function is considered a data source.
Function.ScalarVectorReturns a scalar function of type scalarFunctionType that invokes vectorFunction with a single row of arguments and returns its single output.

Lines functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Lines.FromBinaryConverts a binary value to a list of text values split at lines breaks.
Lines.FromTextConverts a text value to a list of text values split at lines breaks.
Lines.ToBinaryConverts a list of text into a binary value using the specified encoding and lineSeparator.The specified lineSeparator is appended to each line. If not specified then the carriage return and line feed characters are used.
Lines.ToTextConverts a list of text into a single text. The specified lineSeparator is appended to each line. If not specified then the carriage return and line feed characters are used.

List functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
List.CountReturns the number of items in a list.
List.NonNullCountReturns the number of items in a list excluding null values
List.IsEmptyReturns whether a list is empty.
List.AlternateReturns a list with the items alternated from the original list based on a count, optional repeatInterval, and an optional offset.
List.BufferBuffers the list in memory. The result of this call is a stable list, which means it will have a determinimic count, and order of items.
List.DistinctFilters a list down by removing duplicates. An optional equation criteria value can be specified to control equality comparison. The first value from each equality group is chosen.
List.FindTextSearches a list of values, including record fields, for a text value.
List.FirstReturns the first value of the list or the specified default if empty. Returns the first item in the list, or the optional default value, if the list is empty. If the list is empty and a default value is not specified, the function returns.
List.FirstNReturns the first set of items in the list by specifying how many items to return or a qualifying condition provided by countOrCondition.
List.InsertRangeInserts items from values at the given index in the input list.
List.IsDistinctReturns whether a list is distinct.
List.LastReturns the last set of items in the list by specifying how many items to return or a qualifying condition provided by countOrCondition.
List.LastNReturns the last set of items in a list by specifying how many items to return or a qualifying condition.
List.MatchesAllReturns true if all items in a list meet a condition.
List.MatchesAnyReturns true if any item in a list meets a condition.
List.PositionsReturns a list of positions for an input list.
List.RangeReturns a count items starting at an offset.
List.SelectSelects the items that match a condition.
List.SingleReturns the single item of the list or throws an Expression.Error if the list has more than one item.
List.SingleOrDefaultReturns a single item from a list.
List.SkipSkips the first item of the list. Given an empty list, it returns an empty list. This function takes an optional parameter countOrCondition to support skipping multiple values.
List.AccumulateAccumulates a result from the list. Starting from the initial value seed this function applies the accumulator function and returns the final result.
List.CombineMerges a list of lists into single list.
List.ConformToPageReaderThis function is intended for internal use only.
List.RemoveRangeReturns a list that removes count items starting at offset. The default count is 1.
List.RemoveFirstNReturns a list with the specified number of elements removed from the list starting at the first element. The number of elements removed depends on the optional countOrCondition parameter.
List.RemoveItemsRemoves items from list1 that are present in list2, and returns a new list.
List.RemoveLastNReturns a list with the specified number of elements removed from the list starting at the last element. The number of elements removed depends on the optional countOrCondition parameter.
List.RepeatReturns a list that repeats the contents of an input list count times.
List.ReplaceRangeReturns a list that replaces count values in a list with a replaceWith list starting at an index.
List.RemoveMatchingItemsRemoves all occurrences of the given values in the list.
List.RemoveNullsRemoves null values from a list.
List.ReplaceMatchingItemsReplaces occurrences of existing values in the list with new values using the provided equationCriteria. Old and new values are provided by the replacements parameters. An optional equation criteria value can be specified to control equality comparisons. For details of replacement operations and equation criteria, see Parameter Values.
List.ReplaceValueSearches a list of values for the value and replaces each occurrence with the replacement value.
List.ReverseReturns a list that reverses the items in a list.
List.SplitSplits the specified list into a list of lists using the specified page size.
List.TransformPerforms the function on each item in the list and returns the new list.
List.TransformManyReturns a list whose elements are projected from the input list.
List.AllTrueReturns true if all expressions in a list are true
List.AnyTrueReturns true if any expression in a list in true
List.ContainsReturns true if a value is found in a list.
List.ContainsAllReturns true if all items in values are found in a list.
List.ContainsAnyReturns true if any item in values is found in a list.
List.PositionOfFinds the first occurrence of a value in a list and returns its position.
List.PositionOfAnyFinds the first occurrence of any value in values and returns its position.
List.DifferenceReturns the items in list 1 that do not appear in list 2. Duplicate values are supported.
List.IntersectReturns a list from a list of lists and intersects common items in individual lists. Duplicate values are supported.
List.UnionReturns a list from a list of lists and unions the items in the individual lists. The returned list contains all items in any input lists. Duplicate values are matched as part of the Union.
List.ZipReturns a list of lists combining items at the same position.
List.MaxReturns the maximum item in a list, or the optional default value if the list is empty.
List.MaxNReturns the maximum values in the list. After the rows are sorted, optional parameters may be specified to further filter the result
List.MedianReturns the median item from a list.
List.MinReturns the minimum item in a list, or the optional default value if the list is empty.
List.MinNReturns the minimum values in a list.
List.SortReturns a sorted list using comparison criterion.
List.PercentileReturns one or more sample percentiles corresponding to the given probabilities.
PercentileMode.ExcelExcWhen interpolating values for List.Percentile, use a method compatible with Excel's PERCENTILE.EXC.
PercentileMode.ExcelIncWhen interpolating values for List.Percentile, use a method compatible with Excel's PERCENTILE.INC.
PercentileMode.SqlContWhen interpolating values for List.Percentile, use a method compatible with SQL Server's PERCENTILE_CONT.
PercentileMode.SqlDiscWhen interpolating values for List.Percentile, use a method compatible with SQL Server's PERCENTILE_DISC.
List.AverageReturns an average value from a list in the datatype of the values in the list.
List.ModeReturns an item that appears most commonly in a list.
List.ModesReturns all items that appear with the same maximum frequency.
List.StandardDeviationReturns the standard deviation from a list of values. List.StandardDeviation performs a sample based estimate. The result is a number for numbers, and a duration for DateTimes and Durations.
List.SumReturns the sum from a list.
List.CovarianceReturns the covariance from two lists as a number.
List.ProductReturns the product from a list of numbers.
List.DatesReturns a list of date values from size count, starting at start and adds an increment to every value.
List.DateTimesReturns a list of datetime values from size count, starting at start and adds an increment to every value.
List.DateTimeZonesReturns a list of of datetimezone values from size count, starting at start and adds an increment to every value.
List.DurationsReturns a list of durations values from size count, starting at start and adds an increment to every value.
List.GenerateGenerates a list from a value function, a condition function, a next function, and an optional transformation function on the values.
List.NumbersReturns a list of numbers from size count starting at initial, and adds an increment. The increment defaults to 1.
List.RandomReturns a list of count random numbers, with an optional seed parameter.
List.TimesReturns a list of time values of size count, starting at start.

Logical functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Logical.FromReturns a logical value from a value.
Logical.FromTextReturns a logical value of true or false from a text value.
Logical.ToTextReturns a text value from a logical value.

Number functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Number.EReturns 2.7182818284590451, the value of e up to 16 decimal digits.
Number.EpsilonReturns the smallest possible number.
Number.NaNRepresents 0/0.
Number.NegativeInfinityRepresents -1/0.
Number.PIReturns 3.1415926535897931, the value for Pi up to 16 decimal digits.
Number.PositiveInfinityRepresents 1/0.
Number.IsEvenReturns true if a value is an even number.
Number.IsNaNReturns true if a value is Number.NaN.
Number.IsOddReturns true if a value is an odd number.
Byte.FromReturns a 8-bit integer number value from the given value.
Currency.FromReturns a currency value from the given value.
Decimal.FromReturns a decimal number value from the given value.
Double.FromReturns a Double number value from the given value.
Int8.FromReturns a signed 8-bit integer number value from the given value.
Int16.FromReturns a 16-bit integer number value from the given value.
Int32.FromReturns a 32-bit integer number value from the given value.
Int64.FromReturns a 64-bit integer number value from the given value.
Number.FromReturns a number value from a value.
Number.FromTextReturns a number value from a text value.
Number.ToTextReturns a text value from a number value.
Percentage.FromReturns a percentage value from the given value.
Single.FromReturns a Single number value from the given value.
Number.RoundReturns a nullable number (n) if value is an integer.
Number.RoundAwayFromZeroReturns Number.RoundUp(value) when value >= 0 and Number.RoundDown(value) when value < 0.
Number.RoundDownReturns the largest integer less than or equal to a number value.
Number.RoundTowardZeroReturns Number.RoundDown(x) when x >= 0 and Number.RoundUp(x) when x < 0.
Number.RoundUpReturns the larger integer greater than or equal to a number value.
Number.AbsReturns the absolute value of a number.
Number.CombinationsReturns the number of combinations of a given number of items for the optional combination size.
Number.ExpReturns a number representing e raised to a power.
Number.FactorialReturns the factorial of a number.
Number.IntegerDivideDivides two numbers and returns the whole part of the resulting number.
Number.LnReturns the natural logarithm of a number.
Number.LogReturns the logarithm of a number to the base.
Number.Log10Returns the base-10 logarithm of a number.
Number.ModDivides two numbers and returns the remainder of the resulting number.
Number.PermutationsReturns the number of total permutatons of a given number of items for the optional permutation size.
Number.PowerReturns a number raised by a power.
Number.SignReturns 1 for positive numbers, -1 for negative numbers or 0 for zero.
Number.SqrtReturns the square root of a number.
Number.RandomReturns a random fractional number between 0 and 1.
Number.RandomBetweenReturns a random number between the two given number values.
Number.AcosReturns the arccosine of a number.
Number.AsinReturns the arcsine of a number.
Number.AtanReturns the arctangent of a number.
Number.Atan2Returns the arctangent of the division of two numbers.
Number.CosReturns the cosine of a number.
Number.CoshReturns the hyperbolic cosine of a number.
Number.SinReturns the sine of a number.
Number.SinhReturns the hyperbolic sine of a number.
Number.TanReturns the tangent of a number.
Number.TanhReturns the hyperbolic tangent of a number.
Number.BitwiseAndReturns the result of a bitwise AND operation on the provided operands.
Number.BitwiseNotReturns the result of a bitwise NOT operation on the provided operands.
Number.BitwiseOrReturns the result of a bitwise OR operation on the provided operands.
Number.BitwiseShiftLeftReturns the result of a bitwise shift left operation on the operands.
Number.BitwiseShiftRightReturns the result of a bitwise shift right operation on the operands.
Number.BitwiseXorReturns the result of a bitwise XOR operation on the provided operands.
RoundingMode.AwayFromZeroRound away from zero when there is a tie between the possible numbers to round to.
RoundingMode.DownRound down when there is a tie between the possible numbers to round to.
RoundingMode.ToEvenRound to the nearest even number when there is a tie between the possible numbers to round to.
RoundingMode.TowardZeroRound toward zero when there is a tie between the possible numbers to round to.
RoundingMode.UpRound up when there is a tie between the possible numbers to round to.

Record functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Record.FieldCountReturns the number of fields in a record.
Record.HasFieldsReturns true if the field name or field names are present in a record.
Geography.FromWellKnownTextTranslates text representing a geographic value in Well-Known Text (WKT) format into a structured record.
Geography.ToWellKnownTextTranslates a structured geographic point value into its Well-Known Text (WKT) representation.
GeographyPoint.FromCreates a record representing a geographic point from parts.
Geometry.FromWellKnownTextTranslates text representing a geometric value in Well-Known Text (WKT) format into a structured record.
Geometry.ToWellKnownTextTranslates a structured geometric point value into its Well-Known Text (WKT) representation.
GeometryPoint.FromCreates a record representing a geometric point from parts.
Record.AddFieldAdds a field from a field name and value.
Record.CombineCombines the records in a list.
Record.RemoveFieldsReturns a new record that reorders the given fields with respect to each other. Any fields not specified remain in their original locations.
Record.RenameFieldsReturns a new record that renames the fields specified. The resultant fields will retain their original order. This function supports swapping and chaining field names. However, all target names plus remaining field names must constitute a unique set or an error will occur.
Record.ReorderFieldsReturns a new record that reorders fields relative to each other. Any fields not specified remain in their original locations. Requires two or more fields.
Record.TransformFieldsTransforms fields by applying transformOperations. For more more information about values supported by transformOperations, see Parameter Values.
Record.FieldReturns the value of the given field. This function can be used to dynamically create field lookup syntax for a given record. In that way it is a dynamic verison of the record[field] syntax.
Record.FieldNamesReturns a list of field names in order of the record's fields.
Record.FieldOrDefaultReturns the value of a field from a record, or the default value if the field does not exist.
Record.FieldValuesReturns a list of field values in order of the record's fields.
Record.SelectFieldsReturns a new record that contains the fields selected from the input record. The original order of the fields is maintained.
Record.FromListReturns a record given a list of field values and a set of fields.
Record.FromTableReturns a record from a table of records containing field names and values.
Record.ToListReturns a list of values containing the field values of the input record.
Record.ToTableReturns a table of records containing field names and values from an input record.

Replacer functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Replacer.ReplaceTextThis function be provided to List.ReplaceValue or Table.ReplaceValue to do replace of text values in list and table values respectively.
Replacer.ReplaceValueThis function be provided to List.ReplaceValue or Table.ReplaceValue to do replace values in list and table values respectively.

Splitter functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Splitter.SplitByNothingReturns a function that does no splitting, returning its argument as a single element list.
Splitter.SplitTextByCharacterTransitionReturns a function that splits text into a list of text according to a transition from one kind of character to another.
Splitter.SplitTextByAnyDelimiterReturns a function that splits text by any supported delimiter.
Splitter.SplitTextByDelimiterReturns a function that will split text according to a delimiter.
Splitter.SplitTextByEachDelimiterReturns a function that splits text by each delimiter in turn.
Splitter.SplitTextByLengthsReturns a function that splits text according to the specified lengths.
Splitter.SplitTextByPositionsReturns a function that splits text according to the specified positions.
Splitter.SplitTextByRangesReturns a function that splits text according to the specified ranges.
Splitter.SplitTextByRepeatedLengthsReturns a function that splits text into a list of text after the specified length repeatedly.
Splitter.SplitTextByWhitespaceReturns a function that splits text according to whitespace.
QuoteStyle.CsvQuote characters indicate the start of a quoted string. Nested quotes are indicated by two quote characters.
QuoteStyle.NoneQuote characters have no significance.

Table functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
ItemExpression.FromReturns the AST for the body of a function.
ItemExpression.ItemAn AST node representing the item in an item expression.
RowExpression.ColumnReturns an AST that represents access to a column within a row expression.
RowExpression.FromReturns the AST for the body of a function.
RowExpression.RowAn AST node representing the row in a row expression.
Table.FromColumnsReturns a table from a list containing nested lists with the column names and values.
Table.FromListConverts a list into a table by applying the specified splitting function to each item in the list.
Table.FromRecordsReturns a table from a list of records.
Table.FromRowsCreates a table from the list where each element of the list is a list that contains the column values for a single row.
Table.FromValueReturns a table with a column containing the provided value or list of values.
Table.FuzzyGroupGroups the rows of a table by fuzzily matching values in the specified column for each row.
Table.FuzzyJoinJoins the rows from the two tables that fuzzy match based on the given keys.
Table.FuzzyNestedJoinPerforms a fuzzy join between tables on supplied columns and produces the join result in a new column.
Table.SplitSplits the specified table into a list of tables using the specified page size.
Table.ViewCreates or extends a table with user-defined handlers for query and action operations.
Table.ViewFunctionCreates a function that can be intercepted by a handler defined on a view (via Table.View).
Table.ToColumnsReturns a list of nested lists each representing a column of values in the input table.
Table.ToListReturns a table into a list by applying the specified combining function to each row of values in a table.
Table.ToRecordsReturns a list of records from an input table.
Table.ToRowsReturns a nested list of row values from an input table.
Table.ApproximateRowCountReturns the approximate number of rows in the table.
Table.ColumnCountReturns the number of columns in a table.
Table.IsEmptyReturns true if the table does not contain any rows.
Table.ProfileReturns a profile of the columns of a table.
Table.RowCountReturns the number of rows in a table.
Table.SchemaReturns a table containing a description of the columns (i.e. the schema) of the specified table.
Tables.GetRelationshipsReturns the relationships among a set of tables.
Table.AlternateRowsReturns a table containing an alternating pattern of the rows from a table.
Table.CombineReturns a table that is the result of merging a list of tables. The tables must all have the same row type structure.
Table.FindTextReturns a table containing only the rows that have the specified text within one of their cells or any part thereof.
Table.FirstReturns the first row from a table.
Table.FirstNReturns the first row(s) of a table, depending on the countOrCondition parameter.
Table.FirstValueReturns the first column of the first row of the table or a specified default value.
Table.FromPartitionsReturns a table that is the result of combining a set of partitioned tables into new columns. The type of the column can optionally be specified, the default is any.
Table.InsertRowsReturns a table with the list of rows inserted into the table at an index. Each row to insert must match the row type of the table..
Table.LastReturns the last row of a table.
Table.LastNReturns the last row(s) from a table, depending on the countOrCondition parameter.
Table.MatchesAllRowsReturns true if all of the rows in a table meet a condition.
Table.MatchesAnyRowsReturns true if any of the rows in a table meet a condition.
Table.PartitionPartitions the table into a list of groups number of tables, based on the value of the column of each row and a hash function. The hash function is applied to the value of the column of a row to obtain a hash value for the row. The hash value modulo groups determines in which of the returned tables the row will be placed.
Table.PartitionValuesReturns information about how a table is partitioned.
Table.RangeReturns the specified number of rows from a table starting at an offset.
Table.RemoveFirstNReturns a table with the specified number of rows removed from the table starting at the first row. The number of rows removed depends on the optional countOrCondition parameter.
Table.RemoveLastNReturns a table with the specified number of rows removed from the table starting at the last row. The number of rows removed depends on the optional countOrCondition parameter.
Table.RemoveRowsReturns a table with the specified number of rows removed from the table starting at an offset.
Table.RemoveRowsWithErrorsReturns a table with all rows removed from the table that contain an error in at least one of the cells in a row.
Table.RepeatReturns a table containing the rows of the table repeated the count number of times.
Table.ReplaceRowsReturns a table where the rows beginning at an offset and continuing for count are replaced with the provided rows.
Table.ReverseRowsReturns a table with the rows in reverse order.
Table.SelectRowsReturns a table containing only the rows that match a condition.
Table.SelectRowsWithErrorsReturns a table with only the rows from table that contain an error in at least one of the cells in a row.
Table.SingleRowReturns a single row from a table.
Table.SkipReturns a table that does not contain the first row or rows of the table.
Table.SplitAtReturns a list containing the first count rows specified and the remaining rows.
Table.ColumnReturns the values from a column in a table.
Table.ColumnNamesReturns the names of columns from a table.
Table.ColumnsOfTypeReturns a list with the names of the columns that match the specified types.
Table.DemoteHeadersDemotes the header row down into the first row of a table.
Table.DuplicateColumnDuplicates a column with the specified name. Values and type are copied from the source column.
Table.HasColumnsReturns true if a table has the specified column or columns.
Table.PivotGiven a table and attribute column containing pivotValues, creates new columns for each of the pivot values and assigns them values from the valueColumn. An optional aggregationFunction can be provided to handle multiple occurrence of the same key value in the attribute column.
Table.PrefixColumnsReturns a table where the columns have all been prefixed with a text value.
Table.PromoteHeadersPromotes the first row of the table into its header or column names.
Table.RemoveColumnsReturns a table without a specific column or columns.
Table.ReorderColumnsReturns a table with specific columns in an order relative to one another.
Table.RenameColumnsReturns a table with the columns renamed as specified.
Table.SelectColumnsReturns a table that contains only specific columns.
Table.TransformColumnNamesTransforms column names by using the given function.
Table.UnpivotGiven a list of table columns, transforms those columns into attribute-value pairs.
Table.UnpivotOtherColumnsTranslates all columns other than a specified set into attribute-value pairs, combined with the rest of the values in each row.
JoinKind.InnerA possible value for the optional JoinKind parameter in Table.Join. The table resulting from an inner join contains a row for each pair of rows from the specified tables that were determined to match based on the specified key columns.
JoinKind.LeftOuterA possible value for the optional JoinKind parameter in Table.Join. A left outer join ensures that all rows of the first table appear in the result.
JoinKind.RightOuterA possible value for the optional JoinKind parameter in Table.Join. A right outer join ensures that all rows of the second table appear in the result.
JoinKind.FullOuterA possible value for the optional JoinKind parameter in Table.Join. A full outer join ensures that all rows of both tables appear in the result. Rows that did not have a match in the other table are joined with a default row containing null values for all of its columns.
JoinKind.LeftAntiA possible value for the optional JoinKind parameter in Table.Join. A left anti join returns that all rows from the first table which do not have a match in the second table.
JoinKind.RightAntiA possible value for the optional JoinKind parameter in Table.Join. A right anti join returns that all rows from the second table which do not have a match in the first table.
MissingField.ErrorAn optional parameter in record and table functions indicating that missing fields should result in an error. (This is the default parameter value.)
MissingField.IgnoreAn optional parameter in record and table functions indicating that missing fields should be ignored.
MissingField.UseNullAn optional parameter in record and table functions indicating that missing fields should be included as null values.
GroupKind.GlobalA global group is formed from all rows in an input table with the same key value.
GroupKind.LocalA local group is formed from a consecutive sequence of rows from an input table with the same key value.
ExtraValues.ListIf the splitter function returns more columns than the table expects, they should be collected into a list.
ExtraValues.IgnoreIf the splitter function returns more columns than the table expects, they should be ignored.
ExtraValues.ErrorIf the splitter function returns more columns than the table expects, an error should be raised.
JoinAlgorithm.DynamicAutomatically chooses a join algorithm based on inspecting the initial rows and metadata of both tables.
JoinAlgorithm.PairwiseHashBuffers the rows of both the left and right tables until one of the tables is completely buffered, and then performs a LeftHash or RightHash, depending on which table was buffered completely. This algorithm is recommended only for small tables.
JoinAlgorithm.SortMergePerforms a streaming merge based on the assumption that both tables are sorted by their join keys. While efficient, it will return incorrect results if the tables aren't sorted as expected.
JoinAlgorithm.LeftHashBuffers the left rows into a lookup table and streams the right rows. For each right row, the matching left rows are found via the buffered lookup table. This algorithm is recommended when the left table is small and most of the rows from the right table are expected to match a left row.
JoinAlgorithm.RightHashBuffers the right rows into a lookup table and streams the left rows. For each left row, the matching right rows are found via the buffered lookup table. This algorithm is recommended when the right table is small and most of the rows from the left table are expected to match a right row.
JoinAlgorithm.LeftIndexIn batches, uses the keys from the left table to do predicate-based queries against the right table. This algorithm is recommended when the right table is large, supports folding of Table.SelectRows, and contains few rows that are expected to match a left row.
JoinAlgorithm.RightIndexIn batches, uses the keys from the right table to do predicate-based queries against the left table. This algorithm is recommended when the left table is large, supports folding of Table.SelectRows, and contains few rows that are expected to match a right row.
JoinSide.LeftSpecifies the left table of a join.
JoinSide.RightSpecifies the right table of a join.
JoinSide.LeftSpecifies the left table of a join.
JoinSide.RightSpecifies the right table of a join.
Table.AddColumnAdds a column named newColumnName to a table.
Table.AddFuzzyClusterColumnAdds a new column with representative values obtained by fuzzy grouping values of the specified column in the table.
Table.AddIndexColumnReturns a table with a new column with a specific name that, for each row, contains an index of the row in the table.
Table.AddJoinColumnPerforms a nested join between table1 and table2 from specific columns and produces the join result as a newColumnName column for each row of table1.
Table.AddKeyAdd a key to table.
Table.AggregateTableColumnAggregates tables nested in a specific column into multiple columns containing aggregate values for those tables.
Table.CombineColumnsTable.CombineColumns merges columns using a combiner function to produce a new column. Table.CombineColumns is the inverse of Table.SplitColumns.
Table.CombineColumnsToRecordCombines the specified columns into a new record-valued column where each record has field names and values corresponding to the column names and values of the columns that were combined.
Table.ConformToPageReaderThis function is intended for internal use only.
Table.ExpandListColumnGiven a column of lists in a table, create a copy of a row for each value in its list.
Table.ExpandRecordColumnExpands a column of records into columns with each of the values.
Table.ExpandTableColumnExpands a column of records or a column of tables into multiple columns in the containing table.
Table.FillDownReplaces null values in the specified column or columns of the table with the most recent non-null value in the column.
Table.FillUpReturns a table from the table specified where the value of the next cell is propagated to the null values cells above in the column specified.
Table.FilterWithDataTableThis function is intended for internal use only.
Table.GroupGroups table rows by the values of key columns for each row.
Table.JoinJoins the rows of table1 with the rows of table2 based on the equality of the values of the key columns selected by table1, key1 and table2, key2.
Table.KeysReturns a list of key column names from a table.
Table.NestedJoinJoins the rows of the tables based on the equality of the keys. The results are entered into a new column.
Table.ReplaceErrorValuesReplaces the error values in the specified columns with the corresponding specified value.
Table.ReplaceKeysReturns a new table with new key information set in the keys argument.
Table.ReplaceRelationshipIdentityNo Description Provided. Click here to go to the documentation page.
Table.ReplaceValueReplaces oldValue with newValue in specific columns of a table, using the provided replacer function, such as text.Replace or Value.Replace.
Table.SplitColumnReturns a new set of columns from a single column applying a splitter function to each value.
Table.TransformColumnsTransforms columns from a table using a function.
Table.TransformColumnTypesTransforms the column types from a table using a type.
Table.TransformRowsTransforms the rows from a table using a transform function.
Table.TransposeReturns a table with columns converted to rows and rows converted to columns from the input table.
Table.ContainsDetermines whether the a record appears as a row in the table.
Table.ContainsAllDetermines whether all of the specified records appear as rows in the table.
Table.ContainsAnyDetermines whether any of the specified records appear as rows in the table.
Table.DistinctRemoves duplicate rows from a table, ensuring that all remaining rows are distinct.
Table.IsDistinctDetermines whether a table contains only distinct rows.
Table.PositionOfDetermines the position or positions of a row within a table.
Table.PositionOfAnyDetermines the position or positions of any of the specified rows within the table.
Table.RemoveMatchingRowsRemoves all occurrences of rows from a table.
Table.ReplaceMatchingRowsReplaces specific rows from a table with the new rows.
Table.MaxReturns the largest row or rows from a table using a comparisonCriteria.
Table.MaxNReturns the largest N rows from a table. After the rows are sorted, the countOrCondition parameter must be specified to further filter the result.
Table.MinReturns the smallest row or rows from a table using a comparisonCriteria.
Table.MinNReturns the smallest N rows in the given table. After the rows are sorted, the countOrCondition parameter must be specified to further filter the result.
Table.SortSorts the rows in a table using a comparisonCriteria or a default ordering if one is not specified.
Table.BufferBuffers a table into memory, isolating it from external changes during evaluation.

Text functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Text.InferNumberTypeInfers the granular number type (Int64.Type, Double.Type, and so on) of a number encoded in text.
Text.LengthReturns the number of characters in a text value.
Character.FromNumberReturns a number to its character value.
Character.ToNumberReturns a character to its number value.
Guid.FromReturns a Guid.Type value from the given value.
Json.FromValueProduces a JSON representation of a given value.
Text.FromReturns the text representation of a number, date, time, datetime, datetimezone, logical, duration or binary value. If a value is null, Text.From returns null. The optional culture parameter is used to format the text value according to the given culture.
Text.FromBinaryDecodes data from a binary value in to a text value using an encoding.
Text.NewGuidReturns a Guid value as a text value.
Text.ToBinaryEncodes a text value into binary value using an encoding.
Text.ToListReturns a list of characters from a text value.
Value.FromTextDecodes a value from a textual representation, value, and interprets it as a value with an appropriate type. Value.FromText takes a text value and returns a number, a logical value, a null value, a DateTime value, a Duration value, or a text value. The empty text value is interpreted as a null value.
Text.AtReturns a character starting at a zero-based offset.
Text.MiddleReturns the substring up to a specific length.
Text.RangeReturns a number of characters from a text value starting at a zero-based offset and for count number of characters.
Text.StartReturns the count of characters from the start of a text value.
Text.EndReturns the number of characters from the end of a text value.
Text.InsertReturns a text value with newValue inserted into a text value starting at a zero-based offset.
Text.RemoveRemoves all occurrences of a character or list of characters from a text value. The removeChars parameter can be a character value or a list of character values.
Text.RemoveRangeRemoves count characters at a zero-based offset from a text value.
Text.ReplaceReplaces all occurrences of a substring with a new text value.
Text.ReplaceRangeReplaces length characters in a text value starting at a zero-based offset with the new text value.
Text.SelectSelects all occurrences of the given character or list of characters from the input text value.
Text.ContainsReturns true if a text value substring was found within a text value string; otherwise, false.
Text.EndsWithReturns a logical value indicating whether a text value substring was found at the end of a string.
Text.PositionOfReturns the first occurrence of substring in a string and returns its position starting at startOffset.
Text.PositionOfAnyReturns the first occurrence of a text value in list and returns its position starting at startOffset.
Text.StartsWithReturns a logical value indicating whether a text value substring was found at the beginning of a string.
Text.AfterDelimiterReturns the portion of text after the specified delimiter.
Text.BeforeDelimiterReturns the portion of text before the specified delimiter.
Text.BetweenDelimitersReturns the portion of text between the specified startDelimiter and endDelimiter.
Text.CleanReturns the original text value with non-printable characters removed.
Text.CombineReturns a text value that is the result of joining all text values with each value separated by a separator.
Text.LowerReturns the lowercase of a text value.
Text.PadEndReturns a text value padded at the end with pad to make it at least length characters.
Text.PadStartReturns a text value padded at the beginning with pad to make it at least length characters. If pad is not specified, whitespace is used as pad.
Text.ProperReturns a text value with first letters of all words converted to uppercase.
Text.RepeatReturns a text value composed of the input text value repeated a number of times.
Text.ReverseReverses the provided text.
Text.SplitReturns a list containing parts of a text value that are delimited by a separator text value.
Text.SplitAnyReturns a list containing parts of a text value that are delimited by any separator text values.
Text.TrimRemoves any occurrences of characters in trimChars from text.
Text.TrimEndRemoves any occurrences of the characters specified in trimChars from the end of the original text value.
Text.TrimStartRemoves any occurrences of the characters in trimChars from the start of the original text value.
Text.UpperReturns the uppercase of a text value.
Occurrence.AllA list of positions of all occurrences of the found values is returned.
Occurrence.FirstThe position of the first occurrence of the found value is returned.
Occurrence.LastThe position of the last occurrence of the found value is returned.
RelativePosition.FromEndIndicates indexing should be done from the end of the input.
RelativePosition.FromStartIndicates indexing should be done from the start of the input.
TextEncoding.AsciiUse to choose the ASCII binary form.
TextEncoding.BigEndianUnicodeUse to choose the UTF16 big endian binary form.
TextEncoding.UnicodeUse to choose the UTF16 little endian binary form.
TextEncoding.Utf8Use to choose the UTF8 binary form.
TextEncoding.Utf16Use to choose the UTF16 little endian binary form.
TextEncoding.WindowsUse to choose the Windows binary form.

Time functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Time.EndOfHourReturns a DateTime value from the end of the hour.
Time.FromReturns a time value from a value.
Time.FromTextCreates a Time from local, universal, and custom Time formats.
Time.HourReturns an hour value from a DateTime value.
Time.MinuteReturns a minute value from a DateTime value.
Time.SecondReturns a second value from a DateTime value
Time.StartOfHourReturns the first value of the hour from a time value.
Time.ToRecordReturns a record containing parts of a Date value.
Time.ToTextReturns a text value from a Time value.
#timeCreates a time value from hour, minute, and second.

Type functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Type.AddTableKeyAdd a key to a table type.
Type.ClosedRecordThe given type must be a record type returns a closed version of the given record type (or the same type, if it is already closed)
Type.FacetsReturns the facets of a type.
Type.ForFunctionCreates a function type from the given .
Type.ForRecordReturns a Record type from a fields record.
Type.FunctionParametersReturns a record with field values set to the name of the parameters of a function type, and their values set to their corresponding types.
Type.FunctionRequiredParametersReturns a number indicating the minimum number of parameters required to invoke the a type of function.
Type.FunctionReturnReturns a type returned by a function type.
Type.IsDetermines if a value of the first type is always compatible with the second type.
Type.IsNullableReturns true if a type is a nullable type; otherwise, false.
Type.IsOpenRecordReturns whether a record type is open.
Type.ListItemReturns an item type from a list type.
Type.NonNullableReturns the non nullable type from a type.
Type.OpenRecordReturns an opened version of a record type, or the same type, if it is already open.
Type.RecordFieldsReturns a record describing the fields of a record type with each field of the returned record type having a corresponding name and a value that is a record of the form [ Type = type, Opional = logical ].
Type.ReplaceFacetsReplaces the facets of a type.
Type.ReplaceTableKeysReplaces the keys in a table type.
Type.TableColumnReturns the type of a column in a table.
Type.TableKeysReturns keys from a table type.
Type.TableRowReturns a row type from a table type.
Type.TableSchemaReturns a table containing a description of the columns (i.e. the schema) of the specified table type.
Type.UnionReturns the union of a list of types.

Uri functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Uri.BuildQueryStringAssemble a record into a URI query string.
Uri.CombineReturns a Uri based on the combination of the base and relative parts.
Uri.EscapeDataStringEncodes special characters in accordance with RFC 3986.
Uri.PartsReturns a record value with the fields set to the parts of a Uri text value.

Value functions


Accessing data functions | Binary functions | Combiner functions | Comparer functions | Date functions | DateTime functions | DateTimeZone functions | Duration functions | Error handling | Expression functions | Function values | Lines functions | List functions | Logical functions | Number functions | Record functions | Replacer functions | Splitter functions | Table functions | Text functions | Time functions | Type functions | Uri functions | Value functions |


Function nameType and description
Value.AlternateExpresses alternate query plans.
Value.CompareReturns 1, 0, or -1 based on value1 being greater than, equal to, or less than the value2. An optional comparer function can be provided.
Value.EqualsReturns whether two values are equal.
Value.ExpressionReturns an AST that represents the value's expression.
Value.NativeQueryEvaluates a query against a target.
Value.NullableEqualsReturns a logical value or null based on two values .
Value.OptimizeIf value represents a query that can be optimized, returns the optimized query. Otherwise returns value.
Value.TypeReturns the type of the given value.
Value.AddReturns the sum of the two values.
Value.DivideReturns the result of dividing the first value by the second.
Value.MultiplyReturns the product of the two values.
Value.SubtractReturns the difference of the two values.
Precision.DoubleAn optional parameter for the built-in arthimetic operators to specify double precision.
Precision.DecimalAn optional parameter for the built-in arthimetic operators to specify decimal precision.
Value.AsReturns the value if it is compatible with the specified type.
Value.IsDetermines whether a value is compatible with the specified type.
Value.ReplaceTypeA value may be ascribed a type using Value.ReplaceType. Value.ReplaceType either returns a new value with the type ascribed or raises an error if the new type is incompatible with the value’s native primitive type. In particular, the function raises an error when an attempt is made to ascribe an abstract type, such as any. When replacing a the type of a record, the new type must have the same number of fields, and the new fields replace the old fields by ordinal position, not by name. Similarly, when replacing the type of a table, the new type must have the same number of columns, and the new columns replace the old columns by ordinal position.
DirectQueryCapabilities.FromThis function is intended for internal use only.
Embedded.ValueAccesses a value by name in an embedded mashup.
Excel.ShapeTableThis function is intended for internal use only.
Value.FirewallThis function is intended for internal use only.
Variable.ValueThis function is intended for internal use only.
SqlExpression.SchemaFromThis function is intended for internal use only.
SqlExpression.ToExpressionThis function is intended for internal use only.
Value.MetadataReturns a record containing the input’s metadata.
Value.RemoveMetadataRemoves the metadata on the value and returns the original value.
Value.ReplaceMetadataReplaces the metadata on a value with the new metadata record provided and returns the original value with the new metadata attached.
Graph.NodesThis function is intended for internal use only.
Value.LineageThis function is intended for internal use only.
Value.TraitsThis function is intended for internal use only.