10 minutes
For the exercise on the following page, we want to visualise quantitative, or numerical, data. The water beetle doesn’t contain appropriate numerical data, so we need to calculate a new field first
- Turn on the ability to edit your layer - right-click
Toggle Editing- Open the attribute table in the usual way, and find the
open the field calculator (Ctrl+I)button in the toolbar of editing buttons at the top of the Attribute table- Type your new field name (Year for the water beetle dataset) into
Output field name- In the central list of variables, expand
Date and Time- Scroll down the list of function and double-click on
yearto enter it into the Expression (centre-left of dialogue box)- In the central list of variables, expand
Fields and Values- Double-click on
Dateto add it to your Expression- Type in a closing parenthesis
)at the end of theExpressionusing your keyboard- Click
OKto calculate the new field- Note the presence of your new Year field in the attributes table
- Close the attribute table and right-click
Toggle Editingoff
Saveyour changes when prompted
Toggle Editing
open the field calculator (Ctrl+I) button in the top toolbar of editing buttons
Output field name
Date and Time
year to enter it into the Expression (centre-left of dialogue box)
Fields and Values
Date to add it to your Expression
) at the end of the Expression using your keyboard
OK to calculate the new field

Toggle Editing off
Save your edits when prompted