0% found this document useful (0 votes)
20 views

Data Visualization Lab Manual-1

The document provides a comprehensive lab manual for data visualization using Power BI and Tableau, detailing steps to create various visualizations such as choropleth maps, line charts, pie charts, and dashboards for sales, HR, and Amazon Prime datasets. It includes specific instructions for analyzing revenue trends, employee attrition, GDP comparisons, and more, with a focus on creating interactive and informative visual displays. Additionally, it covers the creation of calculated fields and measures to enhance data analysis capabilities.

Uploaded by

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

Data Visualization Lab Manual-1

The document provides a comprehensive lab manual for data visualization using Power BI and Tableau, detailing steps to create various visualizations such as choropleth maps, line charts, pie charts, and dashboards for sales, HR, and Amazon Prime datasets. It includes specific instructions for analyzing revenue trends, employee attrition, GDP comparisons, and more, with a focus on creating interactive and informative visual displays. Additionally, it covers the creation of calculated fields and measures to enhance data analysis capabilities.

Uploaded by

p.nagaraj.bly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Data Visualization Lab Manual

1. Analysis of revenue in sales dataset:


i) Create a choropleth map (fill the map) to spot the special trends to show
the state which has the highest revenues
Steps: a) .Open Power BI and load the Sales Excel File.
b) Drag State Column to Location Field
c)Drag Revenue column to Legend Field

ii) Create a line chart to show the revenue based on the month of the year.
Steps:a)Select Line chart
b)Drag Year column to X-Axis and Revenue column to y axis

iii) Create a bin of size 10 for the age measure to create a new dimension to
show the revenue.
Steps: a)Right Click on Age field and select New group and change size of bins
to 10.
iv) Create a donut chart view to show the percentage of revenue per region
by creating zero access in the calculated field.
Steps a) Select Donut Chart
b)Drag region field to Legend and Revenue to value and right click on value
and set it to percentage
vi) Create a calculated field to show the average revenue per state &
display profitable & non-profitable state.
Steps
a)Click on new measure from modelling tab and then enter the below
formulas one by one.
b)Formula to calculate
Average Revenue Per State= AVERAGE('Sales'[Total Revenue])
Profitable & Non-Profitable State= IF(AVERAGE('Sales'[Total Revenue]) > 70,
"Profitable", "Non-Profitable")
c)Select Table from Visualization tab
Drag State, Average Revenue Per State, Profitable & Non-Profitable State
into column after selecting table from visualization tab

vii) Build a dashboard.


Arrange all the all charts in a single page
2.
A) Visualize the countries data given in the dataset with respect to latitude and longitude along
with country name using symbol maps
Steps -Drag latitude to latitude and longitude to longitude
Country to legend
Sum of GDP to Toot tip
Year to bubble size

b) Create a bar graph to compare GDP of Belgium between 2006 – 2026.


Select any one bar gragh from visualization Pane
o Drag Country field to filters on visual and then select by Belgium by filtering.
o Drag Year Field to Filters on visual and then select years 2006 and 2026 by filtering.
o Drag GDP to X-Axis and Year to Y-Axis
o Drag Year to Legend.
o Go to Format Visual and enable data labels.

c) Using pie chart, visualize the GDP of India, Nepal, Romania, South Asia, Singapore by the year
2010.
Select PIE Chart and then drag country to legend and GDP to values and then drag country and
Year field to filter the respective countries and year given above.
d) Visualize the countries Bhutan & Costa Rica competing in terms of GDP
Select PIE Chart and then drag country to legend and GDP to values and then drag country and
Year field to filter the respective countries above.

E) Create a scatter plot or circle views of GDP of Mexico, Algeria, Fiji, Estonia from 2004 to 2006.

