THE ULTIMATE TABLEAU PORTFOLIO PROJECT: From Pandas to an Amazing Interactive Stock Market Dashboard

DataScience RoadMap
2 Apr 202351:21

Summary

TLDRThis tutorial offers a step-by-step guide to creating an interactive stock market analysis dashboard using Tableau. It covers the manipulation of stock data for six major companies with Python's pandas library to generate key metrics like moving averages and percent changes. The video demonstrates building various visualizations, including line charts, histograms, and detailed tables, and assembling them into a cohesive dashboard, providing a comprehensive tool for stock performance analysis.

Takeaways

  • πŸ“Š The tutorial focuses on creating an interactive stock market analysis dashboard using Tableau.
  • πŸ“ˆ The dataset used contains information on approximately 6000 companies and is available online.
  • πŸ”’ Six specific companies are selected for the dashboard: Apple, Facebook, Google, Nvidia, Tesla, and Twitter.
  • 🐍 Python's pandas library is utilized to manipulate data, creating new columns like moving average and percent change.
  • πŸ“ˆ KPIs (Key Performance Indicators) and highlighters for different companies are part of the dashboard features.
  • πŸ“Š Multiple visualizations are created, including a line chart for trading volumes, a table for close prices and volumes, a line chart for moving averages and open prices, and a histogram for price percent changes.
  • πŸ“š The tutorial provides guidance on how to filter data for the last five years and how to create parameters for custom date ranges.
  • πŸ“ The script explains the process of saving modified dataframes as CSV files for use in Tableau.
  • πŸ–₯️ Detailed steps for creating each visualization component in Tableau are provided, including setting up filters, arranging sheets, and formatting the dashboard.
  • πŸ”‘ The importance of understanding pandas for data manipulation before using it in Tableau is highlighted for those unfamiliar with the library.
  • πŸ”— Links to resources such as the dataset, GitHub repository, and company logos are mentioned for further reference.

Q & A

  • What is the main topic of the video tutorial?

    -The main topic of the video tutorial is creating an interactive dashboard for stock market analysis using Tableau.

  • How many companies' data is included in the dataset provided for the tutorial?

    -The dataset provided includes data for approximately 6000 companies.

  • Which six companies' data are specifically used to create the dashboard in the tutorial?

    -The tutorial uses data for Apple, Facebook, Google, Nvidia, Tesla, and Twitter.

  • What programming library is mentioned to be used alongside Tableau for data manipulation?

    -The programming library mentioned for data manipulation is pandas.

  • What are some of the new columns created using pandas for the analysis?

    -Some of the new columns created using pandas include moving average and percent change, which are used for compilation.

  • What types of visualizations are created in the tutorial for the stock market dashboard?

    -The tutorial creates a multiple line chart for different volumes, a detailed table for close price and volume, a multiplying chart for moving average and open price, and a histogram for percent change in price.

  • What is the source of the original dataset used in the tutorial?

    -The original dataset is sourced from Google and contains historical data prices of NASDAQ trading stocks and ETFs.

  • How can viewers access the dataset or the individual files for the six companies?

    -Viewers can access the dataset through a link provided in the description or find the links to the GitHub repository where the six individual files are available.

  • What are the main columns contained in the dataset?

    -The main columns in the dataset include date, opening price, maximum price, minimum price, close price, adjusted for splits and dividends, and the value representing the number of shares traded.

  • How does the tutorial handle data for dates beyond April 1st, 2020?

    -For more up-to-date data beyond April 1st, 2020, the tutorial suggests forking and rerunning a data collection script that is available from the extractor.

  • What is the purpose of creating a list of dataframes in the tutorial?

    -The purpose of creating a list of dataframes is to streamline the process by applying the same function to all dataframes using a for loop, rather than applying the function individually six times.

  • What is the significance of creating 'previous day close price' and 'change in price' columns?

    -The 'previous day close price' and 'change in price' columns are created to calculate the daily change regarding the close price, which is essential for analyzing stock performance over time.

  • How are the moving average columns created in the tutorial?

    -The moving average columns are created by using the rolling built-in function in pandas with a specified number like 50 or 200 to calculate the average of the last 50 or 200 days' closing prices.

  • What is the role of the 'percent change in price' column in the analysis?

    -The 'percent change in price' column represents the return on investment and is calculated by dividing the change in price by the previous day's close price.

  • What are the steps taken to save the modified dataframes as CSV files for use in Tableau?

    -The steps include running a for loop to apply the necessary calculations to each dataframe, and then using the 'to_csv' method to save each dataframe as a CSV file with an appropriate name.

  • How does the tutorial handle the creation of the dashboard in Tableau?

    -The tutorial guides through importing the CSV files into Tableau, converting them into a union, applying filters, creating parameters for date ranges, and then using these to build various visualizations such as line charts, histograms, and detailed tables.

  • What are the filters applied to the dataset to simplify the analysis?

    -The tutorial applies a data source filter to include only the last five years of data and creates parameters for start and end dates to further refine the data displayed in the visualizations.

  • How is the 'study period' calculated field used in the tutorial?

    -The 'study period' calculated field is used to filter the data based on the selected start and end dates. It returns a value of one for dates within the specified range and zero for dates outside the range.

  • What is the purpose of creating parameters for 'start date' and 'end date' in Tableau?

    -The parameters for 'start date' and 'end date' allow users to dynamically control the date range displayed in the visualizations, making the dashboard interactive and adaptable to different time periods of analysis.

  • How are the detailed tables for close price and volume created in the tutorial?

    -The detailed tables are created by dragging and dropping the relevant fields such as company, close price, previous day close price, change in price, and percent change in price into the Tableau worksheet. Calculations for the last day's data are also added to display the most recent information.

  • What customization options are available for the visualizations in Tableau as shown in the tutorial?

    -The tutorial demonstrates customizing colors for different companies, editing axis titles, adjusting the number of bins in histograms, and formatting numbers to display as currency with specific decimal places.

  • How are the arrows indicating price movement direction added to the detailed price table?

    -The tutorial creates calculated fields for 'upper price' and 'down price' based on the percent change in price. These fields are then dragged into the text shelf in Tableau, where the arrows are applied to indicate the direction of price movement, with green for positive changes and red for negative changes.

  • What is the final step in creating the dashboard after setting up all the visualizations?

    -The final step is to arrange the visualizations on the dashboard, add a title, format the dashboard for aesthetics, and then enter presentation mode to view the completed stock market dashboard.

