The case-sensitive startswith string operator

Learn how to use the startswith string operator to filter a record set with a case-sensitive string starting sequence.

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

Performance tips

Syntax

T | where col startswith_cs (expression)

Parameters

NameTypeRequiredDescription
Tstring✔️The tabular input to filter.
colstring✔️The column used to filter.
expressionstring✔️The expression by which to filter.

Returns

Rows in T for which the predicate is true.

Example

StormEvents
| summarize event_count=count() by State
| where State startswith_cs "I"
| where event_count > 2000
| project State, event_count

Output

Stateevent_count
IOWA2337
ILLINOIS2022