- Example
- ==========
- CASE WHEN $id%3 =0 THEN 'KP '|| format_number( "KP" ,0) END
- Source
- ==========
- https://gis.stackexchange.com/questions/133875/how-to-label-values-every-5th-number
- TXT
- ==========
- Q:
- I have a string of values (over 10,000) I want to label them but I don't want to label every single one. I need to label every fifth number.
- A:
- Using QGIS 2.0.1, you can use an expression directly in the labelling tab in order to get what you need :
- CASE WHEN $id%5 =0 THEN "yourfield" END
- in other words, if your id value ($id is built in) is divided by 5, then label with the value in "yourfield"
Recent Pastes