2

I am trying to have a new field with the same content of an existing field.

In ArcGIS I would normally use the Field Calculator to make this instantly.

In QGIS I have followed the same steps (create new field, open field calculator, make it equal to an existing field) but it doesn't work... meaning nothing changes, the new field remains empty...

enter image description here

Any suggestions?

Taras
35.7k5 gold badges77 silver badges151 bronze badges
asked Mar 10, 2021 at 11:15
3
  • Welcome to GIS SE! We're a little different from other sites; this isn't a discussion forum but a Q&A site. Your questions should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. Please check out our short tour for more about how the site works Commented Mar 10, 2021 at 11:16
  • 2
    Please give us a clue, what doesn't work? How do you make it equal to an existing field? Commented Mar 10, 2021 at 11:16
  • 4
    If you want to set field 2 equal to field 1 you use "field 1" in the field calculator. Commented Mar 10, 2021 at 11:18

2 Answers 2

3

First check that edit mode is turned on. Then instead of putting into the expression window PercentTF = Wards_wi_6 as you currently have it, just put "Wards_wi_6" (i.e. enclosed in double quotes") and press ok. You have already specified in the upper dialogue box where you want the result.

answered Mar 11, 2021 at 5:59
1

If a new layer can/may be created instead of changing the existing one, there is a possibility using the 'Refactor fields' tool.

Input layer: input

Refactor fields: rf_menu

Output layer: output

answered Mar 11, 2021 at 7:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.