









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Let’s start off by looking at the data table we prepared: Participant’s Name Organisation Type of Organisation (Media, CSO, Academic, Think Tank, Political) Number of rows in your dataset Number of columns in your dataset Maung Than Chaung
Ma Thay Mhyin 7Day Media 300 20 ... ... ... ... ... Let’s say we want to find out how many participants were from CSOs. In the previous exercise, we looked at how Google Sheets’ filter function can be used to filter just for CSO participants and then we use COUNT to calculate how many participants are from CSOs. Now let’s say we want to (^1) This lesson was adapted from the World Bank's Introduction to Data Literacy training manual by Eva Constantaras, and adapted by Yan Naung Oak, Open Development Cambodia and Open Development Initiative, and is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. For full terms of use, see here.
repeat this for Media, Think Tanks and other types of organisations. If we filter for each type one at a time, it can get very tedious and time consuming. Wouldn’t it be nice if there was a to automatically calculate the number of participants from each type of organisation, so that we can get the results in a table like below: Type of Organisation Count of participants Media 5 CSO 8 Think Tank 4 The answer is “Yes!”. We can use the pivot table function in Google Sheets and other spreadsheet software to get these kinds of useful summary calculations and much more. For example, instead of counting the number of participants, we can automatically calculate the sum of rows of data in the datasets for each type of organisation: Type of Organisation Total number of rows Media 5, CSO 30, Think Tank 9, Pivot tables are one of the most useful features for data analysis. First attempt to practice using the Pivot Table with this dataset of conference attendees.
**1. Count of “participants” from each country
Now, select Data -> Pivot table from the top menu bar.
Next click on “Create” in the pop-up that appears to create a new pivot table in a separate sheet.
The first question asks “For each type of status (operational, potential site, under study, etc), calculate their total combined capacity.” In order to answer this, we want to summarise the data according to the “status” column. In the “Rows” section of the panel on the right, click on “Add”. Choose “status”, and you will see that the row labels in the pivot table will be populated with the various values of the status column.
Next, in the values section, click “Add” and choose “capacity”. By default, the “summarize by” will be SUM, which means for each cell in the pivot table, it will sum the capacity values of all the rows in the original data associated with the appropriate value for “status”, as shown below.
The next question asks “The next question asks “What is the median capacity for all the projects?” Here, we do not need to choose any rows in the Pivot table editor panel on the right. We can go straights to add Values. We choose “capacity” in the “Values” section and change the “Summarize by” to MEDIAN.
The next question asks “What is the total capacity for large scale projects that are invested by Korea?” In this case, we want to choose both Rows and Columns to summarize with across two variables. Choose “size_scale” for Rows, “country” for columns, and “capacity” for Values.
The next question asks “What province will have the largest total capacity if all the projects are completed?” Here we choose “province” for Rows, and “capacity” for Values, and change the “Summarize by” to SUM
The next question asks “What is the total capacity of projects that are operational by 2013 in Koh Kong province?” Again we have to choose both Rows and Columns here to summarize with across two variables. Choose “province” for Rows, “year” for columns, and “capacity” for Values.