Outlines

00:00

πŸ“ˆ Introduction to Stock Market Analysis Dashboard

The script introduces a new Tableau tutorial focused on creating an interactive stock market analysis dashboard. It mentions the use of a dataset from Google containing information on 6000 companies and outlines the plan to select six specific companies (Apple, Facebook, Google, Nvidia, Tesla, and Twitter) for the analysis. The tutorial will utilize pandas for data manipulation, creating new columns such as moving averages and percent changes, which are essential for compilation. The goal is to create various KPIs, highlighters for company comparison, and different visualizations including a multiple line chart for trading volumes, a detailed table for close price and volume, a line chart for moving averages and open prices, and a histogram representing price changes.

05:03

πŸ” Exploring the NASDAQ Data Set

This section delves into the specifics of the NASDAQ data set, which includes historical prices for stocks and ETFs traded on the platform. The data set is extensive, over 500 megabytes, and contains prices up to April 1st, 2020. Viewers are directed to the tutorial's description for a download link or to the GitHub repository for the six specific company files needed for the dashboard. The data set's structure is explained, with seven main columns: date, opening price, max price, min price, close price (adjusted for splits and dividends), and volume (number of shares traded). The script emphasizes the use of pandas for preliminary data manipulation before importing it into Tableau.

10:03

πŸ”§ Data Manipulation with Pandas

The tutorial proceeds with instructions on how to manipulate the data using pandas in a Jupyter notebook. It guides through the process of importing CSV files for the six selected companies and creating a list of dataframes. The script details how to calculate moving averages (50 and 200 days) and other new columns such as 'previous day close price', 'change in price', and 'percent change in price'. These calculations are done in a loop to apply the same functions across all dataframes. The section also explains how to create additional columns for volume changes and save the modified dataframes as new CSV files for use in Tableau.

15:04

πŸ“Š Creating Interactive Visualizations in Tableau

After saving the modified CSV files, the script shifts to Tableau for creating interactive visualizations. It describes how to import the CSV files into Tableau, combine them into a single table, and add a 'company' column for differentiation. The tutorial then guides through adding data source filters to focus on the last five years of data. It proceeds to create parameters for start and end dates, a calculated field for the study period, and demonstrates how to visualize trading volume across companies based on the selected date range. The section also covers customizing the appearance of the visualizations, including colors and chart titles.

20:09

πŸ“ˆ Advanced Visualization Techniques

This part of the script focuses on creating more complex visualizations, such as a histogram for price percent change and a multiple line chart for moving averages and open prices. It explains how to set up the bins for the histogram, customize axis titles, and format the visualizations. The tutorial also details the creation of a detailed price table, showcasing how to use calculated fields to display the last day's data and format the table for clarity. The section includes instructions on adding arrows to indicate price changes and customizing the table's appearance with borders and currency formatting.

25:11

πŸ“Š Detailed Volume Analysis

The script continues with the creation of a detailed volume table, explaining how to organize the data in rows and columns, format the numbers, and add arrows to indicate volume changes. It covers the process of creating calculated fields for 'down volume' and 'upper volume' and how to apply conditional coloring to reflect changes. The tutorial also includes steps for formatting the table with borders and centering the text for a polished presentation.

30:12

πŸ“‹ Creating Text Sheets for Key Metrics

The tutorial moves on to creating text sheets to display key metrics such as the last day's trading details, total volume, lowest and highest prices within the study period. It explains how to create calculated fields for these metrics and format them for clarity. The script details the process of adding these text sheets to the dashboard, hiding unnecessary titles, and ensuring the information is prominently displayed and easy to read.

35:13

🏒 Adding Company Logos to the Dashboard

In this section, the script describes how to enhance the dashboard by adding company logos for visual identification. It provides instructions on importing images and positioning them on the dashboard. The logos are added as floating objects and placed in designated areas to correspond with the companies' data in the visualizations.

40:19

🎨 Finalizing the Dashboard Design

The tutorial concludes with final touches to the dashboard design. It covers arranging the layout, adjusting the size of the visualizations, and formatting the dashboard background and padding. The script also explains how to add a title to the dashboard, center it, and set the appropriate font size. The goal is to create a cohesive and visually appealing dashboard that is easy to navigate and understand.

45:24

πŸ“‘ Organizing the Dashboard Layout

This part of the script focuses on the final organization of the dashboard layout. It details the process of arranging the various sheets and KPIs within the dashboard, including adjusting their size and position for optimal viewing. The tutorial also explains how to apply highlighters to the tables and charts to enable interactive comparison between companies. The section concludes with adding logos for the companies and setting the dashboard to presentation mode to showcase the completed stock market analysis dashboard.

Mindmap

Keywords

πŸ’‘Tableau

Tableau is a data visualization software platform used for interactive data analysis and sharing. In the context of the video, it is the primary tool used to create an interactive dashboard for stock market analysis, demonstrating how to manipulate and visualize data to gain insights into stock performance.

πŸ’‘Dashboard

A dashboard in this video refers to a user interface that organizes and presents information in a way that is easy to read and understand at a glance. The tutorial focuses on creating a stock market analysis dashboard using Tableau, which includes various charts and tables to display key performance indicators (KPIs) of different companies.

πŸ’‘Stock Market Analysis

