You can create fields and once created, populate them with data using the Field Calculator. But can you do both at the same time using an expression? Or must you do it in 2 steps?

1 Answer 1


You can open the attribute table, toggle layer editable (if not yet done) open the field calculator and check Create a new field, give it a type / name and use an expression to fill it with values based on existing attributes.

Create a new field in the field calculator

  • Wow, that simple...Thank you! Not sure if I'm allowed to ask a follow-up question or post another one but I will ask: If column_1 contains fields which has similar string (eg. field_1 = "Country: UK", field_2 = "Country: US", field_3 = "City: London"), is there an expression to update fields which ONLY contain part of the string - in this case "Country"?
    – Joseph
    Apr 3, 2014 at 10:03
  • Please open a new question for this. It will be easier to find for other people if it is not buried in the comments. Apr 3, 2014 at 11:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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