Subtract two fields in a Timelion Query

Hi,

I would like to represent in Kibana the ratio Number of purchases/ Number of customers but only for the purchases with a marge superior at 10.

In other words we need to do :

es(index=log,timefield='@timstamp',q='PurchaseDone:1 AND SellPrice-BuyingPrice :>100',metric='cardinality:ID).divide(.es(index=log,,timefield='@timestamp',metric='sum:Id'))

but it s not working.
Do you have any ideas?

Thanks

@Vinuja1 what are you seeing when you try to execute that query? There are a number of syntax errors, including misspelled things like @timstamp and extra commas in the following fragment: index=log,,timefield

1 Like

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