Stock market analysis involves examining financial data to assess the performance of stocks and make informed investment decisions. The video's theme revolves around creating a dashboard for this purpose, using data from various companies to visualize trends, changes, and other relevant metrics.

πŸ’‘Pandas

Pandas is a Python library used for data manipulation and analysis. In the script, it is mentioned as a tool to preprocess the data by creating new columns such as moving averages and percent changes, which are essential for the subsequent analysis in Tableau.

πŸ’‘Data Manipulation

Data manipulation refers to the process of transforming and organizing data into a format suitable for analysis. The video describes using pandas to manipulate stock market data by creating new columns that will be used in the analysis, such as moving averages and percent changes.

πŸ’‘Moving Average

A moving average is a technical analysis indicator that helps smooth out price data by creating a constantly updated average price. The script explains how to calculate a 50-day and a 200-day moving average using pandas, which are later visualized in the Tableau dashboard to identify trends.

πŸ’‘Percent Change

Percent change is a measure of the relative change in a variable over time. In the context of the video, it is used to calculate the daily change in stock prices and is visualized in a histogram to show the distribution of price changes across different companies.

πŸ’‘KPIs (Key Performance Indicators)

KPIs are quantifiable measures used to track the performance of a company or stock. The video mentions creating different KPIs such as volume of different companies and price changes, which are displayed in the dashboard to provide a quick overview of the companies' performance.

πŸ’‘Jupyter Notebook

A Jupyter Notebook is an open-source web application that allows users to create and share documents containing live code, equations, visualizations, and narrative text. In the script, it is suggested as the environment where pandas is used to preprocess the data before it is visualized in Tableau.

πŸ’‘Data Visualization

Data visualization is the graphical representation of information and data. The video script describes the creation of various charts and tables in Tableau, such as line charts for volumes, histograms for percent changes, and detailed tables for close prices and volumes, to visually represent the analyzed data.

πŸ’‘NASDAQ

NASDAQ is a stock exchange platform for technology companies and is known for its electronic trading platform. The script mentions that the dataset used in the tutorial contains historical data prices for all tickers currently trading on NASDAQ, which is the source of the data for the stock market analysis.

Highlights

Introduction to a new Tableau tutorial for creating an interactive stock market analysis dashboard.

Use of a dataset containing information on approximately 6000 companies available on Google.

Utilization of six specific company files: Apple, Facebook, Google, Nvidia, Tesla, and Twitter for dashboard creation.

Employment of pandas for data manipulation to generate new columns such as moving average and percent change.

Explanation of creating Key Performance Indicators (KPIs) for different companies with interactive highlighters.

Demonstration of creating a multiple line chart for different company trading volumes over time.

Inclusion of a detailed table showcasing close price and volume data.

Introduction of a multiple line chart illustrating moving averages and open prices.

Use of a histogram to represent the percent change in price for different companies.

Guidance on exploring and downloading the NASDAQ historical stock market dataset.

Instructions on importing CSV files into a Jupyter notebook for data processing with pandas.

Tutorial on creating a list of dataframes to streamline data manipulation processes.

Step-by-step guide on calculating moving averages and previous day's close price using pandas.

Method for calculating daily price changes and percent changes in price with pandas.

Process of creating new columns for volume changes and percent changes in volume.

Direction on saving manipulated dataframes as CSV files for use in Tableau dashboard creation.

Technique for combining multiple CSV files into a single union table in Tableau.

Use of data source filters to focus on the most recent five years of stock data.

Creation of parameters for start and end dates to dynamically filter the data visualization.

Design and layout of the final interactive stock market dashboard in Tableau.

Transcripts

play00:00

hello guys and welcome to this new

play00:02

Tableau tutorial in this video I will

play00:04

show you how to create the following

play00:06

interactive dashboard which is about

play00:08

stock market analysis the data set that

play00:11

you are going to use is available on

play00:13

Google and it contains data for about

play00:16

6000 companies to create our dashboard

play00:19

we are going to pick six files for six

play00:21

different companies which are

play00:24

Apple Facebook Google Nvidia Tesla and

play00:28

Twitter and also we are going to use

play00:30

pandas with its built-in functions to

play00:33

manipulate our data and create new

play00:36

columns that you will use in our

play00:37

analysis like for example moving average

play00:40

and percent change which are mainly used

play00:42

for compilation as you can see here we

play00:44

are going to create different kpis

play00:47

we'll have also highlighter for

play00:49

different companies as you can see here

play00:50

for example if we choose the company we

play00:52

can see the different values we're going

play00:55

to create a multiple line chart for

play00:57

different volumes of different companies

play00:58

same thing we are going to create a

play01:00

detailed table for close price and

play01:02

volume

play01:03

another multiplying chart for moving

play01:05

average and the open price and also a

play01:08

histogram for different companies which

play01:10

represent percent change in price so now

play01:13

let's explore our data set so here we

play01:16

have stock market data set which

play01:18

represent historical data prices of

play01:21

NASDAQ trading stocks and ETFs we can

play01:23

find this link in the description and as

play01:26

you can see here it is a huge data set

play01:28

which is more than 500 megabytes

play01:31

so you can either choose to download

play01:33

this data set or you can find also the

play01:35

links to my GitHub repository where you

play01:38

can download the six files that you are

play01:40

going to use to create our dashboard as

play01:43

we have said this data set contains

play01:44

historical data prices for all tickers

play01:47

currently trading on NASDAQ

play01:49

and it contains prices for up to April

play01:52

1st 2020 and if you need more up-to-date

play01:55

data you can fork and rerun data

play01:57

collection script also available from

play02:00

that extractor we have mainly seven

play02:02

columns right so we have the date

play02:06

specifies trading date we have opening

play02:08

price

play02:09

the maximum price during the day the

play02:11

minimum price during the day close price

play02:14

adjusted for splits

play02:15

for both dividends and splits and also

play02:18

