<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKWorkout/allStatistics",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKWorkout(py)allStatistics"
  },
  "title" : "allStatistics"
}
-->

# allStatistics

A dictionary that contains all the statistics for the workout.

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

## Discussion

HealthKit calculates an [`HKStatistics`](/documentation/HealthKit/HKStatistics) object for each [`HKQuantityType`](/documentation/HealthKit/HKQuantityType), based on the [`HKQuantitySample`](/documentation/HealthKit/HKQuantitySample) objects associated with the containing workout.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)