---
title: HKQuantityAggregationStyle.cumulative
framework: healthkit
role: symbol
role_heading: Case
path: healthkit/hkquantityaggregationstyle/cumulative
---

# HKQuantityAggregationStyle.cumulative

Cumulative samples that can be summed over time.

## Declaration

```swift
case cumulative
```

## Discussion

Discussion Use cumulative types to measure a total value over a given time period. Step count, distance, inhaler usage, nutritional information, and energy burned are all cumulative quantity types.

## See Also

### Aggregation Styles

- [HKQuantityAggregationStyle.discreteArithmetic](healthkit/hkquantityaggregationstyle/discretearithmetic.md)
- [HKQuantityAggregationStyle.discreteTemporallyWeighted](healthkit/hkquantityaggregationstyle/discretetemporallyweighted.md)
- [HKQuantityAggregationStyle.discreteEquivalentContinuousLevel](healthkit/hkquantityaggregationstyle/discreteequivalentcontinuouslevel.md)
