Rule-Based Labeling in QGIS – How to Implement labelingqgisrule-based I'm trying to label visited countries in a world map shapefile, what is wrong with my rule : if( "Visited" = 'yes', "NAME", NULL) Best Answer Your formula goes to "label with" ... not in the "filter" field ... Related SolutionsQGIS – How to Use Rule Based Colored Background for Labeling in QGIS The easiest way is to simply use the @symbol_color variable in the label background expression. This ensures whatever color your symbols are, your labels are automatically updated, without having to set a seperate CASE statement for the labels: Related Question
Best Answer
Your formula goes to "label with" ... not in the "filter" field ...