we have the value which represents the

play02:20

number of shares that change the hands

play02:22

during a given day

play02:23

but as I said we are not going to use

play02:25

directly these files and upward them to

play02:28

Tableau but to again first to use pandas

play02:31

in order to create new calendars that do

play02:33

I want to use in our analysis

play02:35

so you open your jupyter notebook and if

play02:38

you are not familiar with pandas then

play02:40

you can find the links to the resulting

play02:42

files that you are going to create using

play02:43

pandas and you can use them directly to

play02:46

create the dashboard

play02:47

so first we import

play02:49

pandas aspd right

play02:53

next we are going to import our CSV

play02:55

files so the first one is Apple

play02:59

PD Dot

play03:01

read CSV right

play03:04

and its name is aapl.csv

play03:09

next we have Facebook

play03:12

so it is PD Dot edit CSV is FB dot CSV

play03:20

next we have Google

play03:23

PD dot read CSV and it is Google

play03:30

to CSV

play03:32

next we have Nvidia right

play03:37

PPT

play03:40

nvda dot CSV

play03:45

next we have Tesla

play03:53

tsla.csv

play03:57

and the last one is Twitter

play04:00

the same thing PD dot read CSV

play04:04

and it is twtr.csv

play04:09

execute that

play04:11

if we write Apple dot the head

play04:15

so get the first file

play04:17

same thing for Facebook

play04:29

Google dot head

play04:37

Nvidia

play04:40

we have Tesla

play04:43

and finally we have Twitter

play04:48

okay so like that we have all the files

play04:52

that we need

play04:53

and the second thing that we are going

play04:55

to do is to create a list of data frames

play04:57

so we call it DFS

play04:59

which will contain all data frames so we

play05:02

have apple

play05:05

then we have Facebook

play05:11

Google

play05:13

Nvidia

play05:14

[Music]

play05:17

Tesla and Twitter

play05:20

the reason to create our list is rather

play05:23

than applying the same function six

play05:26

times we are going to use a for Loop and

play05:29

apply the same function to our list

play05:32

the first thing that we are going to do

play05:33

is to create the moving average

play05:36

so to do that we'll write for DF in our

play05:39

list

play05:40

DFS

play05:42

so for each data frame I'm going to add

play05:45

a calendar which is within average 50.

play05:49

which is equal to DF dot take the close

play05:53

price and we use rolling built in

play05:56

function

play05:57

50.

play05:58

dot mean

play06:01

right

play06:03

so we copy that

play06:05

and you do the same thing for moving

play06:07

average 200.

play06:10

so 200 and here same thing 200.

play06:14

so if we run that

play06:17

and do for example we select Apple dot

play06:20

head

play06:22

we get our two new columns as you can

play06:25

see here we have not a number for the

play06:28

first rows because for the first one it

play06:31

starts from 50 for the second one it

play06:33

starts from 200 so if you write 50

play06:36

run

play06:37

to get our value starting from 50.

play06:41

same thing if we write 200

play06:44

all right

play06:46

as you can see here it starts from this

play06:48

row okay

play06:50

next we are going to create another

play06:52

calendar which is named previous day

play06:53

close price so I'm going to use this

play06:56

column in order to calculate the daily

play06:58

change regarding the close price okay so

play07:01

to do that right for the F in DFS

play07:05

so the f

play07:07

we name it previous

play07:10

day

play07:11

close price

play07:14

is equal to

play07:15

DF dot we set close price and we are

play07:19

going to use it shift build infection

play07:21

one

play07:22

run that

play07:24

same thing if we take apple dot head

play07:29

so we have previous day close price this

play07:32

one it is not a number because it is the

play07:34

first one but for the second one for

play07:36

example if we take the date which is

play07:37

this one

play07:39

the previous close price is this one and

play07:41

it is the same in here

play07:43

same thing for 17th before we have this

play07:46

price and it is the same in here okay

play07:49

now I'm going to create another color

play07:51

that will name change in price okay so

play07:54

same thing for TF in DFS

play07:58

the F we said change

play08:01

in price

play08:03

it is equal to

play08:05

DF close price

play08:09

minus the f

play08:11

the column that we have created so

play08:12

previous

play08:14

day

play08:15

close price

play08:18

so if we run that same thing Apple dot

play08:21

head

play08:22

we get our change in price okay so if it

play08:26

is negative it means it decreased if it

play08:28

is positive it increased

play08:32

so we add new sales

play08:35

next to calculate the percent change or

play08:37

the return

play08:38

and to do that we are going to use PCT

play08:40

change or person change built-in

play08:43

function

play08:44

same thing right for DF in DFS

play08:49

DF we call it

play08:51

percent

play08:53

change

play08:54

in price right

play08:57

it is equal to

play08:58

DF Dot close

play09:02

dot PCT change or percent change

play09:07

execute that same thing right Apple dot

play09:11

head

play09:12

get our percent change so it is the

play09:16

close price minus previous day close

play09:18

price so it is changing price divided by

play09:21

previous day close price okay so this is

play09:24

the return

play09:25

now I'm going to create three more

play09:27

columns and this time I can create that

play09:30

using the value so write for DF in DFS

play09:35

the f

play09:37

so we set previous

play09:39

day

play09:41

value right

play09:43

it is equal to DF Dot volume dot shift

play09:49

and right one

play09:52

so if we write Apple dot head

play09:56

we get previous day volume as you can

play09:59

see here we have the following volume

play10:00

the previous day volume is this one and

play10:02

it is equal to this value

play10:06

same thing we'll calculate change in

play10:09

volume right

play10:12

so for DF in DFS

play10:15

DF

play10:18

change

play10:19

in volume

play10:23

it is equal to DF

play10:26

volume right

play10:29

minus

play10:30

DF

play10:33

previous day value

play10:38

okay same thing Apple dot head

play10:44

and here we have the change okay same

play10:47