Select scatter plot and drag country to legend, GDP to x-axis, and select above countries, years in
the filter page .
F) Arrange all the charts in a single page
Program-3) Analysis of HR Dataset:
Load Dataset
i)Create KPI to show employee count, attrition count, attrition rate, attrition count, active
employees, and average age.
Steps
Create new measure for employee count, attrition count, attrition rate, attrition count, active
employees, and average age by applying these formulas by going to modelling tab and click on
new measure and enter the below formulas one after another

 Employee Count = COUNT(HR[Employee ID])


 Attrition Count = COUNTX(FILTER('HR', 'HR'[Attrition (Yes/No)] = "Yes"), 'HR'[Attrition
(Yes/No)])
 Attrition Rate = ([Attrition Count] / [Employee Count]) * 100
 Active Employees = [Employee Count] - [Attrition Count]
Drag all the above in card(new) from visualization tab in two separate cards
ii) Create a pie chart to show the attrition percentage based on Department Category- Drag
department into colours and change automatic to pie. Entire view, Drag attrition count to
angle. Label attrition count, change to percent, add total also, edit label.
o Select Pie chart from Visualization Pane.
o Drag Attrition rate to Values and Department to legend

iv) Create a bar chart to display the number of employees by Age group,
Steps
o Select bar chart from visualization pane.
o Drag employee id or employee count to X-Axis.
o Drag Age group to Y-Axis.
o Drag Age Group to legend.

v) Create a highlight table to show the Job Satisfaction Rating for each job role based on
employee count.
o Select table from Visualization Pane.
o Drag Job Satisfaction rating ,job role and employee count to columns

vi) Create a horizontal bar chart to show the attrition count for each Education field
Education field
Steps
o Select any horizontal bar chart then drag education field to legend and Y-axis and
attrition count to X axis

vii) Create multiple donut chart to show the Attrition Rate by Gender for different Age group.

Steps
Select Donut Chart drag attrition rate to values and age group to legend
Select Donut Chart drag attrition rate to values and gender to legend
Program-4

Analysis of Amazon Prime Dataset:


a) Create a Donut chart to show the percentage of movie and tv shows
Steps
o Select Donut Chart
o Drag No of seasons to value and right click and select show as value and then select
percentage.
o Drag Type to legend.

b) Create a area chart to shows by release year and type


Steps
o Select area chart from visualization Pane.
o Drag year of release to X-Axis and No of seasons to Y-Axis
o Drag type to Legend.

c)Create a horizontal bar chart to show Top 10 genre


Drag IMDB rating to X-axis and genere to Y- axis and legend
and drag Genre to filter on the visual and select top N and enter 5 and then click on Apply Filter

c) Create a map to display total shows by country

Drag country to location and no of seasons to legend


d)Create a text sheet to show the description of any movie/movies.
Select Card and drag name of the show to data

vi) Build an interactive Dashboard.


Arrange all charts in a single page
Tableau
5.a Create a bar chart showing the total Sales Amount for each Product Category
 Load the dataset into Tableau.
 Drag Product Category from the Data pane to the Columns shelf.
 Drag Sales Amount to the Rows shelf.
 By default, Tableau will aggregate Sales Amount as SUM.

b) Create a line chart that shows the trend of Sales Amount over time (Order Date)

 Drag Order Date to the Columns shelf.


 Drag Sales Amount to the Rows shelf.
 Tableau will automatically aggregate Sales Amount using SUM.

d) Create a pie chart showing the percentage of Sales Amount by Region:


 Drag Region to the Columns shelf.
 Drag Sales Amount to the Rows shelf.
 In the Marks card, change the mark type from Automatic to Pie.
e)Create a calculated field named "Discounted Sales" to show the total sales after
applying the discount:

1. Right-click anywhere in the Data pane and select Create Calculated Field.
2. Name the calculated field Discounted Sales.
3. Enter the following formula:

[Sales Amount] * (1 - [Discount] / 100)

4. Click OK to create the calculated field.


5. Drag the Discounted Sales field to the Rows shelf, replacing the Sales Amount field
to visualize the discounted sales.

f)

You might also like