I've been working on deriving bearings and distances from lines in qgis 2.18 from a number of coordinates stored as a csv file. I have been able to generate the bearing of the lines using this expression in the field calculator:
CONCAT(format_number(degrees(azimuth(start_point($geometry), end_point($geometry))), 2), '°')
But this expression does not allow the bearing to be added in the attribute table (or i simply dont know how to do that). Can anyone help?