0% found this document useful (0 votes)
21 views7 pages

Assignment 1

Grggrgrgt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views7 pages

Assignment 1

Grggrgrgt
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Assignment-1

Please read the below instructions carefully:


A group can have 3-5 members max. (Not following the guidelines will be penalized)
Please write the name of group members along with their Roll no. in the Top Right.
Please submit the assignment in PDF format.
Please stick to the word limit and timings for submission.
Please submit the assignment individually.
Please attempt all the 3 questions.
Plagiarism will be penalized.
Total Marks -15

Q1. If your manager tasks you with creating visually appealing charts or graphs for
an upcoming client presentation, specifically for two types of data: (a) Numerical
data and (b) Time series data, outline four distinct charts for each data type, totaling
eight charts. Alongside each, provide concise instructions on how to construct them
in Tableau. Additionally, incorporate hand-drawn illustrations for better clarity.
(5 marks)

Q2. In the context of the Sample Superstore dataset, focus on the ship date associated
with each order. The task at hand is to transform these ship dates into a specific
format given below, and you are expected to achieve this using both the IF and CASE
statements separately. (5 marks)

Ship date
19-10-2023
23-07-2016
02-01-2015
23-06-2023
Ship date
19 October 2023
23 July 2023
02 January 2015
Write all the steps required and briefly explain the 23 June 2023 steps
also. Use can use LEFT, RIGHT, MID, SPLIT commands. Paste the screenshot of
the converted format.

Q3. Provide instructions or steps for creating a Gantt chart and a Donut chart using
the Sample Superstore dataset. Additionally, include hand-drawn illustrations for
each chart to visually demonstrate the process. (5 marks)

Numerical Data

1. Bar Chart:
o Description: Compares values across categories.
o Instructions: Drag the categorical variable to the Columns shelf and the
numerical variable to the Rows shelf. Select Bar chart from the Show Me panel.

Opens in a new window


[Link]

bar chart
2. Line Chart:
o Description: Shows trends over time for numerical data.
o Instructions: Drag the date or time variable to the Columns shelf and the
numerical variable to the Rows shelf. Select Line chart from the Show Me panel.

Opens in a new

window [Link]

line chart

3. Scatter Plot:
o Description: Visualizes the relationship between two numerical variables.
o Instructions: Drag one numerical variable to the Columns shelf and the other to
the Rows shelf. Select Scatter Plot from the Show Me panel.

Opens in a new window


[Link]

scatter plot
4. Histogram:
o Description: Displays the distribution of a numerical variable.
o Instructions: Drag the numerical variable to the Columns shelf. Select Histogram
from the Show Me panel.

Opens in a new

window [Link]

histogram

Time Series Data

1. Line Chart:
o Description: Shows trends over time.
o Instructions: Same as for numerical data.
Opens in a new

window [Link]

line chart

2. Area Chart:
o Description: Highlights the cumulative value over time.
o Instructions: Drag the date or time variable to the Columns shelf and the
numerical variable to the Rows shelf. Select Area chart from the Show Me panel.

Opens in a new

window [Link]

area chart

3. Gantt Chart:
o Description: Visualizes project timelines.
o Instructions: Drag the date or time variable to the Columns shelf, the activity or
task to the Rows shelf, and the duration to Size. Select Gantt Bar from the Marks
card.

Opens in a new window


[Link]

Gantt chart

4. Heatmap:
o Description: Shows data points over time and categories using color.
o Instructions: Drag the date or time variable to the Columns shelf, the category to
the Rows shelf, and the measure to Color. Select Square from the Marks card.

Opens in a new window


[Link]

heatmap
Question 2: Transforming Ship Dates
Using IF statement:

SQL
IF YEAR([Ship Date]) = YEAR(TODAY()) THEN
DATE_FORMAT([Ship Date], '%d %B %Y')
ELSE
DATE_FORMAT([Ship Date], '%d %B %Y')
END

Using CASE statement:

SQL
CASE YEAR([Ship Date])
WHEN YEAR(TODAY()) THEN DATE_FORMAT([Ship Date], '%d %B %Y')
ELSE DATE_FORMAT([Ship Date], '%d %B %Y')
END

Explanation:

• Both statements check if the year of the Ship Date is the current year.
• If it is, the date is formatted as "Day Month Year".
• If not, the date is formatted as "Day Month Year".

Question 3: Creating Gantt and Donut Charts


Gantt Chart

1. Prepare Data: Ensure the data has columns for Order ID, Order Date, Ship Date, and
Ship Mode.
2. Create Calculated Field: Calculate the Duration in days using DATEDIFF('day',
[Order Date], [Ship Date]).
3. Build Chart: Drag Order ID to the Rows shelf, Order Date to the Columns shelf,
Duration to Size, and Ship Mode to Color. Select Gantt Bar from the Marks card.

Donut Chart

1. Prepare Data: Ensure the data has columns for Ship Mode and Sales.
2. Build Chart: Drag Ship Mode to the Labels shelf and Sales to the Size shelf. Select Pie
chart from the Show Me panel. Adjust the inner radius to create a donut shape.

You might also like