QGIS – List Unique Values

Marketing
Marketing
  • Updated

By David Crowther

QGIS___List_Unique_Values_-_1.PNG

Question:

How can you List Unique Values for a layer within QGIS?

Answer:

The List Unique Values Tool allows you to interrogate and then list the unique values within one field of your GIS Layers.  

In QGIS below we have a Polygon Layer representing some Planning Applications.

QGIS___List_Unique_Values_-_2.PNG

From the Processing menu choose > Toolbox > and open the Vector Analysis section.

QGIS___List_Unique_Values_-_3.PNG

Choose the List Unique Values menu option.

QGIS___List_Unique_Values_-_4.PNG

The List Unique Values tool will open.

QGIS___List_Unique_Values_-_5.PNG

We will use the following settings:

  • In the Input Layer choose the Planning Applications Layer
  • In the Target Field choose the Progress Field

QGIS___List_Unique_Values_-_6.PNG

QGIS___List_Unique_Values_-_7.PNG

If you Run the List Unique Values tool, it will identify all the Unique values in the chosen Target field and create a Temporary Table within the Layers panel.

If you Open the Attributes Table for the new Temporary Layer you can see a record for each Unique Value – in this example, each unique Planning Application ‘Progress’ value.

QGIS___List_Unique_Values_-_8.PNG

This is a very easy method to run a Select DISTINCT (Unique) statement without having to run your own complex SQL queries!

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.