5

I have a load of points loaded in as a CSV file. I want to show only certain points based on their name, e.g. only value1, value4 and value8, the field name is "Drilled ID".

I have gone to symbology, then categorised and tried this:

"Drilled ID" = 'value1' or 'value4' or 'value8'

Then hit classify, but it doesn't display value1, value4 and value8 only.

Any ideas?

Taras
35.8k5 gold badges77 silver badges152 bronze badges
asked Mar 12, 2023 at 16:24
0

3 Answers 3

12

Use either

"Drilled ID" in ('value1','value4','value8')

Or

"Drilled ID" = 'value1' or "Drilled ID" = 'value4' or "Drilled ID" = 'value8'
answered Mar 12, 2023 at 16:44
11

Switch to Rule-based and use "Drilled ID" IN ('value1', 'value4','value8')

Consider setting a filter if you don't want to display anything else.

enter image description here

Taras
35.8k5 gold badges77 silver badges152 bronze badges
answered Mar 12, 2023 at 16:44
6

Instead of symbology, use Provider Feature filter: open layer properties > Source > Query Builder and add this query:

"Drilled ID" IN ('value1', 'value4', 'value8')

Be aware that your field name contains a space. That might cause problems with CSV. Better stick to field names like "DrilledID" or "Drilled_ID".

Taras
35.8k5 gold badges77 silver badges152 bronze badges
answered Mar 12, 2023 at 19:21

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.