I need to label only US states and canadian provincies enter image description here

Here is my attribute table enter image description here

and my expression

enter image description here

Program show that is no error here, but it still don't work. What I'm doing wrong?

  • 1
    Is this a label expression? Do you want to label with the text True or False?
    – Jakob
    Apr 22, 2017 at 14:54
  • No, it's general expression for features. And I want label US states and canadian provinces names (Utah, Manitoba etc.)
    – Geoguest
    Apr 22, 2017 at 19:32

1 Answer 1


I'd set the Show label condition to something like:

"sr_adm0_a3" in ('USA', 'CAN')

enter image description here

You just need an expression that returns True for the countries you want to label and false for the others. In your case ISO looks promising.

  • I used attribute NAME_1 and your's suggested statement in ('USA', 'CAN') and it works! Thanks!
    – Geoguest
    Apr 22, 2017 at 19:47

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.