-
Notifications
You must be signed in to change notification settings - Fork 34
Create blog.md #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
narae970210
wants to merge
5
commits into
bitprj:master
Choose a base branch
from
narae970210:#data_tableau
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Create blog.md #228
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,204 @@ | ||
|
|
||
| # How to create a Tableau dashboard: | ||
|
|
||
| This blog will teach you how to create a Tableau dashboard in the following steps: | ||
| * Step 1: Connect to data source | ||
| * Step 2: Create a table with filters | ||
| * Step 3: Create a line graph with a date filter | ||
| * Step 4: Format the dashboard | ||
|
|
||
| Step 1: Connect to data source | ||
| - | ||
| Once you open Tableau, you need to connect to a data source. | ||
| We will use a Microsoft Excel file for this dashboard. | ||
|
|
||
|  | ||
|
|
||
|
|
||
| After connection, raw data: | ||
|
narae970210 marked this conversation as resolved.
Outdated
|
||
|
|
||
|  | ||
|
|
||
|
|
||
|
|
||
| Step 2: Create a table with filters | ||
| - | ||
| In the first sheet, we will create a COVID-19 stat table with state and county filters. | ||
| This step is broken into three parts: | ||
| * Create table | ||
| * Remove abc column | ||
| * Add filters | ||
|
|
||
| **Create table** | ||
| This is what you will see on the left side. | ||
| Dimensions display Date, State, and County and Measures display numeric columns, such as Cases and Deaths. | ||
|
|
||
|  | ||
|
|
||
| In the table, we would like to display Date, State, County, Cases, and Deaths columns. So we will drag those column names into "Rows" section. | ||
|
|
||
|  | ||
|
|
||
| But the table looks weird. | ||
|
narae970210 marked this conversation as resolved.
Outdated
|
||
| We need to set Cases, Deaths columns to "Discrete." | ||
|
|
||
|  | ||
|
|
||
| Once we change Cases and Deaths to Discrete, this is what it looks like! | ||
|
|
||
| This is what we want, except that there is an Abc column. | ||
|  | ||
|
|
||
|
|
||
| **Remove Abc column** | ||
|
narae970210 marked this conversation as resolved.
Outdated
|
||
| This blog will cover how to remove the Abc column in the table. | ||
| But, feel free to check out the video below if you would like to follow a video tutorial. | ||
| https://www.youtube.com/watch?v=6FTZ6TnYaF0 | ||
|
|
||
| First, click any abc column and click Format. | ||
|  | ||
|
|
||
| Change Pane color to White. | ||
|
|
||
|  | ||
|
|
||
| This is what it looks like after you change the color. | ||
|  | ||
|
|
||
| Choose the column on the left of Abc and click Format. | ||
|  | ||
|
|
||
|
|
||
| Under the “Borders” (Square icon), set Column Divider Pane to None. | ||
|  | ||
|
|
||
| Shrink the width of the blank column! This is the final table! | ||
|  | ||
|
|
||
| **Add filters** | ||
| Now, let’s add State, County filter. (Choose Select All from List) | ||
|
|
||
|  | ||
|
|
||
| Right click on the State filter and choose "Show Filter." | ||
|  | ||
|
|
||
| This filter shows all of the states. It's too lengthy! | ||
|
|
||
|  | ||
|
|
||
| Right click the tiny dropdown in the State filter and change it to the form you like - I choose Single Value dropdown | ||
|
narae970210 marked this conversation as resolved.
Outdated
|
||
|
|
||
|  | ||
|
|
||
| The lengthy filter list changed to a dropdown list! | ||
|  | ||
|
|
||
| Change title name and this is the final product! | ||
|  | ||
|
narae970210 marked this conversation as resolved.
Outdated
|
||
|
|
||
|
|
||
| Step 3: Create a line graph with a date filter | ||
| - | ||
| In Sheet 2, we would like to draw a graph that displays the number of Cases by each state. | ||
|
|
||
| Add Date as a column – default is Year(Date) | ||
|  | ||
|
|
||
| Change Year to Exact Date (You can choose Month, Week Number, etc.) | ||
|  | ||
|
narae970210 marked this conversation as resolved.
|
||
|
|
||
| Now, it shows the date! | ||
|  | ||
|
|
||
|
|
||
| Let’s add #Cases to Rows and it draws a graph! | ||
|  | ||
|
|
||
| Now, let's apply date range filter. | ||
| Add Date column to Filters and select “Range of Dates” and the range of dates automatically shows the range from start date to end date. Hit OK. | ||
|
|
||
|  | ||
|
|
||
|  | ||
|
|
||
| Click the Date filter and select “Show filter.” | ||
| Here we go! The date filter appears on the right side of the dashboard. | ||
|
|
||
|  | ||
|
|
||
|  | ||
|
|
||
| As mentioned above, we would like to display #Cases by state. Drag state dimension to Marks >> Color | ||
|
|
||
|  | ||
|
|
||
| This warning pops up because the dataset contains 54 states, so we will apply a filter to select top states. Click “Filter and then add.” But if you would like to see all states, click “Add all members." | ||
|
|
||
|  | ||
|
|
||
| Select California, Illinois, New Jersey, and New York, which are the states with most coronavirus cases. | ||
|
|
||
|  | ||
|
|
||
| Tada! | ||
| The graph below displays COVID-19 cases by state. | ||
|  | ||
|
|
||
| If you change the date range, the bar graph updates accordingly. | ||
|  | ||
|
|
||
| If you would like to apply date range filter to sheet 1 (COVID-19 case by state and County), you can do so by applying the date filter to all worksheets using the same data source. Now, the date filter will be applied to sheet 1 and sheet 2. | ||
|
|
||
|  | ||
|
|
||
| Step 4: Format the dashboard | ||
| - | ||
|
|
||
| In dashboard 1, drag sheet 1 to the blank page. | ||
|
|
||
|  | ||
|
|
||
| Then you will notice that this dashboard does not have any space to display the bar graph we created in sheet 2. We should expand the size of the dashboard. | ||
|
|
||
| The default size is 1000 x 800. Let’s increase the height to 1600. | ||
|
|
||
|  | ||
|
|
||
|
|
||
| Select sheet 1 and click the Downward Arrow and select Floating. This allows you to freely move the table and resize the table. | ||
|
|
||
|  | ||
|
|
||
| Click “Floating” on State and County filter and move around the table and two filters as you would like. | ||
|  | ||
|
|
||
| Follow the same steps above and add sheet 2 to the dashboard. | ||
|
|
||
|  | ||
|
|
||
| Now, let's add title to the dashboard! | ||
|
|
||
| Check "Show dashboard title" in the Objects section and add the title. | ||
|
|
||
|  | ||
|
|
||
| The dashboard looks too plain, so let's add a background color to the title. | ||
|
|
||
|  | ||
|
|
||
| Right click the title and click "Format title…" | ||
|
|
||
|  | ||
|
|
||
| Apply Shading in the Dashboard Title section. | ||
|
|
||
|  | ||
|
|
||
|
|
||
| Here is the final product of the dashboard! | ||
|
|
||
|  | ||
|  | ||
|
|
||
|
|
||
|
narae970210 marked this conversation as resolved.
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.