Skip to content

Commit 3daf953

Browse files
DanDitsdittmar
andauthored
feat: support for new measure aggregation types (#14)
Co-authored-by: dittmar <daniel.dittmar@disy.net>
1 parent c564feb commit 3daf953

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## Unreleased
7+
8+
### Added
9+
- Support for measure aggregation types MEDIAN and STANDARD_DEVIATION_SAMPLE
10+
11+
## 10.4.0 - 2025-12-05
712
### Added
813
- New visual response of type text (TextResponse)
914
- New visual response of type url (UrlResponse)

src/cadenzaanalytics/data/measure_aggregation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22

33

44
class MeasureAggregation(Enum):
5-
"""A class representing various aggregation functions for measures such as count, countDistinct,
6-
sum, average, min and max.
5+
"""A class representing various aggregation functions for measures such as count, count distinct,
6+
sum, average, min, max, median and sample standard deviation.
77
"""
88
COUNT = "count"
99
COUNT_DISTINCT = "countDistinct"
1010
SUM = "sum"
1111
AVERAGE = "average"
1212
MIN = "min"
1313
MAX = "max"
14+
MEDIAN = "median"
15+
STANDARD_DEVIATION_SAMPLE = "stddevSamp"
1416

1517
def __str__(self):
1618
return self.value

0 commit comments

Comments
 (0)