The case-sensitive endswith_cs string operator

Learn how to use the endswith_cs operator to filter a record set for data with a case-sensitive ending string.

Filters a record set for data with a case-sensitive ending string.

Performance tips

Syntax

T | where col endswith_cs (expression)

Parameters

NameTypeRequiredDescription
Tstring✔️The tabular input whose records are to be filtered.
colstring✔️The column to filter.
expressionstring✔️The expression used to filter.

Returns

Rows in T for which the predicate is true.

Example

StormEvents
| summarize Events = count() by State
| where State endswith_cs "NA"

Output

StateEvents
NORTH CAROLINA1721
MONTANA1230
INDIANA1164
SOUTH CAROLINA915
LOUISIANA463
ARIZONA340