thing it can be negative or it can be

play10:49

positive

play10:51

and the last column is percent change in

play10:54

value okay so four

play10:58

DF in DFS

play11:01

so DF

play11:03

percent

play11:05

change in volume

play11:09

it is equal to DF dot volume

play11:14

dot percent change

play11:18

okay

play11:21

and volume v it is capital case right

play11:26

so Apple dot head

play11:29

and we get our percent change in volume

play11:32

okay

play11:34

now what we are going to do is that we

play11:35

are going to save our data frames as CSV

play11:38

files that we are going to use to create

play11:40

our dashboard

play11:41

to do that right for the first one apple

play11:44

dot to CSV

play11:47

and we give it a name so write Apple

play11:51

dot CSV

play11:53

okay so by default it will be stored or

play11:56

it will be it will be saved in the same

play11:58

place where I have the Jupiter notebook

play12:00

but you can choose any location you want

play12:02

okay

play12:04

next one we have Facebook

play12:09

dot to CSV and we'll write the same

play12:13

thing Facebook

play12:14

dot CSV

play12:16

next we have google.csv

play12:20

it will be

play12:21

Google dot CSV

play12:24

same thing for NVIDIA right

play12:28

to CSV

play12:31

dot to CSV right and this is the same

play12:36

name so Nvidia

play12:38

dot CSV

play12:41

next we have Tesla right dot to CSV it

play12:46

is Tesla

play12:47

dot CSV and the last one it will be

play12:50

Twitter

play12:54

dot to CSV and same thing to write

play12:57

Twitter

play12:58

dot CSV

play13:00

if we execute that

play13:03

so get our files

play13:07

so here we have our list of the CSV

play13:09

files and when we drag apple and drop it

play13:12

in here

play13:13

we can see the following table now what

play13:16

we are going to do since all the tables

play13:18

have the same data structure and all the

play13:20

columns have the same data types so

play13:22

click on the down icon in here

play13:25

convert to Union

play13:28

would drag and drop all the files into

play13:30

our unit right

play13:33

Facebook Google

play13:35

Nvidia

play13:37

Tesla and Twitter

play13:40

apply

play13:42

okay

play13:43

and as you can see here a new current

play13:45

would be appeared which is table name

play13:48

so here we have one single table and we

play13:51

can distinguish between data from one

play13:53

table to another using this column which

play13:55

is table name

play13:57

so we are going to change its name into

play13:59

company so you click on the icon in here

play14:01

rename and you name it company

play14:05

okay

play14:07

same thing you click one more time

play14:09

aliasis and we remove dot CSV for all

play14:13

these files

play14:14

okay same thing for Facebook

play14:19

for Google

play14:20

Nvidia

play14:21

Tesla and Twitter

play14:24

okay

play14:25

so like that we get the name of the

play14:27

companies

play14:27

next to make our analysis much sampler

play14:30

we're going to add what we call data

play14:33

source filter so we click on ADD

play14:36

add

play14:38

date okay

play14:40

years next and here we select the last

play14:44

five years so 2020 19 18 17 and 16. okay

play14:49

okay

play14:51

so like that we have only in the last

play14:53

five years in the data set

play14:56

so you click on your worksheet

play14:58

and we are going to create two

play15:00

parameters so you click on the down icon

play15:02

in here

play15:03

create parameter

play15:06

we name it start date

play15:09

data type it will be a date

play15:12

range fixed add values from date okay

play15:17

same thing create another parameter

play15:21

and date

play15:24

data type it will be date

play15:27

range fixed add values from date okay

play15:32

next we create a calculated field so you

play15:34

click on down icon in here create

play15:36

calculated field and we name it study

play15:39

period

play15:42

so we say if date

play15:45

is greater or equal

play15:48

then start date

play15:51

and

play15:53

date

play15:55

is less or equal then and date

play15:59

give me one

play16:01

else zero

play16:04

and

play16:07

apply okay and we convert it to a

play16:10

dimension so we click convert to

play16:12

Dimension so you click in here

play16:15

show parameter same thing for the end

play16:18

date show parameter

play16:20

so you can decrease

play16:22

to the minimum right for start date and

play16:25

for maximum four and date what you are

play16:28

going to do is that we are going to

play16:29

visualize the volume for different

play16:31

companies depending on the date

play16:34

so with your control update into column

play16:37

and we select exact date

play16:40

same thing whichever control Up the

play16:42

Volume into the rows

play16:45

control company into color

play16:49

and as you can see here we have the

play16:51

volume for different companies

play16:54

into the filter we select one

play16:57

apply okay

play17:00

we double click on this axis

play17:03

we remove the title

play17:05

same thing for the date

play17:08

we remove the title

play17:11

and as you can see here if we change the

play17:13

date we can see our charts are changing

play17:15

we can also modify the colors so edit

play17:18

colors for Apple which is gray Facebook

play17:21

blue Google yellow Nvidia green Tesla

play17:26

red and Twitter

play17:28

choose this color

play17:29

apply okay

play17:32

so we name the sheet volume

play17:35

okay and we click on format workbook and

play17:40

we format our workbook so for worksheets

play17:42

we select bold

play17:44

like

play17:47

it

play17:48

for the titles we select bold black

play17:53

11.

play17:55

grid lines

play17:57

of

play17:59

zero lines same thing off

play18:03

and access sticks in Black axis rulers

play18:06

in Black

play18:08

okay we double click on the title and we

play18:11

put it in the center apply ok

play18:13

so like that we get our multiple line

play18:16

chart for the volume of different

play18:18

companies depending on the date

play18:20

next we are going to create a histogram

play18:22

for Price percent change so you click on

play18:25

new worksheet

play18:27

we name it price

play18:30

percent change

play18:32

all right

play18:34

double click on person change in price

play18:37

we click on show more histogram

play18:43

we'll remove this one

play18:45

would you like a drop company into color

