Data Visualization Lab Manual-1
Data Visualization Lab Manual-1
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
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
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
b) Create a line chart that shows the trend of Sales Amount over time (Order Date)
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:
f)