Skip to content
Cambridge AS & A Level9626

Data Analysis and Visualisation

Information Technology 9626 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Data Analysis and Visualisation notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Data Analysis and Visualisation notes as text: skim, search, and jump between subtopics.

~11 min read

1. Why data is transformed

Data often has to be transformed before it can be analysed. Transforming changes the data into the form the analysis needs, so that meaningful information can be extracted from it.

Data needs transforming when its original format, its data structure or its data type is different from the one the analysis software requires. It also needs transforming to make it compatible with other data that is being analysed.

Transformation can also anonymise data, add other data such as timestamps, or allow the data to be moved to another system.

Worked example 12 marks

Data may have to be prepared by transformation and cleaning before it can be analysed. Describe two reasons why data transformation is necessary.

  1. 1

    The data is in a different original format to that required by the software used for analysis [1]

  2. 2

    To make the data compatible with other data that is being analysed [1]

2. Cleaning data

Cleaning removes or corrects the faults in data before it is analysed.

Cleaning uses both specialist and manual methods of checking the data. Anomalies / outliers are identified or removed, inaccuracies are corrected, and duplicate data is removed. Irrelevant data and out-dated data are removed too.

It also removes inconsistencies, for example by making names spelled the same throughout, and by using the same unit of measurement throughout. Contradictions are removed, structural errors are corrected and missing data is dealt with.

Worked example 14 marks

Data may have to be prepared by transformation and cleaning before it can be analysed. Describe how data may be cleaned.

  1. 1

    Anomalies / outliers are identified / removed [1]

  2. 2

    Inaccuracies are corrected [1]

  3. 3

    Duplicate data is removed [1]

  4. 4

    Inconsistencies are removed / reconciled, e.g. names are spelled the same throughout [1]

3. Combining and splitting data from different sources

Data from two data sources is compared and then consolidated into one data set. Inconsistencies between the sources are reconciled and duplicate data is removed.

Data can be split into discrete fields, so that each field holds one item of data. A full name held in one field can be split into a forename field and a surname field.

Data can also be merged and combined into the required fields. Joined text must keep the formatting the task asks for.

Examiner insight

“Many successfully concatenated the ‘looked up’ strings but did not retain the formatting from the question paper.” “Few candidates created this to First Normal Form (1NF) as the name field was often not split into atomic data with field names such as Forename and Surname or First_Name and Family_Name.”

Worked example 13 marks

A company holds its customers in two spreadsheets, and some customers appear in both. One spreadsheet stores each name in a single field, such as `Amara Khan`. The mailing software needs a forename field and a surname field. Describe how the data should be prepared.

  1. 1

    Split the name field into discrete fields, one for the forename and one for the surname [1]

  2. 2

    Compare the two spreadsheets and reconcile any customer whose entries differ [1]

  3. 3

    Consolidate them into one data set, removing duplicate customers [1]

4. Pivot tables

A pivot table report displays data from a data source, such as a database table or a spreadsheet containing related data.

It allows interactive analysis of large quantities of data. Multiple reports can be generated from the same data set. A pivot table can also work with external files and SQL generated exports of data.

Set the row labels to the item that is meaningful to the user of the data, such as a destination name rather than a destination code. Choose `SUM` when the report needs totals, not `COUNT`.

Examiner insight

“A significant number of these set the row labels as the destination code rather than the destination name (which would be much more meaningful to the user of the data).” “A significant number of candidates used COUNT rather than SUM to calculate the values for the pivot table.”

Worked example 14 marks

Pivot tables are used to analyse data. Describe the benefits of using pivot tables to analyse data.

  1. 1

    Manageable / simultaneous analysis of large quantities of data [1]

  2. 2

    Interactive analysis of data / can have insights into large amounts of data [1]

  3. 3

    Can generate multiple reports from the same data set [1]

  4. 4

    Rapid discovery of patterns in complex data [1]

5. Pivot charts and reports

A pivot chart displays the data of a pivot table as a chart, so that information can be communicated. The chart type must suit the data. A report that holds a chart and a pivot table needs an appropriate title and some brief information about what it contains.