play18:48

study period into filters we select one

play18:51

apply ok

play18:53

we click on the bins

play18:56

edit

play18:57

and we select 0.0025

play19:01

okay

play19:03

whether we click on the axis

play19:05

to remove bin

play19:09

and we select fixed

play19:12

so we select minus

play19:14

zero point

play19:16

one

play19:18

two zero point one

play19:21

okay so like that we get our histogram

play19:24

for Price percent change

play19:27

double click on the axis we remove the

play19:30

title

play19:33

we double click on the title I will put

play19:35

it in the center apply ok

play19:38

and like that we get our histogram for

play19:41

percent change in price

play19:43

next we are going to create multiplying

play19:45

chart for moving average and open price

play19:47

Sony worksheet

play19:50

all right moving

play19:52

average

play19:53

and open price

play19:59

names into the filters

play20:01

none

play20:03

we select ma200 ma50 and open

play20:08

apply okay

play20:10

whichever control up the date into the

play20:12

columns we select the exact date

play20:16

same thing with drag and drop media

play20:18

values into the rows

play20:20

we press on Ctrl key and we drag and

play20:22

drop usernames into the color we can

play20:25

edit the colors for example we click in

play20:27

here edit colors

play20:28

you can select for example winter right

play20:32

for ma200 we can select this color ma50

play20:37

discolor and for open we can select this

play20:40

color

play20:40

apply okay

play20:43

job company into filters we select one

play20:47

apply okay

play20:50

we show the filter and we select custom

play20:53

remove all

play20:55

and single value drop down double click

play20:58

on the access we remove the title

play21:02

same thing for the date

play21:06

whether we click on the title I will put

play21:08

it in the center apply ok

play21:11

right click on the axis format

play21:14

and we select numbers currency custom

play21:18

and we select zero decimal places

play21:21

okay

play21:23

so like that we get our multiplying

play21:25

chart for moving average and open price

play21:27

next we are going to create detailed

play21:30

price table

play21:31

worksheet

play21:33

so we name it detailed

play21:37

price

play21:38

table

play21:41

so we have company

play21:45

then we have close price

play21:48

it will be

play21:50

discrete

play21:51

next we have previous day close price

play21:55

Samsung it will be discrete

play21:59

then we have change in price

play22:03

I'm saying discrete

play22:06

and percent change in price we put it in

play22:09

text

play22:11

same thing it will be discrete

play22:16

but what we want really to do is to

play22:18

display the close price of the last day

play22:21

and we want to control this last day

play22:25

so to do that we are going to create

play22:26

calculated field

play22:29

we name it last day only

play22:34

and we say if date

play22:38

equals to Max

play22:41

since you want to control this last day

play22:43

we are going to put end date

play22:48

then

play22:50

one else

play22:54

zero and

play22:57

but as you can see here we have an error

play23:00

it says that cannot mix Aggregate and no

play23:03

aggregate arguments with this function

play23:06

so what we are going to do is that we

play23:07

are going to add LOD right

play23:10

so

play23:11

right fixed

play23:17

Max and date then one

play23:21

else zero

play23:23

so here we have last day only apply okay

play23:28

we convert it to dimension

play23:30

and would drag and drop it into the

play23:32

filters select one

play23:35

apply ok so as you can see here we have

play23:38

last day only and we can control it

play23:40

using the end date so we can

play23:44

show the start date

play23:46

show end date right

play23:49

and like that

play23:50

it is changing right

play23:53

but as you can see here we don't have a

play23:56

name for this column since we put it in

play23:58

text

play23:59

what we are going to do is that would

play24:00

drag and drop usernames into columns

play24:04

right click

play24:06

edit aliases and we put change

play24:10

in percentage

play24:13

okay

play24:15

we click on it format Pane and it will

play24:20

be percentage okay

play24:23

same thing for the remaining so right

play24:26

click format header numbers it will be

play24:29

custom

play24:31

number custom to decimal places

play24:33

same thing for this one

play24:36

number custom and for close

play24:40

number custom okay so like that we get

play24:44

our table we can also add study period

play24:47

to the filters you select one

play24:49

apply okay

play24:52

we can increase the width

play25:04

all right now we need to create the

play25:08

arrows right so you click on down icon

play25:11

in here

play25:12

create calculated field the first one we

play25:14

call it upper

play25:16

price

play25:18

so we say if

play25:21

percent change in price

play25:23

is positive right

play25:27

then

play25:29

so we copy and paste the upper row so

play25:32

same thing you can find the link in the

play25:34

description to this file right so we

play25:37

copy the upper row we put it

play25:42

in here

play25:43

and

play25:45

so this is Upper price apply okay

play25:50

we'll create another calculated field

play25:52

we name it down

play25:54

price

play25:56

same thing if

play25:58

percent change in price

play26:01

is negative right

play26:05

then

play26:08

so same thing we copy and paste the down

play26:11

arrow

play26:16

and

play26:18

apply okay

play26:21

so drag and drop Upper price into text

play26:24

same thing down price into text

play26:27

we click on text we click on Three Dots

play26:30

and we rearrange that right so

play26:34

we get put it in here same thing for

play26:37

down price

play26:39

we put it in here

play26:41

so Upper price we put it in

play26:45

green and down price we put it in red

play26:50

put it in the center apply ok

play26:53

so like that we have our rows so if we

play26:56

select another date

play26:57

where we have both positive and negative

play26:59

so as you can see here if it is positive

play27:01

then it will be green if it is negative

play27:04

it will be red

play27:06

now we are going to format our sheet

play27:08

double click put it in the center apply

play27:12

okay

play27:13

for the price we are going to add the so

play27:16

format

play27:18

it will be currency custom

play27:22

same thing for this one currency

play27:24

system

play27:26

change in price the same thing currency

play27:28

custom

play27:29

okay

play27:31

it will be

play27:32

in the center same thing for the header

