2

enter image description here

I would like to copy names from field 'Uch_1' to 'Uchastok' but not all. Names in 'Uch_1' should be copied and replace only where in 'Uchastok' cells are 'NULL' but if not, it remains without changes.

Any ideas what code should I use in Field Calculator?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Apr 17, 2018 at 8:27

1 Answer 1

4

there are a few options

First

Select all cells with value 'NULL'

Open field calculator

  • You will see the first option checked: 'only update xxx selected features'. Keep it checked!!
  • check 'update existing field'
  • select 'Uchastok'

In the expression panel add "Uch_1"

Press 'OK'

Second

  • check 'update existing field'
  • select 'Uchastok'

Add following code:

case

when "Uchastok" is null then "Uch_1"

else "Uchastok"

end

answered Apr 17, 2018 at 8:38

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.