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
year
to enter it into the Expression (centre-left of dialogue box)- In the central list of variables, expand
Fields and Values
- Double-click on
Date
to add it to your Expression- Type in a closing parenthesis
)
at the end of theExpression
using your keyboard- Click
OK
to calculate the new field- Note the presence of your new Year field in the attributes table
- Close the attribute table and right-click
Toggle Editing
offSave
your changes when prompted
Toggle Editing
open the field calculator (Ctrl+I)
button in the top toolbar of editing buttonsOutput 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 keyboardOK
to calculate the new fieldToggle Editing
offSave
your edits when prompted