What you want is not possible. Your options are to use: 1) the object model to write C# code that iterates over the work items from a query and do the math yourself 2) run the query in excel and do the calculations and filter in excel 3) use ssrs to create a report that does the math for you
If you think this is important, you can always post your suggestion on user voice: https://visualstudio.uservoice.com