# TSVB Variable Name Markdown Syntax

**URL:** <https://discuss.elastic.co/t/tsvb-variable-name-markdown-syntax/281352>\
**Category:** Kibana\
**Created:** [August 13, 2021, 12:26pm UTC](https://discuss.elastic.co/t/tsvb-variable-name-markdown-syntax/281352 "2021-08-13T12:26:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bustencio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bustencio/32/67857_2.png) [@Bustencio](https://discuss.elastic.co/u/Bustencio)\
**Post date:** [August 13, 2021, 12:26pm UTC](https://discuss.elastic.co/t/tsvb-variable-name-markdown-syntax/281352/1 "2021-08-13T12:26:35Z")

</div>

Hi,

I'm trying to create a TSVB visualization using Markdown to show values and some text. My problem appears when accessing label names while using date fields in a Terms aggregation because it overwrites the label. Is there a way to avoid this behaviour? If not, what's the syntax to access the variable name for markdown?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [August 17, 2021, 2:30pm UTC](https://discuss.elastic.co/t/tsvb-variable-name-markdown-syntax/281352/2 "2021-08-17T14:30:49Z")

</div>

What version of Kibana are you running?  
What does your markdown look like?  
What does your data look like (just the relevant fields used by your TSVB)?  
Can you provide some screen shots and details on how label names are getting overwritten. What does it look like when it works? What does it look like when it does not work?

In newer version of Kibana, available variables are displayed in help text to the right of the markdown editor.

 ![Screen Shot 2021-08-17 at 8.28.08 AM](https://us1.discourse-cdn.com/elastic/original/3X/6/8/684be24a1afe2d2a8f29cd2e2a670e1720fabcfd.png)

---

<div class="post-metadata">

**Author:** ![Bustencio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bustencio/32/67857_2.png) [@Bustencio](https://discuss.elastic.co/u/Bustencio)\
**Post date:** [August 18, 2021, 7:55am UTC](https://discuss.elastic.co/t/tsvb-variable-name-markdown-syntax/281352/3 "2021-08-18T07:55:09Z")

</div>

Hi again,

my bad, the version I'm running is 7.6.2 and this is how my data/markdown looks like.

 ![Screenshot 2021-08-18 at 09.41.04](https://us1.discourse-cdn.com/elastic/original/3X/6/c/6c71861420928e23d7067745b6cb4867a5a2123e.png)

 ![Screenshot 2021-08-18 at 09.40.44](https://us1.discourse-cdn.com/elastic/original/3X/b/8/b804bb3e7252d2db891aad80c996995ce8780273.png)

As you can see, when a date field is used in a terms aggregation, the label name is replaced by the milliseconds representation of the date so using {{label}} is not really an option and that's why I need to use variable names to get the information but AFAIK there is no {{variable}} syntax or anything similar to get that value.

Again, this whole thing is a "hack" because I need to print date fields across different index-patterns and the only vis. that can do that is TSVB Markdown.

Thank you!

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [August 24, 2021, 3:37pm UTC](https://discuss.elastic.co/t/tsvb-variable-name-markdown-syntax/281352/4 "2021-08-24T15:37:18Z")

</div>

Have you tried using [lens](https://www.elastic.co/guide/en/kibana/7.14/lens.html)? It allows displaying data from multiple index patterns

---

<div class="post-metadata">

**Author:** ![Bustencio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bustencio/32/67857_2.png) [@Bustencio](https://discuss.elastic.co/u/Bustencio)\
**Post date:** [September 1, 2021, 11:17am UTC](https://discuss.elastic.co/t/tsvb-variable-name-markdown-syntax/281352/5 "2021-09-01T11:17:49Z")

</div>

Yes and unfortunately Lens doesnt solve my problem because I would need to use multiple Metrics or a table where each row is a different index-pattern.

If there's no way to access the variable field within TSVB using Markdown I believe there's no proper solution to my problem.

Thank you for your time !

---

<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:** [September 29, 2021, 11:18am UTC](https://discuss.elastic.co/t/tsvb-variable-name-markdown-syntax/281352/6 "2021-09-29T11:18:28Z")

</div>

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