--- id: in title: in Metrics Operator sidebar_label: in description: Use the in metrics operator in query selectors as shorthand for multiple OR conditions, simplifying queries that check if a field matches any value in a list. slug: /help/docs/metrics/metrics-operators/in/ canonical: https://www.sumologic.com/help/docs/metrics/metrics-operators/in/ --- The `in` operator functionality can be used in a metrics query selector as shorthand for multiple OR conditions. ## Syntax ```sql =([, , …]) ``` Where: * `` is one or more metadata key-value pairs or keywords that scope your query. * `` is the field (dimension) you want to match. * `` is the value of dimension that you want to limit your query to. ## Example This example will match time series in which the value of the `dimX` field is one of the strings in the array enclosed in parentheses. ```sql metric=CPU_Total dimX=(123, 345, 567) ```