# Canvas Gauge with Timelion

**URL:** <https://discuss.elastic.co/t/canvas-gauge-with-timelion/180833>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [May 13, 2019, 2:40pm UTC](https://discuss.elastic.co/t/canvas-gauge-with-timelion/180833 "2019-05-13T14:40:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScottBarnes](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@ScottBarnes](https://discuss.elastic.co/u/ScottBarnes)\
**Post date:** [May 13, 2019, 2:40pm UTC](https://discuss.elastic.co/t/canvas-gauge-with-timelion/180833/1 "2019-05-13T14:40:03Z")

</div>

Hi all,

Thanks in advance for you support.

I'm getting an interesting result in my Guage in Canvas.

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/8/88af2afbcb2f698d82dffee154f6197fb28d92c3.png)

The Guage is supposed to be showing the Referred Percentage of the values to the left, clearly this should be 47%.

Here's the Timelion query I'm using to drive the guage;

.es(index=o-p\*, q='o.type:_OutcomesUpdatedEventHandler')  
.subtract(.es(index=o-p_, q='o.type:_OutcomesUpdatedEventHandler AND  
o.verification.journey\_outcome\_bank:"Accepted" AND  
o.verification.journey\_outcome\_fraud:"Accepted" AND  
o.verification.journey\_outcome\_income:"Accepted"'))  
.divide(.es(index=o-p_, q='o.type:\*OutcomesUpdatedEventHandler'))  
.fit(none)

Can anyone help?!?!  
Many Thanks.

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [May 13, 2019, 5:26pm UTC](https://discuss.elastic.co/t/canvas-gauge-with-timelion/180833/2 "2019-05-13T17:26:54Z")

</div>

Does this clause

> [@ScottBarnes](#):
>
> _.subtract(.es(index=o-p_ , q='o.type: _OutcomesUpdatedEventHandler AND  
> o.verification.journey\_outcome\_bank:"Accepted" AND  
> o.verification.journey\_outcome\_fraud:"Accepted" AND  
> o.verification.journey\_outcome\_income:"Accepted"'))_

match exactly the clause for "Accepted Journies"?

---

<div class="post-metadata">

**Author:** ![ScottBarnes](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@ScottBarnes](https://discuss.elastic.co/u/ScottBarnes)\
**Post date:** [May 23, 2019, 11:27am UTC](https://discuss.elastic.co/t/canvas-gauge-with-timelion/180833/4 "2019-05-23T11:27:20Z")

</div>

Thanks for your help Thomas...

Here are the three queries being used for the Metric elements on the Canvas.

Journies  
.es(index=o-p\*, q='o.type:\*OutcomesUpdatedEventHandler')

Accepted Journies  
.es(index=o-p\*, q='o.type:\*OutcomesUpdatedEventHandler AND  
o.verification.journey\_outcome\_bank:("Accepted") AND  
o.verification.journey\_outcome\_fraud:("Accepted") AND  
o.verification.journey\_outcome\_income:("Accepted")')

Referred Journies  
.es(index=o-p\*, q='o.type: _OutcomesUpdatedEventHandler')  
.subtract(.es(index=o-p_ , q='o.type:\*OutcomesUpdatedEventHandler AND  
o.verification.journey\_outcome\_bank:("Accepted") AND  
o.verification.journey\_outcome\_fraud:("Accepted") AND  
o.verification.journey\_outcome\_income:("Accepted")'))

---

<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:** [June 20, 2019, 11:27am UTC](https://discuss.elastic.co/t/canvas-gauge-with-timelion/180833/5 "2019-06-20T11:27:26Z")

</div>

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