Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'm trying to label visited countries in a world map shapefile, what is wrong with my rule :
if( "Visited" = 'yes', "NAME", NULL)
Your formula goes to "label with" ... not in the "filter" field ...
As alternate solution, instead of using rule-based labelling, you can put your formula in the normal labelling field like below.
Required, but never shown