# Average of a string text variable

**URL:** https://discuss.elastic.co/t/average-of-a-string-text-variable/256166
**Category:** Elasticsearch
**Created:** [November 20, 2020, 5:33pm UTC](https://discuss.elastic.co/t/average-of-a-string-text-variable/256166 "2020-11-20T17:33:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![amitvermancl](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@amitvermancl](https://discuss.elastic.co/u/amitvermancl)
#### Post date: [November 20, 2020, 5:33pm UTC](https://discuss.elastic.co/t/average-of-a-string-text-variable/256166/1 "2020-11-20T17:33:38Z")

</div>

Hi All,

I am new to elastic search SQL , and canvas side of world.  
I have a variable 'message' in which data comes in 't' text format and it has time duration coming in.  
I need to take the average of that variable and need the output to come in "mm:ss" format.

Below is the sample of data that I have in my variable

message t  
00:01:42.3510750  
00:00:58.9317560  
00:03:10.4225445  
00:00:45.8493632

---

<div class="post-metadata">

### Author: ![amitvermancl](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@amitvermancl](https://discuss.elastic.co/u/amitvermancl)
#### Post date: [November 24, 2020, 12:27pm UTC](https://discuss.elastic.co/t/average-of-a-string-text-variable/256166/2 "2020-11-24T12:27:46Z")

</div>

hi all,  
request if someone can help with the above query

---

<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: [December 22, 2020, 12:28pm UTC](https://discuss.elastic.co/t/average-of-a-string-text-variable/256166/3 "2020-12-22T12:28:03Z")

</div>

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