Data Visualization with Excel
Kiki Ferawati
What is data?
Data Visualization
Displaying data or information.
Aimed to delivering data or information clearly and effectively to the user.
Can be displayed in diagram, graph, infographic, dashboard, and so on.
Charts Excel
When to use the chart?
https://eazybi.com/blog/data_visualization_and_chart_types/ https://blog.hubspot.com/marketing/types-of-graphs-for-data-visualization
Categorical Time-related data
Identifying relation between two variables
Categorical or numerical
Numerical
How to display your table?
IN A REPORT/PAPER
Tabel 1. Jumlah bencana
NOT IN A REPORT
No Kecamatan Jumlah
1 Tanah Longsor 164
2 Angin Ribut 239
3 Kebakaran 25
4 Banjir 0
5 Bunuh Diri 0
6 Pergerakan Tanah 5
7 Rumah Roboh 5
No Kecamatan Jumlah bencana 1 Tanah Longsor 164
2 Angin Ribut 239
3 Kebakaran 25
4 Banjir 0
5 Bunuh Diri 0
6 Pergerakan Tanah 5
7 Rumah Roboh 5
How to display your chart?
IN A REPORT/PAPER
Gambar 1. Jumlah bencana
NOT IN A REPORT
Dashboard in Excel
Dashboard is an alternative for displaying data in Excel, often used as another form of report.
Dashboard di Excel
What will the dashboard used for?
What is the data source?
Who will be using the dashboard?
Do you need to update the dashboard?
The Excel version of dashboard user?
https://trumpexcel.com/creating-excel-dashboard/
Dashboard in Excel
Static dashboard
Dynamic / Interactive dashboard Pivot table
Developer menu + Excel function
• Pivot – Slicer → better for categorical data
(nominal/ordinal)
Today’s goal
Reproducing this dashboard of Disasters in Karanganyar, Central Java.
Static dashboard
Dynamic dashboard
Static dashboard
Static dashboard
1
2 3
4 5
Column chart
1
Choose Kecamatan and Total, then click column chart.
Double click in chart title:
Total →Jumlah Bencana di Kabupaten Karanganyar 2016-2019 Copy the chart to Dashboard sheet
=SUM(Data!$N$2:$N$18)
Count all the area in Karanganyar.
Jumlah Kecamatan
2
=COUNTA(Data!$B$2:$B$18) Used to count non-blank cells.
3
=SUM(Data!$J$2:$J$18)
Count the total number of disasters
4
Lowest:
=MIN(Data!$K$2:$K$18) Highest:
=MAX(Data!$L$2:$L$18)
Total Kejadian Bencana
Ketinggian di atas air
laut (m) 5 Luas Wilayah
Dynamic dashboard
1 2 3
4
5 6 7
8
Dynamic dashboard – for each district
List Box for choosing the district
New sheet: Tabel-bantuan.
Acrivate Tab Developer. Click File > Options
1
After choosing List Box, click in a random cell, type:
A B
1 Indeks 1
2 Kecamatan =VLOOKUP('Tabel-bantuan'!B1;Data!$A$2:$B$18;2;FALSE)
List Box for choosing the district
In the empty List Box, right click and choose Format Control
1
You can adjust the size of List Box. Copy the List Box to
Dashboard sheet.
Bar chart for the number of events
A B C
4 No Kecamatan Jumlah
5 1 Tanah Longsor =VLOOKUP($B$2;Data!$B$2:$I$18;A5+1;FALSE) 6 2 Angin Ribut =VLOOKUP($B$2;Data!$B$2:$I$18;A6+1;FALSE) 7 3 Kebakaran =VLOOKUP($B$2;Data!$B$2:$I$18;A7+1;FALSE) 8 4 Banjir =VLOOKUP($B$2;Data!$B$2:$I$18;A8+1;FALSE) 9 5 Bunuh Diri =VLOOKUP($B$2;Data!$B$2:$I$18;A9+1;FALSE) 10 6 Pergerakan Tanah =VLOOKUP($B$2;Data!$B$2:$I$18;A10+1;FALSE) 11 7 Rumah Roboh =VLOOKUP($B$2;Data!$B$2:$I$18;A11+1;FALSE)
2
Create a table to summarize the disasters
Choose Kecamatan and Jumlah, then create a bar chart.
Double click in chart title :Jumlah →Jumlah Kejadian
Click in vertical lines in the chart, right-click, choose Format Axis.
In Axis options, pay attention to Bounds –Maximum, replace with 250 (adjust this to the value of maximum in the data)
Copy the chart to Dashboard sheet.
Pie chart for Tingkat kerusakan
E F
4 Tingkat kerusakan Tingkat kerusakan
5 Berat =VLOOKUP($B$2;Data!$B$1:$V$18;18;FALSE) 6 Sedang =VLOOKUP($B$2;Data!$B$1:$V$18;20;FALSE) 7 Ringan =VLOOKUP($B$2;Data!$B$1:$V$18;19;FALSE)
3
Create a table to summarize the damage caused by disasters for each district.
Choose Tingkat kerusakan, create a pie chart.
To add details in the chart, for example, percentage of the event, click + in the right side of the chart.
Copy the chart to Dashboard sheet.
Pie chart for land use
H I
4 Jenis penggunaan lahan Luas
5 Tanah Sawah =VLOOKUP($B$2;Data!$B$1:$V$18;14;FALSE) 6 Tanah Kering =VLOOKUP($B$2;Data!$B$1:$V$18;15;FALSE)
4
Choose the column of Jenis penggunaan lahan dan luas, create a pie chart.
Copy the chart to Dashboard sheet.
H 11 Bencana paling sering terjadi
12 =INDEX('Tabel-bantuan'!$B$5:$B$11;MATCH(MAX('Tabel- bantuan'!$C$5:$C$11);'Tabel-bantuan'!$C$5:$C$11;0))
Most frequent disaster
6 7 Amount of loss
H 8 Jumlah kerugian
9 =VLOOKUP('Tabel-bantuan'!$B$2;Data!$B$1:$V$18;21;FALSE)
Total number of disaster
Entry 6 and 7 is also copied to Dashboard sheet.
Entry 6 → ='Tabel-bantuan'!H12 Entry 7 → ='Tabel-bantuan’!H9
Layout in Dashboard can be adjusted to the preference of each person.
5
=SUM('Tabel-bantuan'!$C$5:$C$11) ='Tabel-bantuan'!B2
8 Display nama Kecamatan
terpilih
Final dashboard
Make sure that you already chose the most suitable chart for the right data type.
You can adjust the size and color of the chart depend on the needs.
Pay attention to color choice for the dashboard. You can use color as a tool to show the information that you want to highlight.