# Display a metric change over a period of time

**URL:** <https://discuss.elastic.co/t/display-a-metric-change-over-a-period-of-time/312487>\
**Category:** Kibana\
**Created:** [August 19, 2022, 4:54pm UTC](https://discuss.elastic.co/t/display-a-metric-change-over-a-period-of-time/312487 "2022-08-19T16:54:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marius\_Kunauskas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_kunauskas/32/98686_2.png) [@Marius\_Kunauskas](https://discuss.elastic.co/u/Marius_Kunauskas)\
**Post date:** [August 19, 2022, 4:54pm UTC](https://discuss.elastic.co/t/display-a-metric-change-over-a-period-of-time/312487/1 "2022-08-19T16:54:44Z")

</div>

I'm trying to create a single metric visualization, showing the difference between a current period's number vs last week's (or other timeframe's) number.  
E.g. let's say this week we made a $110 profit, last week we made $100. I want a single metric that will say +10% or +$10.  
I know how to compare fields over a timeperiod in Timelion and TSVB but that's not what I'm looking for here.

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [September 5, 2022, 3:50pm UTC](https://discuss.elastic.co/t/display-a-metric-change-over-a-period-of-time/312487/2 "2022-09-05T15:50:53Z")

</div>

In lens you can shift your formulas check this section of the docs:

> **[Create visualizations with Lens | Kibana Guide \[8.7\] | Elastic](https://www.elastic.co/guide/en/kibana/current/lens.html#lens-formulas)**
>
> Consider the production components that are used to generate reports.

and very likely this video will also help:

[![](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cf525e4b0bfb1f9ccf0ade4b74c97b7df3b54049.jpeg "How to use Kibana time shifts, advanced formulas, and dynamic colors") ](https://www.youtube.com/watch?v=z-zRtoBddBA)

---

<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:** [October 3, 2022, 3:51pm UTC](https://discuss.elastic.co/t/display-a-metric-change-over-a-period-of-time/312487/3 "2022-10-03T15:51:06Z")

</div>

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