I'd like to create a TSVB Metric using the Math aggregation. I would like to create two variables using filters, so I know I need to set up those aggregations before the Math module, but I'm having trouble figuring out how.

Basically I want to create:

Variable A - Count of documents matching one query

Variable B - Count of documents matching a different query

Use Math aggregation to work on those variables and output a single number displayed as Metric