---
title: allStatistics
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkworkoutactivity/allstatistics
---

# allStatistics

A dictionary that contains all the statistics for the activity.

## Declaration

```swift
var allStatistics: [HKQuantityType : HKStatistics] { get }
```

## Discussion

Discussion HealthKit calculates an HKStatistics object for each HKQuantityType, based on the HKQuantitySample objects associated with the containing workout, and falling within the workout activity’s time frame. Furthermore, if a quantity sample extends beyond the activity’s time frame, HealthKit interpolates a quantity value to represent the portion within the time frame, and uses that value instead.

## See Also

### Accessing workout data

- [uuid](healthkit/hkworkoutactivity/uuid.md)
- [startDate](healthkit/hkworkoutactivity/startdate.md)
- [endDate](healthkit/hkworkoutactivity/enddate.md)
- [duration](healthkit/hkworkoutactivity/duration.md)
- [statistics(for:)](healthkit/hkworkoutactivity/statistics(for:).md)
- [metadata](healthkit/hkworkoutactivity/metadata.md)
- [workoutConfiguration](healthkit/hkworkoutactivity/workoutconfiguration.md)
- [workoutEvents](healthkit/hkworkoutactivity/workoutevents.md)
