# Creating summary table with fewer columns

**URL:** <https://community.dynatrace.com/t/creating-summary-table-with-fewer-columns/41749>\
**Category:** Dashboarding\
**Tags:** dashboards\
**Created:** [September 22, 2023, 4:45pm UTC](https://community.dynatrace.com/t/creating-summary-table-with-fewer-columns/41749 "2023-09-22T16:45:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kostellod](https://avatars.discourse-cdn.com/v4/letter/k/22d042/32.png) [@kostellod](https://community.dynatrace.com/u/kostellod)\
**Post date:** [September 22, 2023, 4:45pm UTC](https://community.dynatrace.com/t/creating-summary-table-with-fewer-columns/41749/1 "2023-09-22T16:45:59Z")

</div>

I want to create a summary table that has 2 columns - the first column would be the name of the data, and the second would be the value. These values would be the min / max / average of various metrics over a given time period.  
Or, if this can’t be done, maybe 4 columns  
- the first column to be the name of the metric,  
- the second to be min,  
- the third average,  
- fourth max.

Whenever I try to do this I get a separate column for each calculation, which leads to a table with a lot of blanks in it. Any way to do this?

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [September 22, 2023, 7:15pm UTC](https://community.dynatrace.com/t/creating-summary-table-with-fewer-columns/41749/2 "2023-09-22T19:15:53Z")

</div>

Hi&nbsp;[@kostellod](https://community.dynatrace.com/user/64254),

Can you share the wrong result table? and the mentioned calculations?

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![kostellod](https://avatars.discourse-cdn.com/v4/letter/k/22d042/32.png) [@kostellod](https://community.dynatrace.com/u/kostellod)\
**Post date:** [September 22, 2023, 7:25pm UTC](https://community.dynatrace.com/t/creating-summary-table-with-fewer-columns/41749/3 "2023-09-22T19:25:28Z")

</div>

This would be an example. I want 1 line, left column as “CPU %”, 2nd as “Min”, 3rd as “Avg”, 4th as “Max”. I’d like this for a couple of different metrics in the same table.

 ![Screen Shot 2023-09-22 at 2.21.00 PM.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/ae2ecfc4d9e7739127bd829228e56e2f090f2654.png)

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [September 22, 2023, 7:33pm UTC](https://community.dynatrace.com/t/creating-summary-table-with-fewer-columns/41749/4 "2023-09-22T19:33:49Z")

</div>

Since you are using the same metric, you should include all the tags in the filter for the same query.

 ![Captura de tela 2023-09-22 163646.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/7/4759abed7c542adbaa54bc4f9a20ef924dc11ad0.png)

Example:  
builtin:host.cpu.usage:filter(and(or(in(“dt.entity.host”,entitySelector(“type(host),tag(~“YOUR\_FIRST\_TAG:HERE~”)”)),in(“dt.entity.host”,entitySelector(“type(host),tag(~“YOUR\_SECOND\_TAG:HERE~”)”)),in(“dt.entity.host”,entitySelector(“type(host),tag(~“YOUR\_TIRDH\_TAG:HERE~”)”))))):splitBy(“dt.entity.host”):sort(value(auto,descending)):limit(100)

EDIT:  
In your case, you should create the following queries, using the same formula, just replacing the aggregation you need.

EDIT 2:

I see the problem now. With no ‘split by’ condition, you still get the one line per query… So I think this can be an Idea candidate…
