When adapting an Excel formula ATAN2(Value1, Value2) for use in Spotfire, the argument order must be reversed: ATan2(Value2, Value1).