---
title: predicate
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkstatisticscollectionquerydescriptor/predicate
---

# predicate

A predicate that defines the set of data that the query uses to calculate the statistics.

## Declaration

```swift
var predicate: HKSamplePredicate<HKQuantitySample>
```

## See Also

### Accessing Query Properties

- [options](healthkit/hkstatisticscollectionquerydescriptor/options.md)
- [anchorDate](healthkit/hkstatisticscollectionquerydescriptor/anchordate.md)
- [intervalComponents](healthkit/hkstatisticscollectionquerydescriptor/intervalcomponents.md)
