Code:
IIF("@Data.heading~" <= "22.4", "N", IIF("@Data.heading~" <= "67.4", "NE", IIF("@Data.heading~" <= "112.4", "E", IIF("@Data.heading~" <= "157.4", "SE", IIF("@Data.heading~" <= "202.4", "S", IIF("@Data.heading~" <= "247.4", "SW", IIF("@Data.heading~" <= "292.4", "W", IIF("@Data.heading~" <= "337.4", "NW", IIF("@Data.heading~" <= "360", "N", "")))))))))