# Visual Builder: Markdown returning 0 value

**URL:** <https://discuss.elastic.co/t/visual-builder-markdown-returning-0-value/187736>\
**Category:** Kibana\
**Created:** [June 27, 2019, 7:00am UTC](https://discuss.elastic.co/t/visual-builder-markdown-returning-0-value/187736 "2019-06-27T07:00:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterPain](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@PeterPain](https://discuss.elastic.co/u/PeterPain)\
**Post date:** [June 27, 2019, 7:00am UTC](https://discuss.elastic.co/t/visual-builder-markdown-returning-0-value/187736/1 "2019-06-27T07:00:10Z")

</div>

Hey there,  
im using Markdown in Visual Builder to display the latest value for some metrics. I want to use the Markdown feature instead of the metric visualization for saving space in my Dashboard.  
Im using Top hit Aggregation. The value is aggregated by average and ordered by timestamp (desc).  
When i change the Time for the visualization to "today" the value is beeing displayed with 0

```
Leistung: {{ top_hit_of_psum.last.formatted}} kW

```

And the result looks like this:

```
Leistung: 0 kW

```

But i want to display the latest value. Im very thankful for any help.

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [June 28, 2019, 11:29am UTC](https://discuss.elastic.co/t/visual-builder-markdown-returning-0-value/187736/2 "2019-06-28T11:29:23Z")

</div>

I've moved this to the Kibana topic where it probably was intended to be posted initially.

---

<div class="post-metadata">

**Author:** ![PeterPain](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@PeterPain](https://discuss.elastic.co/u/PeterPain)\
**Post date:** [July 1, 2019, 7:15am UTC](https://discuss.elastic.co/t/visual-builder-markdown-returning-0-value/187736/3 "2019-07-01T07:15:10Z")

</div>

Yep you are right,  
thanks for moving this topic to the correct category

---

<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:** [July 29, 2019, 7:15am UTC](https://discuss.elastic.co/t/visual-builder-markdown-returning-0-value/187736/4 "2019-07-29T07:15:15Z")

</div>

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