Replicating Timelion math function with Visual Builder

Hi I have a Timelion visualization that generate a chart based on a calculation:
.es(index=myIndex, q='SLType:100').subtract(.es(index=myIndex, q='SLType:200')).bars(stack=YES)

I am trying to get the same result in Visual Builder but I can't figure out how to do that. I can generate a chart with the two series (one bar for SLType:100, and one for SLType:200). But I don't see a way to perform the calculation the way I can do it in Timelion.

Thanks
Paul

Hi Paul,

I do not think this is currently possible in TSVB. There is an existing issue that I believe addresses this limitation. https://github.com/elastic/kibana/issues/22866

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