Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What function do i need to use to add an space and an m after every item in a row, using the field calculator in the attributes table. I have a load of numbers (as strings) and would like to add m after each one

share|improve this question
Is this solely for labeling purposes? Not sure about QGIS, but in Arcmap you can add a string to every label without it being in a field. – Martin Aug 29 '14 at 10:19
It will be purely for labelling. It will be exported in Illustrator with these numbers showing as altitudes but with an m after each one – Richie Burns Aug 29 '14 at 10:22
up vote 7 down vote accepted

In the field calculator select "update the column" where you have numbers and use this string

 "COLUMN_NAME"  || ' M'

If you just want to label them with the 'M' paste the same code in the "expression based label panel".

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.