Put the dynamic expressions for your search filters into either an input element or group element and set type of content to number…then use the input or group values in your expression to show the count(a) - count(b)
To clarify, what I want is a calculation performed on two lists of numbers. Each list is generated by an expression like this with a filter applied to search. This example is grouped by hour so each value in the list is the row count by hour.
So essentially what I want would be something like [1, 4, 5] - [2, 1, 3]. The returned list [-1. 3, 2] will be used for creating a bar chart.
Thanks for clarifying, I was unaware of need to create a list…you should check out list shifter plugin functions, which were put into a paid plugin. Search forum for list shifter and you should be able to find name of new plugin the functions are in.