# Transform percentage value

**URL:** https://discuss.elastic.co/t/transform-percentage-value/175917
**Category:** Kibana
**Created:** [April 8, 2019, 8:21pm UTC](https://discuss.elastic.co/t/transform-percentage-value/175917 "2019-04-08T20:21:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Alberto\_Llamas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alberto_llamas/32/43705_2.png) [@Alberto\_Llamas](https://discuss.elastic.co/u/Alberto_Llamas)
#### Post date: [April 8, 2019, 8:21pm UTC](https://discuss.elastic.co/t/transform-percentage-value/175917/1 "2019-04-08T20:21:23Z")

</div>

Hi Guys,

I have an action using a percentage value that is showing as 0,98 and I wanted to be 98% so I need to multiply the value \*100. I am not sure in the action how to do it. Or do I need a transform in the action but then how to used the result in the action further steps?

```
      "text": "Server: {{ctx.payload.hits.hits.0._source.beat.name}}, has reported a Memory usage of {{ctx.payload.hits.hits.0._source.system.memory.used.pct}}% of usage for the last 5 minutes. Please check it out. "

```

Please let me know.

---

<div class="post-metadata">

### Author: ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)
#### Post date: [April 9, 2019, 12:48am UTC](https://discuss.elastic.co/t/transform-percentage-value/175917/2 "2019-04-09T00:48:30Z")

</div>

Hi, looks like this is Watcher syntax. As this is the Kibana forum, you might not get the best advice here, but the Elasticsearch forum has more experts in this area.

---

<div class="post-metadata">

### Author: ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)
#### Post date: [April 9, 2019, 12:51am UTC](https://discuss.elastic.co/t/transform-percentage-value/175917/3 "2019-04-09T00:51:19Z")

</div>

I think you will need a [Transform action](https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-watcher-transform-context.html), to modify the data in `ctx.payload` before it goes to the action block.

---

<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 7, 2019, 12:51am UTC](https://discuss.elastic.co/t/transform-percentage-value/175917/4 "2019-05-07T00:51:21Z")

</div>

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