This is a little complex, but I believe what you want is possible in Canvas. Essentially you need to query your index twice in the same expression to get the two different counts, and it also utilizes filter groups which was introduced in Kibana 7.2.0. I assume you wanted both counts to be filtered by the same time filter to filter your date field.
Here's the example using the ecommerce sample data set:
Thank you very much Catherine_Liu.
It helps understand few capabilities of Canvas.
However i am struggling to achieve the functionality, i will try to explain.
Lets say we are processing admissions ,We have date wise admissions count, and i want to calculate per day admission percentage with last 4 days admissions average count.
so if in last 4 days average admissions are 100 and today we have 10 admissions then percentage is 10%
so the first query would be : average count of last 4 days admissions.
second query would be : todays admission count
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.