# Create a visual traffic light visual by aggregations

**URL:** <https://discuss.elastic.co/t/create-a-visual-traffic-light-visual-by-aggregations/229047>\
**Category:** Elasticsearch\
**Created:** [April 21, 2020, 1:17pm UTC](https://discuss.elastic.co/t/create-a-visual-traffic-light-visual-by-aggregations/229047 "2020-04-21T13:17:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaharzi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaharzi/32/76973_2.png) [@shaharzi](https://discuss.elastic.co/u/shaharzi)\
**Post date:** [April 21, 2020, 1:17pm UTC](https://discuss.elastic.co/t/create-a-visual-traffic-light-visual-by-aggregations/229047/1 "2020-04-21T13:17:40Z")

</div>

hello,

im trying to do a transaction completion traffic light visual, for that im trying to make a DSL query which should give me the total number for success and failed transactions.

for example T1 includes 3 steps. A1,B1,C1, each step has a bit number which sum of all them gives a number. in that way i can knows what completes and what didn't.

example:

success -  
A1=100, B1 = 10, C1 = 1 , the sum of them gives me 111.

fails  
i give 0 (zero)

now if one of them less then 111 i know there was an issue.

some ideas how to visual this? and how can i DSL it?

thanks !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 19, 2020, 1:17pm UTC](https://discuss.elastic.co/t/create-a-visual-traffic-light-visual-by-aggregations/229047/2 "2020-05-19T13:17:46Z")

</div>

Closed on May 19, 2020, 1:17pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
