Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion query-languages/m/custom-date-and-time-format-strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ There are two ways to indicate that characters are to be interpreted as literal

### Using single custom format specifiers

A custom date and time format string consists of two or more characters. Date and time formatting methods interpret any single-character string as a standard date and time format string. If they don't recognize the character as a valid format specifier, they throw an expression error. For example, a format string that consists only of the specifier "h" is interpreted as a standard date and time format string. However, in this particular case, an exception is thrown because there is no "h" standard date and time format specifier.
A custom date and time format string consists of two or more characters. Date and time formatting methods interpret any single-character string as a standard date and time format string. If they don't recognize the character as a valid format specifier, they raise an error. For example, a format string that consists only of the specifier "h" is interpreted as a standard date and time format string. However, in this particular case, an error is raised because there is no "h" standard date and time format specifier.

To use any of the custom date and time format specifiers as the only specifier in a format string (that is, to use the "d", "f", "F", "g", "h", "H", "K", "m", "M", "s", "t", "y", "z", ":", or "/" custom format specifier by itself), include a space before or after the specifier, or include a percent ("%") format specifier before the single custom date and time specifier.

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/datetimezone-switchzone.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ DateTimeZone.SwitchZone(

## About

Changes timezone information to on the datetimezone value `dateTimeZone` to the new timezone information provided by `timezoneHours` and optionally `timezoneMinutes`. If `dateTimeZone` does not have a timezone component, an exception is thrown.
Changes timezone information to on the datetimezone value `dateTimeZone` to the new timezone information provided by `timezoneHours` and optionally `timezoneMinutes`. If `dateTimeZone` does not have a timezone component, an error is raised.

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/list-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ These functions create and manipulate list values.
|[List.Positions](list-positions.md)|Returns a list of offsets for the input.|
|[List.Range](list-range.md)|Returns a subset of the list beginning at an offset.|
|[List.Select](list-select.md)|Returns a list of values that match the condition.|
|[List.Single](list-single.md)|Returns the one list item for a list of length one, otherwise throws an exception.|
|[List.Single](list-single.md)|Returns the one list item for a list of length one, otherwise raises an error.|
|[List.SingleOrDefault](list-singleordefault.md)|Returns the one list item for a list of length one and the default value for an empty list.|
|[List.Skip](list-skip.md)|Returns a list that skips the specified number of elements at the beginning of the list.|

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/list-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ List.Mode(<b>list</b> as list, optional <b>equationCriteria</b> as any) as any

## About

Returns the item that appears most frequently in `list`. If the list is empty an exception is thrown. If multiple items appear with the same maximum frequency, the last one is chosen. An optional comparison criteria value, `equationCriteria`, can be specified to control equality testing.
Returns the item that appears most frequently in `list`. If the list is empty an error is raised. If multiple items appear with the same maximum frequency, the last one is chosen. An optional comparison criteria value, `equationCriteria`, can be specified to control equality testing.

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/list-modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ List.Modes(<b>list</b> as list, optional <b>equationCriteria</b> as any) as list

## About

Returns the items that appear most frequently in `list`. If the list is empty an exception is thrown. If multiple items appear with the same maximum frequency, all of them are returned. An optional comparison criteria value, `equationCriteria`, can be specified to control equality testing.
Returns the items that appear most frequently in `list`. If the list is empty an error is raised. If multiple items appear with the same maximum frequency, all of them are returned. An optional comparison criteria value, `equationCriteria`, can be specified to control equality testing.

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/list-single.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ List.Single(<b>list</b> as list) as any

## About

If there is only one item in the list `list`, returns that item. If there is more than one item or the list is empty, the function throws an exception.
If there is only one item in the list `list`, returns that item. If there is more than one item or the list is empty, the function raises an error.

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/list-standarddeviation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ List.StandardDeviation(<b>numbersList</b> as list) as nullable number

## About

Returns a sample based estimate of the standard deviation of the values in the list, `numbersList`. If `numbersList` is a list of numbers, a number is returned. An exception is thrown on an empty list or a list of items that is not type `number`.
Returns a sample based estimate of the standard deviation of the values in the list, `numbersList`. If `numbersList` is a list of numbers, a number is returned. An error is raised on an empty list or a list of items that is not type `number`.

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/logical-fromtext.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Logical.FromText(<b>text</b> as nullable text) as nullable logical

## About

Creates a logical value from the text value `text`, either "true" or "false". If `text` contains a different string, an exception is thrown. The text value `text` is case insensitive.
Creates a logical value from the text value `text`, either "true" or "false". If `text` contains a different string, an error is raised. The text value `text` is case insensitive.

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/logical-totext.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Logical.ToText(<b>logicalValue</b> as nullable logical) as nullable text

## About

Creates a text value from the logical value `logicalValue`, either `true` or `false`. If `logicalValue` is not a logical value, an exception is thrown.
Creates a text value from the logical value `logicalValue`, either `true` or `false`. If `logicalValue` is not a logical value, an error is raised.

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/record-field.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Record.Field(<b>record</b> as record, <b>field</b> as text) as any

## About

Returns the value of the specified `field` in the `record`. If the field is not found, an exception is thrown.
Returns the value of the specified `field` in the `record`. If the field is not found, an error is raised.

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/record-fromtable.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Record.FromTable(<b>table</b> as table) as record

## About

Returns a record from a table of records `table` containing field names and value names `{[Name = name, Value = value]}`. An exception is thrown if the field names are not unique.
Returns a record from a table of records `table` containing field names and value names `{[Name = name, Value = value]}`. An error is raised if the field names are not unique.

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/record-removefields.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Record.RemoveFields(

## About

Returns a record that removes all the fields specified in list `fields` from the input `record`. If the field specified does not exist, an exception is thrown.
Returns a record that removes all the fields specified in list `fields` from the input `record`. If the field specified does not exist, an error is raised.

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/table-renamecolumns.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Table.RenameColumns(

## About

Performs the given renames to the columns in table `table`. A replacement operation `renames` consists of a list of two values, the old column name and new column name, provided in a list. If the column doesn't exist, an exception is thrown unless the optional parameter `missingField` specifies an alternative (eg. [MissingField.UseNull](missingfield-type.md) or [MissingField.Ignore](missingfield-type.md)).
Performs the given renames to the columns in table `table`. A replacement operation `renames` consists of a list of two values, the old column name and new column name, provided in a list. If the column doesn't exist, an error is raised unless the optional parameter `missingField` specifies an alternative (eg. [MissingField.UseNull](missingfield-type.md) or [MissingField.Ignore](missingfield-type.md)).

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/table-reordercolumns.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Table.ReorderColumns(

## About

Returns a table from the input `table`, with the columns in the order specified by `columnOrder`. Columns that are not specified in the list will not be reordered. If the column doesn't exist, an exception is thrown unless the optional parameter `missingField` specifies an alternative (eg. [MissingField.UseNull](missingfield-type.md) or [MissingField.Ignore](missingfield-type.md)).
Returns a table from the input `table`, with the columns in the order specified by `columnOrder`. Columns that are not specified in the list will not be reordered. If the column doesn't exist, an error is raised unless the optional parameter `missingField` specifies an alternative (eg. [MissingField.UseNull](missingfield-type.md) or [MissingField.Ignore](missingfield-type.md)).

## Example 1

Expand Down
2 changes: 1 addition & 1 deletion query-languages/m/table-transformcolumns.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Transforms the specified table by applying each column operation in a list.
* `table`: The table to transform.
* `transformOperations`: The transformations to make to the table. The format of this parameter is either { column name, transformation } or { column name, transformation, new column type }.
* `defaultTransformation`: (Optional) The default transformation applied to all columns not listed in `transformOperations`.
* `missingField`: (Optional) Specifies the expected action for missing values. If a column listed in `transformOperations` doesn't exist, an exception is thrown (`MissingField.Error`) unless this parameter specifies an alternative. Use one of the following values:
* `missingField`: (Optional) Specifies the expected action for missing values. If a column listed in `transformOperations` doesn't exist, an error is raised (`MissingField.Error`) unless this parameter specifies an alternative. Use one of the following values:
* `MissingField.UseNull`: Any missing fields are included as `null` values.
* `MissingField.Ignore`: Any missing fields are ignored.

Expand Down