# Need help with Kibana Visual

**URL:** <https://discuss.elastic.co/t/need-help-with-kibana-visual/298224>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [February 24, 2022, 9:50pm UTC](https://discuss.elastic.co/t/need-help-with-kibana-visual/298224 "2022-02-24T21:50:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohitspacee](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mohitspacee](https://discuss.elastic.co/u/mohitspacee)\
**Post date:** [February 24, 2022, 9:50pm UTC](https://discuss.elastic.co/t/need-help-with-kibana-visual/298224/1 "2022-02-24T21:50:09Z")

</div>

Hello!

I am trying to set up a simple Kibana line chart with these conditions -  
I'm trying to set up a Power vs Timestamp chart. In elastic, I have the metrics Current and Voltage. I'll calculate the Power from that. Problem is, I need to show the visual ONLY if the current is decreasing.  
So at time t, the current value should be less than the last reported current value.

Cannot figure out how to do this in Lens. If it can't be done in Lens, any help with Vega is appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![drewdaemon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewdaemon/32/97779_2.png) [@drewdaemon](https://discuss.elastic.co/u/drewdaemon)\
**Post date:** [March 16, 2022, 2:50pm UTC](https://discuss.elastic.co/t/need-help-with-kibana-visual/298224/2 "2022-03-16T14:50:41Z")

</div>

Hi @mohitspacee ,

Let me make sure I understand you correctly:

Your x-axis would be time (temporal), while your y-axis is power (numeric). You want your line to be strictly decreasing in power. In other words, any power datum that is higher than the current lowest value should be ignored.

Is that right?

---

<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 13, 2022, 2:51pm UTC](https://discuss.elastic.co/t/need-help-with-kibana-visual/298224/3 "2022-04-13T14:51:11Z")

</div>

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