# How to add other dimension column which is not used in DQL to split?

**URL:** <https://community.dynatrace.com/t/how-to-add-other-dimension-column-which-is-not-used-in-dql-to-split/53317>\
**Category:** DQL\
**Tags:** dql, problem-detection, anomaly-detection, problems\
**Created:** [September 12, 2025, 5:09am UTC](https://community.dynatrace.com/t/how-to-add-other-dimension-column-which-is-not-used-in-dql-to-split/53317 "2025-09-12T05:09:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![O11y\_Noob](https://avatars.discourse-cdn.com/v4/letter/o/9fc348/32.png) [@O11y\_Noob](https://community.dynatrace.com/u/O11y_Noob)\
**Post date:** [September 12, 2025, 5:09am UTC](https://community.dynatrace.com/t/how-to-add-other-dimension-column-which-is-not-used-in-dql-to-split/53317/1 "2025-09-12T05:09:13Z")

</div>

timeseries { count(`unexpecteddowntime`), value.A = avg(`unexpecteddowntime`) }, by: {`site` }  
| fieldsAdd arrayAvg(`count(\`unexpecteddowntime\`)`)  
| filter value.A \> 30

i am trying to alert whenever the unexpecteddowntime goes above 30 on certain units and group it to site level to avoid multiple alert for same site , but i want to list the units in the email , how can i add it to the DQL ,&nbsp;unexpecteddowntime is the metric key and site , units are dims

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [September 15, 2025, 12:51pm UTC](https://community.dynatrace.com/t/how-to-add-other-dimension-column-which-is-not-used-in-dql-to-split/53317/2 "2025-09-15T12:51:58Z")

</div>

You can try this:

```javascript
timeseries v = avg(unexpecteddowntime), by: {site, unit}
| summarize {
site_series = avg(v[]), 
units = collectDistinct(unit) 
}, by: {site, timeframe, interval} 
| filter arrayMax(site_series) > 30 
| fieldsAdd units_str = toString(units)

```
