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.

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.
    – user30184
    Commented Mar 5, 2021 at 17:24
  • Wow such a simple mistake. Thank you for helping
    – bluesharxx
    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:

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

Your Answer

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

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