Difference between revisions of "IS428 AY2019-20T1 Assign Ronald Lay Data Transformation"
Line 45: | Line 45: | ||
Follow the 2-step process | Follow the 2-step process | ||
<center><strong>2 steps process</strong></center> | <center><strong>2 steps process</strong></center> | ||
+ | |||
+ | <ul> | ||
+ | <li> | ||
<center>Create Calculated field</center> | <center>Create Calculated field</center> | ||
[[File:Ronald.Lay.2017_Create_Calcul.PNG|thumb|center|450px]] | [[File:Ronald.Lay.2017_Create_Calcul.PNG|thumb|center|450px]] | ||
+ | </li> | ||
+ | <li> | ||
<center>Displays Calculation statement as followed</center> | <center>Displays Calculation statement as followed</center> | ||
[[File:Ronald.Lay.2017_Shake_Category.PNG|thumb|center|450px]] | [[File:Ronald.Lay.2017_Shake_Category.PNG|thumb|center|450px]] | ||
+ | </li> | ||
+ | </ul> | ||
The output is generated below | The output is generated below | ||
<center>mc1-clean-data</center> | <center>mc1-clean-data</center> | ||
[[File:Ronald.Lay.2017_Output.PNG|thumb|center|450px]] | [[File:Ronald.Lay.2017_Output.PNG|thumb|center|450px]] | ||
+ | |||
+ | |||
+ | ==Importing data== | ||
+ | This is the overall picture of importing data process. Mc1-data-clean is merged with stHimark.shp using location and id as common attribute. | ||
+ | [[File:Ronald.Lay.2017_Overall_Process.PNG|thumb|center|450px]] | ||
+ | |||
+ | A map is successfully loaded into tableau | ||
+ | [[File:Ronald.Lay.2017_Map.PNG|thumb|center|450px]] |
Revision as of 22:57, 13 October 2019
Contents
Data used for Mini Challenge 1
- mc1-reports-data.csv
- StHimark.shp
Pivoting for categories
Issue
The categories are represented in columns, which is difficult when performing the filters and charts in tableau.
Solution
Using Tableau prep to perform the pivoting of categories - Medical, Power, Road And Bridges, Sewer & Water and shake intensity - into a column called "Category" and "Reported intensity" for the value.
Binning of different intensity level
Issue
The raw data contains categorical data represented by number. However, number representation provides an unclear definition of how each value is perceived by the users.
Solution
To standardize the definition, visual binning is performed by aligning the intensity value with instrumental intensity into a number of distinct categories.
Follow the 2-step process
-
Create Calculated field -
Displays Calculation statement as followed
The output is generated below
Importing data
This is the overall picture of importing data process. Mc1-data-clean is merged with stHimark.shp using location and id as common attribute.
A map is successfully loaded into tableau