---
title: separateBySource
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkstatisticsoptions/separatebysource
---

# separateBySource

An option indicating that the system calculates the specified statistics separately for each source.

## Declaration

```swift
static var separateBySource: HKStatisticsOptions { get }
```

## See Also

### Constants

- [discreteAverage](healthkit/hkstatisticsoptions/discreteaverage.md)
- [discreteMin](healthkit/hkstatisticsoptions/discretemin.md)
- [discreteMax](healthkit/hkstatisticsoptions/discretemax.md)
- [cumulativeSum](healthkit/hkstatisticsoptions/cumulativesum.md)
- [mostRecent](healthkit/hkstatisticsoptions/mostrecent.md)
- [duration](healthkit/hkstatisticsoptions/duration.md)
