2

I never before worked with the field calculator and this problem is driving me nuts ...

This is the error I get with my expression

Interpretationserror: syntax error, unexpected NAME syntax error, unexpected ')', expecting $end

My expression is: (("crimes_2020" - ("crimes_2017_2019" / 3)) / ("crimes_2017_2019" / 3)) * 100

Also, the Ok Button always seems to be greyed out.

Taras
35.8k5 gold badges77 silver badges152 bronze badges
asked Mar 5, 2021 at 17:12
2
  • 1
    At least you are using some characters which look like double quotes but actually they are something else. Look at the both sides of crimes_2020 for example. Commented Mar 5, 2021 at 17:24
  • Wow such a simple mistake. Thank you for helping Commented Mar 5, 2021 at 17:40

1 Answer 1

4

As was pointed by @user30184, you shall use a straight double quote " instead of the one that you used "/" (opening/closing double quote).

So your expression will look like this:

(("crimes_2020" - ("crimes_2017_2019" / 3)) / ("crimes_2017_2019" / 3)) * 100

References:

answered Mar 5, 2021 at 17:29
1
  • 1
    Thanks for this detailed answer ! Have a nice day! Commented Mar 5, 2021 at 17:40

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.