# Display total count for each response code

**URL:** <https://community.dynatrace.com/t/display-total-count-for-each-response-code/54106>\
**Category:** Dashboarding\
**Tags:** dql, dashboards\
**Created:** [November 17, 2025, 4:26pm UTC](https://community.dynatrace.com/t/display-total-count-for-each-response-code/54106 "2025-11-17T16:26:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vchitti](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@vchitti](https://community.dynatrace.com/u/vchitti)\
**Post date:** [November 17, 2025, 4:26pm UTC](https://community.dynatrace.com/t/display-total-count-for-each-response-code/54106/1 "2025-11-17T16:26:42Z")

</div>

timeseries { sum(cloud.gcp.apigee\_googleapis\_com.proxyv2.response\_count),  
value.A = sum(cloud.gcp.apigee\_googleapis\_com.proxyv2.response\_count, scalar: true) },  
by: { response\_code },  
filter: { matchesValue(env, $environment) AND  
in(response\_code, { “200”, “201”, “400”, “401”, “404”, “429”, “500”, “501”, “502”, “503”, “504” } )}

Which breaks down based on response codes . Attached image.

i would like to see the total number of 200s, 201s , 400s etc displayed as label or the count on the bar to avoid the user hovering to see the actual value.

Can you please suggest.

 ![Screenshot 2025-11-17 at 16.24.13.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/2/d24746ab78f9de0531be4da20c8ee1ddda7dd3a4.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:** [November 18, 2025, 6:36pm UTC](https://community.dynatrace.com/t/display-total-count-for-each-response-code/54106/2 "2025-11-18T18:36:27Z")

</div>

What if you change the visualization to pie… you will get the value for each code more visible, and the slices names in the legend.

---

<div class="post-metadata">

**Author:** ![vchitti](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@vchitti](https://community.dynatrace.com/u/vchitti)\
**Post date:** [November 19, 2025, 3:28pm UTC](https://community.dynatrace.com/t/display-total-count-for-each-response-code/54106/3 "2025-11-19T15:28:07Z")

</div>

I have managed to display the count with data mapping , not as a label though. Thanks for your suggestion
