# Advice for a beginner: Substract two time evolutions

**URL:** <https://discuss.elastic.co/t/advice-for-a-beginner-substract-two-time-evolutions/222747>\
**Category:** Kibana\
**Created:** [March 9, 2020, 3:12pm UTC](https://discuss.elastic.co/t/advice-for-a-beginner-substract-two-time-evolutions/222747 "2020-03-09T15:12:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YC777](https://avatars.discourse-cdn.com/v4/letter/y/f19dbf/32.png) [@YC777](https://discuss.elastic.co/u/YC777)\
**Post date:** [March 9, 2020, 3:12pm UTC](https://discuss.elastic.co/t/advice-for-a-beginner-substract-two-time-evolutions/222747/1 "2020-03-09T15:12:38Z")

</div>

Hi ! I am fairly new to Elastic, I wish someone could give me some advice.  
I am building a dashboard and I want to create a vizualisation with two graphs showing a time evolution (cf attached picture), and I want to substract them to have a third graph of the time duration between the two of them. All I know is that it is hard to do it using Vega-lite.

 ![Inkedtéléchargement (4)_LI](https://us1.discourse-cdn.com/elastic/original/3X/f/c/fc1ce953b099976afb1764d51d29207e0bc08b25.jpeg)

Thank you so much in advance !

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 12, 2020, 3:33pm UTC](https://discuss.elastic.co/t/advice-for-a-beginner-substract-two-time-evolutions/222747/2 "2020-03-12T15:33:09Z")

</div>

You can do this with TSVB or Timelion. Both are perfectly suited for this use case.

---

<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:** [April 9, 2020, 3:33pm UTC](https://discuss.elastic.co/t/advice-for-a-beginner-substract-two-time-evolutions/222747/3 "2020-04-09T15:33:12Z")

</div>

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