play27:35

in the center

play27:40

and we add our borders

play27:43

put everything in Black

play27:53

so just for a change in price we have to

play27:56

put it as currency standard right so

play27:59

like that to get our detail table for

play28:01

the price next we are going to add

play28:03

another detailed table for the volume

play28:06

so click on your worksheet

play28:10

we name it detailed

play28:13

volume

play28:14

table

play28:16

okay

play28:18

sudra can drop the company into the rows

play28:23

next we have value

play28:27

it will be discrete

play28:30

next we have previous day volume

play28:32

same thing it will be discrete

play28:36

then we have change in volume

play28:40

discrete

play28:42

and percent change in volume we put it

play28:44

in text

play28:46

same thing it will be discrete

play28:49

so increase the size

play28:51

and we put visual names into the colors

play28:57

now we select last day only

play29:02

one

play29:03

apply okay

play29:06

so show

play29:08

parameter

play29:10

show parameter

play29:13

study period we put it as one

play29:17

apply okay

play29:19

convert it into a percentage

play29:22

format

play29:23

and it will be percentage

play29:27

so right click format

play29:29

we put everything in the center right

play29:34

and now we'll add the arrows

play29:36

so for down price we duplicate this one

play29:41

and edit

play29:44

we name it down volume right

play29:51

and same thing percent change in value

play29:58

apply okay

play30:01

same thing for upper price

play30:03

so duplicate

play30:06

edit

play30:08

and it will be other

play30:12

volume

play30:13

and same thing we change the price into

play30:15

volume

play30:19

apply okay

play30:21

drop upper volume into text same thing

play30:25

for down volume

play30:28

click on text Three Dots and we'll

play30:31

rearrange

play30:33

so we get paste same thing cut

play30:38

paste so upper we put it

play30:41

in

play30:43

green

play30:44

and down we put it in right

play30:48

in the center apply okay

play30:52

now we can format that so format add the

play30:55

borders and put everything in Black

play31:08

you can increase the width

play31:18

like that you get our detailed volume

play31:21

table

play31:22

we just put the title in the center

play31:25

apply okay and now I'm going to create

play31:28

our text sheets

play31:30

so click on your sheet the first one we

play31:32

name it last day

play31:38

to create one calculated field and we

play31:41

name it last day text

play31:45

oh

play31:46

okay

play31:47

and it would be

play31:49

last day

play31:53

apply okay

play31:54

we create another one

play31:56

create calculated field

play31:58

we name it last day

play32:00

and it would be Max

play32:04

end date

play32:08

apply okay

play32:10

so we drag and drop

play32:13

last day text into text

play32:16

same thing last day into text

play32:21

so we hide title

play32:23

and we are going to format that

play32:26

we select Pane and we select this format

play32:33

so like that we get a clear idea about

play32:36

the day that we are selecting as last

play32:38

day because as you know on Saturday and

play32:41

Sunday we don't have data all right so

play32:44

here we know exactly which day of the

play32:46

week we are selecting

play32:48

we're going to format that so we put it

play32:50

in the center

play32:51

we click on text

play32:55

so the first one we put it in

play32:59

then and the second one we put it in

play33:02

nine

play33:04

apply okay

play33:06

so here we have our last day

play33:08

so duplicate this

play33:11

we'll create another one we call it last

play33:14

day

play33:16

total volume right

play33:21

so we copy

play33:24

create calculated field

play33:26

we name it last day total volume and we

play33:29

add our text

play33:32

apply

play33:33

okay

play33:35

so remove this we remove this

play33:38

we drag and drop last day total volume

play33:40

into text

play33:42

would you like Angela plus day only into

play33:44

the filters and we select one

play33:47

apply okay and with drag and drop the

play33:50

volume in two texts

play33:52

so here we have last day total volume

play33:55

Samsung click on text

play33:58

we'll put the first one

play34:00

in 10 and the second one in nine

play34:05

apply okay

play34:07

same thing could duplicate this one

play34:10

and we name it lost

play34:14

price independent

play34:20

okay

play34:22

so you remove everything

play34:25

would you like a job study period into

play34:27

the filters we select one apply okay

play34:31

we create calculated field we name it

play34:34

lowest price in the period same thing we

play34:37

add our text

play34:40

apply okay

play34:42

drag and drop lowest price into text

play34:46

and same thing we have here the low

play34:48

price in two text

play34:52

we select

play34:54

minimum

play34:57

you can also format that

play34:59

and it will be currency custom

play35:02

all right

play35:03

same thing click on text

play35:06

push the first one

play35:09

in 10 and the second one in nine

play35:12

apply okay

play35:16

increase a little bit all right

play35:17

duplicate this one

play35:20

so now we select the highest

play35:23

price

play35:25

in the period right

play35:27

and as you know the period depends on

play35:29

the start date and end date so we keep

play35:32

the study period

play35:34

and we remove that

play35:37

we create another calculated field

play35:41

we name it highest price in the period

play35:44

same thing string highest price in the

play35:47

period apply okay drag and drop it into

play35:51

text

play35:52

and also would you like interoper high

play35:55

into text

play35:57

and we select the maximum

play36:01

same thing we format that

play36:04

and it will be custom currency

play36:09

we click on text

play36:12

we put this as 10 and this one as nine

play36:17

apply okay

play36:20

so duplicate this one

play36:23

will have

play36:25

total volume

play36:27

in the period right

play36:34

we create another regulated field we

play36:36

name it total volume in the period and

play36:38

the string it will be the same

play36:41

apply okay

play36:43

so remove the two

play36:45

drag and drop total volume into text

play36:49

and same thing would you like and drop

play36:51

the volume into text

play36:54

we'll click on it

play36:57

so the first one it will be 10 and the

play37:01

second one it will be

play37:03

nine

play37:04

apply okay

play37:05

now create our title okay

play37:09

so new worksheet we name it title okay

