Scale each value returned by a query

Hello! I have a graph with a lot of fields returned by a single query(here is the graph and its configuration)

I have a variable and a query that both hold a number that I want to scale this entire graph by. (divide the count of each field at each timestamp by that number) But I cant seem to find a way of doing this easily. For a single field, the add field from calculation Transform works great, but this is unreasonable to have 80+ transformations for all of these fields, especially when more fields could be added later and we would have to go add more transformations.
Any suggestions would be much apreciated!