Examiner insight

“Some candidates did calculate the correct data for the chart production but selected a less appropriate chart type.”

Worked example 13 marks

A charity holds a pivot table of the total donations received by each of three charities. Describe how this data can be displayed to a committee.

  1. 1

    Create a pivot chart from the pivot table [1]

  2. 2

    Choose a chart type that suits a comparison of the donations, such as a pie chart [1]

  3. 3

    Give the chart an appropriate title [1]

Recap

  • Transform data when its format, structure or type differs from what the analysis needs, or to make it compatible with other data.
  • Clean data: remove or correct anomalies, inaccuracies, duplicates, irrelevant and out-dated data, and inconsistencies.
  • Compare two sources and consolidate them into one data set. Split data into discrete fields, or merge it into the required fields.
  • A pivot table analyses related data interactively and gives multiple reports from one data set. Use `SUM` for totals and meaningful row labels.
  • A pivot chart displays pivot table data. Give it a suitable chart type and an appropriate title.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State one kind of data that is removed when data is cleaned.1 mark
    Answer
    1. Duplicate data (or irrelevant data, or out-dated data).

    Trap: A vague answer such as ‘tidy it up’ names no kind of data.

  2. A shop exports its prices as text, for example `12.50`. The analysis software needs numbers. Name the feature of the data that is different and state what must happen to it.2 marks
    Answer
    1. The data type is different from the one required [1], so the prices are transformed from text to numbers [1].

    Trap: Name the one reason that fits: data type, structure or format.

  3. A list of customers has the town entered as `Leeds` for some and `leeds` for others. Name the fault and state how it is cleaned.2 marks
    Answer
    1. The data is inconsistent [1], so it is reconciled: the town is spelled the same throughout [1].

    Trap: Deleting the records removes valid customers. Correct the spelling.

  4. Two weather stations record rainfall. Station A records 4 cm for one day. Station B records 30 mm for the same day. Describe how the data is cleaned so the two can be combined, and give the total rainfall recorded by the two stations in mm.3 marks
    Answer
    1. The same unit of measurement is used throughout [1]: 4 cm = 40 mm [1], so the total = 40 + 30 = 70 mm [1].

    Trap: Adding 4 + 30 = 34 mixes units.

  5. A database stores an address in one field: `12 High Street, Leeds, LS1 4AB`. A mailing system needs the street, the town and the postcode separately. Describe how the data is prepared.3 marks
    Answer
    1. The address field is split into discrete fields [1]: street, town and postcode [1], each holding one item of data only [1].

    Trap: Copying the whole address into each field is not splitting.

  6. A form has a Forename field and a Surname field. A report needs one Full name field written as `Amara Khan`. Describe how the data is merged into the required field.3 marks
    Answer
    1. Combine Forename and Surname into the Full name field [1], forename first [1], with a space between [1].

    Trap: Joining with no space gives `AmaraKhan`.

  7. The HR department holds 120 staff records. The payroll department holds 118 staff records. Some staff are in both. Describe how the two sources are compared and consolidated into one data set.3 marks
    Answer
    1. The two sources are compared and records that differ are reconciled [2]. They are consolidated into one data set with duplicate data removed, so staff in both appear once [1].

    Trap: Joining the lists end to end gives 238 records and counts the staff in both twice.

  8. A pivot table has the row labels Region and the values Sum of Sales. The data is given below. State the total for North that the pivot table gives, and the number that `COUNT` would wrongly give. | Region | Product | Sales | | --- | --- | --- | | North | Pens | 40 | | South | Pens | 25 | | North | Books | 55 | | East | Books | 30 | | North | Pens | 15 |2 marks
    Answer
    1. `SUM` for North = 40 + 55 + 15 = 110 [1], but `COUNT` for North would show 3 [1].

    Trap: `COUNT` counts the records. `SUM` totals the values.

  9. A charity's North and South branches each export their donations. The two exports are consolidated into one data set, given in the table. Each donation ID is unique, so D03 has been exported by both branches. The code W means Village Wells and S means School Books. A pivot table must show the total donated to each charity. (a) State the row labels the pivot table should use. (b) Give the value the pivot table shows for each charity. (c) State the value a candidate would get for Village Wells by using `COUNT` without removing duplicates. | Branch | Donation ID | Charity code | Amount ($) | | --- | --- | --- | --- | | North | D01 | W | 20 | | North | D02 | S | 35 | | North | D03 | W | 15 | | South | D03 | W | 15 | | South | D04 | S | 10 | | South | D05 | W | 40 |5 marks
    Answer
    1. (a)
    2. The charity name, Village Wells or School Books, not the code W or S [1].
    3. (b)
    4. Remove the duplicate D03 [1]. Village Wells = 20 + 15 + 40 = 75 [1]. School Books = 35 + 10 = 45 [1].
    5. (c)
    6. D01, D03, D03 and D05 are counted, giving 4 [1].

    Trap: Code labels, the kept duplicate (Village Wells 90) or `COUNT` (4) all lose marks.

  10. Two hospital wards send a dietitian weekly records of the water each patient drinks. Ward 1 holds each patient's full name in one field and the volume in litres. Ward 2 holds the forename and surname in separate fields and the volume in ml. Some patients moved ward during the week, so they appear in both. The dietitian wants a report with a pivot table of the total volume for each patient and a chart. (a) Describe how the data is prepared and the report produced. [6] (b) Amara Khan has 1.2 litres recorded by Ward 1 and 850 ml by Ward 2. State the total the pivot table should show for her, in ml. [1]7 marks
    Answer
    1. (a)
    2. Split Ward 1's name field into discrete forename and surname fields [1]. Convert litres to ml so one unit of measurement is used throughout [1].
    3. Compare the two sources and reconcile inconsistencies, such as names spelled differently [1], then consolidate them into one data set [1].
    4. Pivot table: patient name as row labels and the `SUM` of the volume, not the `COUNT` [1]. Pivot chart of a suitable type, with an appropriate title [1].
    5. (b)
    6. 1.2 litres = 1200 ml, so the total = 1200 + 850 = 2050 ml [1].

    Trap: Adding 1.2 + 850 mixes units, and `COUNT` would show 2, not her total.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
