How can I add a field to a view that is calculated using other fields? How can I add a new field to a view that is calculated using other fields?

Is there a way native to Views to accomplish this?



If the original view returns the row: X | Y | Z

And I have a function calculating new data: $new = do_something(X, Y, Z);

How can I include $new as a fourth column to resulting in: X | Y | Z | $new



I have looked into using a views template to accomplish this, but I'm curious as to whether there is a better way to do this using Views hooks or another module.

What templates, hooks or modules would be best suited to accomplish this?
You could create your own views field handler in a custom module. 
Implement  hook_views_api and hook_views_data_alter(&amp;$data) than you can write your own field handler.