# Timelion multiple queries

**URL:** <https://discuss.elastic.co/t/timelion-multiple-queries/189424>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [July 8, 2019, 8:06pm UTC](https://discuss.elastic.co/t/timelion-multiple-queries/189424 "2019-07-08T20:06:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anirudhan](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@Anirudhan](https://discuss.elastic.co/u/Anirudhan)\
**Post date:** [July 8, 2019, 8:06pm UTC](https://discuss.elastic.co/t/timelion-multiple-queries/189424/1 "2019-07-08T20:06:33Z")

</div>

.es(index="\*\*\*\*\*\*",timefield='@updated',metric=avg:mempool\_used,q='species.keyword : "mempools" AND device\_id: 18 AND mempool\_descr.keyword : "Routing Engine"',kibana=true).lines(width=1, stack=true, fill=1).yaxis(label="Memory Usage", min=0).color(#307cd9).title('Memory Usage').fit(carry).label('Memory Used'),  
.es(index="\*\*\*\*\*\*",timefield='@updated',metric=avg:mempool\_free,q='species.keyword : "mempools" AND device\_id: 18 AND mempool\_descr.keyword : "Routing Engine"',kibana=true).lines(width=1, stack=true, fill=1).yaxis(label="Memory Usage (bytes/ sec)", min=0).color(#69f542).title('Memory Usage').fit(carry).label('Memory Free')

This is my timelion query.  
I am having 2 query to get the used and free values for a device from my index.And the graphs are getting properly.But the issue here is  
For used values it is coming from zero-19/20, but the free value is starting its base value from the maximum value of used value.  
Eg:- Used value is plotted from 0 and free value is not plotted from zero.

 ![mem%20usage](https://us1.discourse-cdn.com/elastic/original/3X/7/a/7ae130832ddb836ef340a11e3b62e54b40c36c7c.png)

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [July 25, 2019, 10:54am UTC](https://discuss.elastic.co/t/timelion-multiple-queries/189424/2 "2019-07-25T10:54:49Z")

</div>

Hi @Anirudhan, thanks for the interest in Kibana,

I'm not really sure I completely understood your request. From what I'm seeing you are visualising two series, one related to the used memory and another for the free memory of a specific device. These series are stacked, so that mean that the first one will start from zero and the second one will start on top of the other series (stacked).  
What is your request? Do you want to visualize each series starting from zero? if so you can just disable/remove the `stack` parameter in your timelion expression.

---

<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:** [August 22, 2019, 10:54am UTC](https://discuss.elastic.co/t/timelion-multiple-queries/189424/3 "2019-08-22T10:54:54Z")

</div>

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