> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Measure.isin()

> @overload\
>
> Measure.isin(\
>
>     *\*values*: Constant,\
>
> ) → MembershipCondition\[MeasureIdentifier, [Literal](https://docs.python.org/3/library/typing.html#typing.Literal)\['IN'], Constant] | RelationalCondition\[MeasureIdentifier, [Literal](https://docs.python.org/3/library/typing.html#typing.Literal)\['EQ'], Constant]

> @overload\
>
> Measure.isin(\
>
>     *\*values*: Constant | [None](https://docs.python.org/3/builtins/constants.html#None),\
>
> ) → MembershipCondition\[MeasureIdentifier, 'IN', Constant | [None](https://docs.python.org/3/builtins/constants.html#None)] | RelationalCondition\[MeasureIdentifier, 'EQ', Constant | [None](https://docs.python.org/3/builtins/constants.html#None)]

Return a condition evaluating to `True` where this measure evaluates to one of the given *values*, and evaluating to `False` elsewhere.

### Parameters

#### *\*values*

One or more values that the measure will be compared against.

***

```pycon theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
>>> df = pd.DataFrame(
...     columns=["City", "Price"],
...     data=[
...         ("Berlin", 150),
...         ("London", 270),
...         ("Madrid", 200),
...     ],
... )
>>> table = session.read_pandas(df, keys={"City"}, table_name="Example")
>>> cube = session.create_cube(table)
>>> m = cube.measures
>>> m["Price.SUM"].isin(150, 270)
m['Price.SUM'].isin(150, 270)
```

Conditions on single values are normalized to equality conditions:

```pycon theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
>>> m["Price.SUM"].isin(150)
m['Price.SUM'] == 150
```