The pivot table uses `COUNT` of the values.The pivot table uses `SUM` of the values.
The row labels are the destination code.The row labels are the destination name.
Clean the data. Tidy it up.Duplicate data is removed. Inaccuracies are corrected.
Pivot tables are quick.Pivot tables give rapid discovery of patterns in complex data.

Frequently asked questions

Why does data need to be transformed before it is analysed?
Data must be transformed when its original format, data structure or data type is different from the one the analysis software requires. Transforming changes the data into the form the analysis needs, so that meaningful information can be extracted. It also makes data compatible with other data being analysed.
How is data cleaned before analysis?
Cleaning removes or corrects the faults in data before it is analysed, using specialist and manual methods of checking. Anomalies and outliers are identified or removed, inaccuracies are corrected, and duplicate data is removed. Inconsistencies are removed too, for example by spelling names the same throughout and using the same unit of measurement throughout.
How do you split or merge data into the required fields?
Data can be split into discrete fields, so that each field holds one item of data. A full name held in one field can be split into a forename field and a surname field. Data can also be merged and combined into the required fields, and joined text must keep the formatting the task asks for.
How do you combine data from two different sources into one data set?
Data from the two data sources is compared and then consolidated into one data set. Inconsistencies between the sources are reconciled, and duplicate data is removed. Without removing duplicates, a record that appears in both sources is counted twice.
Why should SUM be used rather than COUNT in a pivot table?
Choose `SUM` when the report needs totals, not `COUNT`. A pivot table displays related data from a data source, and the row labels should be the item that is meaningful to the user, such as a destination name rather than a destination code.
What mistake do students make when they build a pivot table?
A significant number of candidates used `COUNT` rather than `SUM` to calculate the values. Others set the row labels as the destination code rather than the destination name. Use `SUM` for totals and labels that are meaningful to the user.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters