View Full Version : How to calculate metric based on two or three inputs - please help access greenhorn


Pavel_Janu
05-27-2008, 06:37 AM
Hello all,

Please help one access greenhorn to get some idea how to do .......

I have a list of metrics which has 1 to 3 inputs. Like x = (A/B)*100, or x = A+B-C or few other formulas.
I have all the inputs stored in one table and each of them has it's own unique ID. Is there a way how to create a query/report where I will have all the metrics listed one by one with calculated results?

Thank you wery much in advance.

Pavel

georgedwilkinson
05-27-2008, 07:15 AM
Sure, in your underlying query, just add columns with the formula. For instance:


select A, B, C, (A/B)*100 as FirstMetric, A+B-C as SecondMetric
from MyTableWithInputsInIt;


There are other ways, this is just the way I'd do it.

Pavel_Janu
05-28-2008, 06:04 AM
Ahoy,

Thank you for your comments.

Regards,

Pavel

georgedwilkinson
05-28-2008, 06:50 AM
NP, glad we could help.