play37:14

and we create calculated field we name

play37:17

it title

play37:19

and it's going to be

play37:21

stock

play37:24

market right dashboard

play37:31

apply okay

play37:33

so you put it in text

play37:36

we hide this title

play37:40

right click format and we put it as 48

play37:47

and it will be in the center

play37:50

so like that you have created all the

play37:52

text sheets next we are going to create

play37:54

our dashboard so you click on new

play37:57

dashboard

play37:59

we Define our size so we have 1850

play38:04

and

play38:05

1050 okay

play38:09

now I'm going to add blacks right so

play38:12

first one

play38:14

have your second one

play38:18

third one

play38:21

Force

play38:24

fifth

play38:27

okay

play38:30

another one in here

play38:34

so like that we have for the four

play38:39

okay

play38:45

we add another one on the top

play38:48

like that

play38:50

and we add the remaining for the kpi so

play38:53

one

play38:55

blank

play38:57

another blank

play39:00

another blank

play39:03

another blank

play39:05

and another blank

play39:08

okay

play39:14

next you click on dashboard format

play39:18

we select the following color right

play39:22

next for the first one which is for the

play39:25

title background we select the third one

play39:28

seventy percent

play39:31

okay

play39:34

we add the outer padding right put it as

play39:38

15.

play39:41

for the remaining we are going to add

play39:42

the background as white

play39:44

so for this one it will be white

play39:48

and then same thing 15.

play39:53

same thing for the others so here 15

play39:57

and it will be white

play40:03

same thing for this one

play40:10

put it to White

play40:19

background white

play40:26

15

play40:28

or there's none and background white

play40:33

same thing for this one

play40:38

background to White

play40:45

15.

play40:47

White

play40:54

15.

play40:56

same thing

play41:01

15.

play41:03

right

play41:15

15.

play41:17

okay and the last one put it same thing

play41:21

as 15.

play41:24

and background white all right

play41:28

so now we have to rearrange the sizes

play41:30

okay

play41:43

and here same thing increase little bit

play41:48

like that

play41:58

okay so now we have our design next we

play42:02

are going to drag and drop our sheets

play42:04

so we select floating right and you

play42:08

start by volume right

play42:12

so here

play42:14

we have the end dates

play42:17

put it like that

play42:21

and edit title we put it in the center

play42:24

okay

play42:26

same thing start date

play42:30

put it in here

play42:33

and edit title in the center right

play42:39

we add our highlighters so company

play42:44

we put it in here right

play42:50

edit title

play42:52

remove highlight to put it in the center

play42:54

okay

play42:57

next here we remove the title

play43:00

and we put it

play43:03

in here right

play43:10

now we increase our size

play43:21

okay so we have our volume

play43:29

next we have the price percent change

play43:31

right to put it in here same thing

play43:36

so put it like that

play43:40

decrease

play43:44

put it in here

play43:48

you can also add the legend but it's the

play43:51

same

play43:53

okay

play43:58

so remove the title and put it like that

play44:04

okay

play44:07

next we add the moving average and the

play44:10

open price right

play44:13

foreign

play44:21

so here we have

play44:24

our Legend remove the title put it

play44:29

in here like that

play44:37

for the company

play44:39

same thing remove

play44:42

the title

play44:43

I'll put it in here

play44:46

so you can change the company

play44:51

okay let's create

play44:56

the highlighter also it is applied on

play44:58

the histogram

play45:01

next we are going to add our tables so

play45:05

detailed price

play45:09

so we hide the title

play45:13

same thing for the volume

play45:17

we hide the title

play45:18

and also we hide the header right

play45:23

foreign

play45:33

same thing for this one has entire View

play45:37

and we are going to rearrange that

play45:41

so for the first one

play45:48

put it in here like that

play45:53

and we add this one

play45:57

so decrease decrease

play46:02

same thing for this one

play46:06

in degrees

play46:49

okay

play47:00

all right so like that we have

play47:03

our detail table

play47:05

okay

play47:06

for both close price and volume okay and

play47:10

as you can see here when we select the

play47:12

highlighter it is applied on the tables

play47:14

and also the histogram with the multiple

play47:17

line chart

play47:19

next we are going to add our kpis right

play47:21

so we have last day

play47:24

we hide the title

play47:28

and you put it in here right

play47:36

okay

play47:38

next we have last day total volume same

play47:41

thing

play47:42

we'll hide the title

play47:46

put it like that

play47:51

lowest price

play47:55

High title

play48:01

put it inside

play48:05

foreign

play48:12

highest price same thing I at all

play48:24

inside like that

play48:27

and last one is total volume

play48:30

High title

play48:33

same thing

play48:39

put it inside

play48:43

okay

play48:45

now we'll add our title

play48:48

same thing High title

play48:51

quiz it like that like that

play48:55

format for the shading we select none

play48:59

and we put it inside

play49:05

okay

play49:11

just put it in the center

play49:19

and now add the logos for the companies

play49:22

so same thing floating we click on

play49:25

double click on image

play49:28

first one is Apple logo okay

play49:36

so put it like that

play49:44

all right

play49:46

same thing double click

play49:50

Facebook

play49:58

all right

play50:03

so I have Google

play50:10

just like that

play50:15

next we have Nvidia

play50:20

seems like we put it in here

play50:30

then we have Tesla

play50:35

so the links to download these logos are

play50:39

available in the description

play50:40

okay

play50:46

and now add the last one which is

play50:48

Twitter

play51:07

so now if we select the presentation

play51:10

mode and like that we get our final

play51:12

stock market dashboard

play51:14

so that's it for this tutorial I hope

play51:16

that you have learned new things thanks

play51:18

for watching and see you in the next

play51:19

tutorial

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Stock MarketTableau TutorialData AnalysisPandasDashboardNASDAQFinancial DataInteractive ChartsTechnical AnalysisInvestment Insights