Data Visualization Lab Manual B.E. V Sem
Data Visualization Lab Manual B.E. V Sem
LABORATORY MANUAL
CHOICE BASED CREDIT SYSTEM
(BCSL504- V Semester B.E)
(2022 Scheme)
VISION
To be a center of excellence in technical and management education concurrently focusing on
disciplined and integrated development of personality through quality education, sports, cultural and co-
curricular activities.
To promote transformation of students into better human beings, responsible citizens and competent
professionals to serve as a valuable resource for industry, work environment and society.
MISSION
1. To impart quality technical education, provide state-of-art facilities, achieve high quality in teaching-
learning & research and encourage extra & co-curricular activities.
2. To stimulate in students a spirit of inquiry and desire to gain knowledge and skills to meet the changing
needs that can enrich their lives.
3. To provide opportunity and resources for developing skills for employability and entrepreneurship,
nurturing leadership qualities, imbibing professional ethics and societal commitment.
4. To create an ambiance and nurture conducive environment for dedicated and quality staff to upgrade
their knowledge & skills and disseminate the same to students on a sustainable long term basis.
5. To facilitate effective interaction with the industries, alumni and research institutions.
CO-PO Mapping
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO1
CO2
CO3
PROGRAM OUTCOMES
PO's PO Description
Engineering knowledge: Apply the knowledge of mathematics, science, engineering
PO1
fundamentals, and an engineering specialization to the solution of complexengineering problems.
Problem analysis: Identify, formulate, review research literature, and analyze complex
PO2 engineering problems reaching substantiated conclusions using first principles of mathematics,
natural sciences, and engineering sciences.
Design/development of solutions: Design solutions for complex engineering problems and
PO3 design system components or processes that meet the specified needs with appropriate consideration
for the public health and safety, and the cultural, societal, and environmental considerations.
Conduct investigations of complex problems: Use research-based knowledge and research methods
including design of experiments, analysis and interpretation of data, and synthesis of the information to
provide valid conclusions.
That cannot be solved by straightforward application of knowledge, theories and techniques
applicable to the engineering discipline as against problems given at the end of chapters in a typical
text book that can be solved using simple engineering theories and techniques
PO4
That may not have a unique solution. For example, a design problem can be solved in many ways
and lead to multiple possible solutions;
That require consideration of appropriate constraints / requirements not explicitly given in the
problem statement such as cost, power requirement, durability, product life, etc.; which need to be
defined (modelled) within appropriate mathematical framework; and
That often require use of modern computational concepts and tools
Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
PO5 engineering and IT tools including prediction and modeling to complex engineering activities with an
understanding of the limitations.
The engineer and society: Apply reasoning informed by the contextual knowledge to assess
PO6 societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the
professional engineering practice.
Environment and sustainability: Understand the impact of the professional engineering solutions
PO7 in societal and environmental contexts, and demonstrate the knowledge of, and need for sustainable
development.
Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of the
PO8 engineering practice.
Individual and team work: Function effectively as an individual, and as a member or leader in
PO9 diverse teams, and in multidisciplinary settings.
Communication: Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and write
PO10
effective reports and design documentation, make effective presentations, and give and receive clear
instructions.
Project management and finance: Demonstrate knowledge and understanding ofthe engineering
PO11 and management principles and apply these to one’s own work, as a member a n d leader i n a team to
manage projects and in multidisciplinary environments.
Life-long learning: Recognize the need for, and have the preparation and ability to engage in
PO12
independent and life-long learning in the broadest context of technological change.
DATA VISUALIZATION LAB BCSL504
Tableau is a Business Intelligence tool for visually analyzing the data. Users can create and distribute an
interactive and shareable dashboard, which depict the trends, variations, and density of the data in the form
of graphs and charts. Tableau can connect to files, relational and Big Data sources to acquire and process data.
The software allows data blending and real-time collaboration, which makes it very unique. It is used by
businesses, academic researchers, and many government organizations for visual data analysis. It is also
positioned as a leader Business Intelligence and Analytics Platform in Gartner Magic Quadrant.
As a leading data visualization tool, Tableau has many desirable and unique features. Its powerful data
discovery and exploration application allows you to answer important questions in seconds. You can use
Tableau's drag and drop interface to visualize any data, explore different views, and even combine multiple
databases easily. It does not require any complex scripting. Anyone who understands the business problems
can address it with a visualization of the relevant data. After analysis, sharing with others is as easy as
publishing to Tableau Server.
Tableau Features
Speed of Analysis − As it does not require high level of programming expertise, any user with
accessto data can start using it to derive value from the data.
Self-Reliant − Tableau does not need a complex software setup. The desktop version which is
used by most users is easily installed and contains all the features needed to start and complete data
analysis.
Visual Discovery − The user explores and analyzes the data by using visual tools like colors,
trend lines, charts, and graphs. There is very little script to be written as nearly everything is done
by drag and drop.
Blend Diverse Data Sets − Tableau allows you to blend different relational, semi structured and
rawdata sources in real time, without expensive up-front integration costs. The users don’t need to
knowthe details of how data is stored.
Architecture Agnostic − Tableau works in all kinds of devices where data flows. Hence, the user
need not worry about specific hardware or software requirements to use Tableau.
Real-Time Collaboration − Tableau can filter, sort, and discuss data on the fly and embed a live
dashboard in portals like SharePoint site or Salesforce. You can save your view of data and allow
colleagues to subscribe to your interactive dashboards so they see the very latest data just by
refreshingtheir web browser.
Centralized Data − Tableau server provides a centralized location to manage all of the
organization’s
published data sources. You can delete, change permissions, add tags, and manage schedules in
one convenient location. It’s easy to schedule extract refreshes and manage them in the data
server. Administrators can centrally define a schedule for extracts on the server for both
incremental and full refreshes
Working on Tableau ---Some important screen shots and steps of sheets( Not Related to Programs )
The data store page appears as above. The left pan shows that above dataset consists of 3 worksheets. If wedrag
orders table, screen appears as follows: Tableau automatically identifies the data type of each column
Now drag Returns table onto the Canvas to the right of Orders table. This shows the relation between the
twotables Orders and Returns.
If we click on the link between Orders and Returns table names at the top gives the summary of the relationship
between the tables. Now rename the data store and click on Sheet1 at the bottom left to proceed. This step creates a
data extract which improves query performance.
Or the above operation can be done by creating a calculated field as shown below. To create a calculated field,click on
the down arrow button beside search tab above Tables panel, drag a field to that calculated field window
In the same way we can apply any aggregate or statistical function on data with the help of calculated
fields.
Data Visualization
We can perform various visualization operations on data in Tableau. Some of them are bar cart,
histogram,bubble chart, gantt chart, scatter plot, heat map etc.
Bar chart:
Bar charts can be created in 3 variations in Tableau: Horizontal bars, stacked bars, side-by-side bars.
Horizontal bars can be created by selecting that type of chart from Show Me menu on right hand side
of Canvas. The type of chart in box on right hand side represents horizontal bar graph
Pie chart:
Bubble chart:
Dashboards
Dashboard is a way of displaying various types of visual data in one place. Usually, a dashboard is
intended to convey different, but related information in an easy-to-digest form. And oftentimes, this
includes things like key performance indicators (KPI)s or other important business metrics that
stakeholders need to see andunderstand at a glance.
Dashboards are useful across different industries and verticals because they’re highly customizable. They
can include data of all sorts with varying date ranges to help you understand: what happened, why it
happened, what may happen, and what action should be taken.
For example, category of sales across months in a year, region is the field added. The first view is shown
below. This can be renamed at the bottom of the screen.
Now go to 2nd sheet for creating the 2nd view. The second view is shown below. A bubble chart was
drawn between profit and subcategory. Then rename the sheet.
Next 3rd view is created as follows for profit for each subcategory in the category with averages.
After creating individual views, now a Dashboard can be created by clicking on create dashboard at the
toolbar.
Now the sheets or views which are created earlier can be drag and dropped on this dashboard. The
above three created views are placed in the dashboard as follows. One can follow their own way of
importing sheets on the dashboard. After creating dashboard, title can be given to the dashboard from
Dashboard tab. Dashboard can be customized in terms of its appearance by the user if required.
Dashboard once created can be saved onusers system and can be retrieved whenever required.
POWER BI
Power BI is a tool in the category of Business Intelligence (BI). The purpose of BI is to track Key
Performance Indicators (KPIs) and uncover insights in business data so as to better inform decision-making
across the organization.
Power BI is used in different ways depending on the role of the individual, from developers, analysts,
managers, and directors, to everyone in between.
How Does Power BI Compare to Other Tools Like Tableau and Excel?
Power BI and Tableau are both business intelligence tools and have a lot of overlap in terms of their
capabilities. There are 2 key differences between Power BI and Tableau:
1. Power BI only works on Windows, whereas Tableau supports both Windows and MacOS.
2. Pricing options differ between Power BI and Tableau. However, Tableau is generally the more
expensive option.
Power BI Tableau
Power BI uses DAX for measuring and
Tableau deploys MDX for dimensions and measures.
calculating columns.
Tableau can handle huge columns of data and still offer
Power BI is best for a limited volume of data.
better performance.
Steps to be followed
1. Go to Start Page: Toggle between the active sheet and the Desktop Start Page.
2. Data Pane: Includes dimensions and measures, populated from your selected data source. May also include
calculated fields, parameters, or sets.
3. Analytics Pane: Includes options you can use to apply reference lines, forecasts, trend lines, to add totals to
crosstabs, and to build boxplots.
4. Workbook Name: The file name of our workbook.
5. View Cards: Used for modifying the worksheet.
6. Toolbar Icons: Icons are available for quick access to popular features.
7. Worksheet/View: Workspace for building your visualizations.
8. Go to Data Source: Returns you to the data source specification page.
9. Worksheet Tabs: Click to view a specific worksheet, dashboard, or story
10. New Worksheet, Dashboard, and Story Tabs: Click to create a new Worksheet, Dashboard, or Story.
11. Status Bar: Displays data about the fields and marks included in the view.
Steps:
Tableau Workspace Setup: Connect to Data:
Open Tableau, and on the "Start Page," select Connect -> To a File -> Text File.
Browse to the location of [Link] and open it.
Data Preview:
After loading, Tableau will show a preview of the data. You can rename columns if necessary
Click on the "Sheet 1" tab at the bottom to go to your first worksheet.
1. Tableau Terminologies:
Dimensions: These are qualitative fields. In [Link], examples include Platform, Genre,and
Publisher.
Measures: These are quantitative fields used for calculations. Examples are Global_Sales, NA_Sales,
and Year.
Rows and Columns Shelf: Drag dimensions and measures to the Rows or Columns shelves to build
the structure of your visualization.
Marks: Controls the appearance of the data. You can set marks to be circles, bars, or other shapes and
control size, color, and label.
Filters: Used to limit the data displayed in the view.
Pages Shelf: Used for creating animations or segmenting your view by categories.
2. Basic Functionalities:
a. Basic Visualization (Bar Chart of Global Sales by Genre):
In your worksheet, drag Genre to the Columns shelf.
Drag Global_Sales to the Rows shelf.
You should see a bar chart. If the data isn’t aggregating correctly, check if the aggregation is
set toSUM by right-clicking Global_Sales -> Measure -> Sum.
b. Sorting:
Click on the Global_Sales axis and sort descending to show the genres with the most sales first
c. Filtering:
Drag Year to the Filters shelf.
Choose the range of years you want to display (e.g., 2000-2016).
Add Year to the Pages shelf to create a dynamic view of how sales changed over time.
3. Additional Functionalities:
Dashboards: Combine different sheets to create a comprehensive dashboard. Go to the Dashboard tab, drag
your created sheets to the layout, and arrange them accordingly.
a. Add one more worksheet - Global Sales Trend by Year
Drag Year to the Columns.
Program 3. Creating a View - formatting charts, adding filters, creating calculated fields
and defining parameters
REQUIRED DATA SET : [Link]
Step 1: Connect to Data
Open Tableau Desktop.
Connect to Your Data Source:
Click on Connect on the left sidebar.
Choose your data source by selecting text file and load your [Link] dataset into Tableau.
Values: List (e.g., "Action", "Adventure", "Shooter") or Add values from Genre.
Create a Calculated Field:
Name: "Sales by Genre"
Formula:
IF [Genre] = [NewGenre] THEN [Global Sales] ELSE 0 END
Build the Visualization:
Columns: Drag "Year".
Rows: Drag "Sales by Genre".
At the right side of your sheet you can select required Genre and can see different
VisualizationVisualization by Genre: Fighting
Program 4 : Dashboard Design and Storytelling – Components of Dashboard, Understanding how to place
worksheets in Containers, Action filters and its types.
CREATING A STORY WITH TABLEAU PUBLIC
With Tableau public, you are able to organize your data in order to tell a meaningful story. This is beneficial
when you are doing a presentation, creating an article, or uploading to a website, as it helps your audience
understand your data.
Stories are created through assembling the different worksheets and dashboards. We can highlight important
data points, add text box and pictures to help convey our story. However, there are many different ways to
tell a story. For example, one technique is called “tailoring in” where the story starts with a big picture view
and zooms in on a specific detail.
In contrast, a story can also be told by starting with a case and zooming out to that big picture view. We are
going to return to our health expenditure worksheets to create a tailoring in story and illustrate the changes in
Canada’s spending in a meaningful way.
To begin, select “New Story” at the bottom right of your screen.
Drag “Sheet 1” and “Sheet 2” on to “Drag a sheet here”. We can rename each storyboardby clicking “Add a caption”.
Rename Sheet 1 to “Provincial Health Expenditure in 2016”.
Use the arrows located on the side of the caption field to navigate to Sheet 2. Click on “Add a caption”and rename Sheet 2
to “Provincial Health Expenditure from 1975-2018”.
In this story, we will focus on the province or territory with the highest health expenditure. Duplicate "Sheet 1" and place
the copy between the two existing sheets. Choose "Add a caption" and rename it to "Ontario."
Click on the province of Ontario on the map, then go to the caption field and select "Update." Ontario will now be
highlighted, distinguishing it from the rest of Canada on your screen.
Click the right arrow to navigate to "Provincial Health Expenditure from 1975-2018." Hover over Ontario's line and
select the data point for health expenditure in 2016. Then, click "Update." Your screen should now appear as follows:
To label the highlighted point, drag "Drag to add text" onto the line graph to create a textbox. In the textbox, enter a key
message, like "Ontario had the highest health expenditure in Canada in 2016, spending $87,195.70M." Then, click
"OK."
To edit the textbox, select "More options," which will open a dropdown menu. Expand the textbox by dragging its
borders to display the full message..
We have now created a story with three sheets illustrating how Ontario had the highest health expenditure in 2016.
Adding a dashboard will enable your audience to interact with the data. You can navigate through the story as shown
below:
This is your Dashboard Sheet. On the left, you'll see a list of sheets created from your current data source.
Department of ISE Page | 35
DATA VISUALIZATION LAB BCSL504
To build your dashboard, drag the desired sheets into the center area labeled "Drop sheets here." For this
example, we need to drag in Sheet 1 and Sheet 2, which contain the map and line graph. As you drag, a
shaded area will indicate where each graph will appear when placed. Arrange your dashboard to resemble
the layout shown below.
To add titles to the selected graphs, double-click on the automatically generated titles (based on the sheet
names). A new window will appear; enter a descriptive title for each graph, as shown here:
Additional titles and objects can be added to the dashboard by selecting an object from the Objects side
panel and dragging it onto the dashboard. We’ll add titles to the bottom line graph to distinguish the
Canada line from the provincial data. To do this, drag a title to the area near the orange line representing
the total provincial expenditure over the years and type "Canada." Then, drag another title to label the
remaining provinces. Your bottom graph should now appear as follows:
To add an interactive layer between the graphs, we can select one graph to serve as a filter for the other.
We’ll use the line graph as a filter for the map. To do this, click on the line graph, and a grey sidebar will
appear. From this sidebar, click the filter icon to enable this graph as a filter:
Now, when you click a given line, it will be highlighted on the above map:
Congrats, now you have an interactive dashboard that is ready to be published or saved!
Program 5 : Introducing Power BI –Components and the flow of work. Power BI Desktop Interface-The Report
has five main areas.
Solution :
Power BI includes the following components
Power BI Desktop − This is used to create reports and data visualizations on the dataset.
Power BI Gateway − You can use Power BI on-premises gateway to keep your data fresh by
connecting to your on-premises data sources without the need to move the data. It allows you to query
large datasets and benefit from the existing investments.
Power BI Mobile Apps − Using Power BI mobile apps, you can stay connected to their data from
anywhere. Power BI apps are available for Windows, iOS, and Android platform.
Power BI Service − This is a cloud service and is used to publish Power BI reports and data
visualizations
Flow of work
A typical Power BI workflow involves more than one type of content.
A Power BI designer (yellow in the diagram) collects data from semantic models, brings it into Power BI
Desktop for analysis, and creates reports full of visualizations that highlight interesting facts and insights.
The designer pins visualizations from reports to dashboards, and shares the reports and dashboards with
business users like you (black in the diagram).
A visualization (or visual), is a type of chart built by Power BI designers. The visuals
display the data from reports and semantic models. Because they're highly interactive,
you can slice, filter, highlight, change, and even drill into visualizations.
A semantic model is a container of data. For example, it might be an Excel file from the
World Health Organization. It might also be a company-owned database of customers, or
it might be a Salesforce file. And it might be all three if the designer combines them into a
. single model. Designers manage semantic models. The data contained in semantic models
is used to build reports, dashboards, and apps that designers share with you
A dashboard is a single screen with tiles of interactive visuals, text, and graphics. A
dashboard collects your most important metrics, or a focused set of metrics, on one screen,
to tell a story or answer a question. The dashboard content comes from one or more
reports and one or more semantic models.
A report is one or more pages of interactive visuals, text, and graphics that together make
up a single report. Power BI bases a report on a single semantic model. Often, the designer
organizes report pages to each address a central area of interest or answer a single
question.
An app is a way for designers to bundle and share related dashboards, reports, and
semantic models together. Business users receive some apps automatically but can go
search for other apps created by colleagues or by the community. For example, out-of- the-
box apps are available for external services you may already use, like Google Analytics
and Microsoft Dynamics CRM.
Power BI Desktop Interface-The Report has five main areas.
Downloading and Installing Power BI Desktop
Power BI Desktop is available in both 32-bit and 64-bit versions. To download the latest version, you can use
the following link –
The Steps to be followed
1. Download from the link
[Link]
Download Begins and you will get exe file which will be downloaded in yourdownloads folder
PBIDesktopSet up_x64(2).exe
Double click on the .exe file ,to get the installation wizard
Click on Next button until you get Finish button and finally installation will be done.
Once the Installation is done ,double click on Power BI App
When you launch the application, Power BI Desktop will start with a blank report. Let's go over the
components of the Power BI Desktop Interface
Ribbon - the top ribbon contains most of the controls and options needed for building the report.
Views - this is made up of the report view, the data view, and the model view.
Canvas - this is the main design area where visualizations and other elements are added.
Page selector - for navigation to other pages in the report.
Filters - fields can be added here to filter the data.
Visualizations - this contains the list of available visualizations.
Fields - this section contains the tables and fields that are available in the data model
6. The Format pane, where you design the report and visualizations.
7. The Fields pane, which shows the available fields in your queries. You can drag these fields onto
the canvas, the Filters pane, or the Visualizations pane to create or modify visualizations
PROGRAM 6: Querying Data from CSV - Query Editor, Connecting the data from the Excel Source, Clean,
Transform the data.
RESOURSE REQUIRED : Revaluation_2023_24.xlsx
Power BI Desktop also includes the Power Query Editor, which opens in a separate window In Power Query Editor,
you can build queries and transform data, then load the refined datamodel into Power BI Desktop to create reports.
Along the left side of Power BI Desktop are icons for the three Power BI Desktop
views: Report, Data, and Model, from top to bottom. The current view is indicated by
the yellow bar along the left, and you can change views by selecting any of the icons.
Step 1 : Select Get Data in the Power BI Desktop Home tab, and in the Get Data window, scroll through the
list of All data sources.(like Excel,CSV,Oracle….)On the Power BI Desktop Home tab, select Get Data > Excel
workbook
At this point Clict the check box beside Revaluation Data in Navigator Window and then select Load to
load the table, or Transform data to make changes in the table before you load it.
When you select Transform data, Power Query Editor launches, with a representative view of the table.
The Query Settings pane is on the right, or you can always show it by selecting Query Settings on the View
tab of Power Query Editor.
To transform the data, you provide Power Query Editor with step-by-step instructions for adjusting the data while
loading and presenting it. Transforming doesn't affect the original data source, only this particular view of the
data.
Transforming the data, includes renaming columns or tables, removing rows or columns, or changing data types. Power
Query Editor captures these steps sequentially under Applied Steps in the Query Settings pane. Notice that the
Applied Steps in Query Settings already contain a few steps. You can select each step to see its effect in the Power
Query Editor
The bottom 10 rows are removed from the table, and the step Removed Bottom Rows appears in Applied Steps.
To Remove columns
From Home Tab Select Manage Columns group select Remove Columns.
You can also right-click one of the selected column headers and select Remove Columns from the menu.
The selected columns are removed, and the step Removed Columns appears in Applied Steps.
Apply the changes in Power Query Editor and load them into Power BI
Desktop
Selecting Close & Apply from the Home tab of the ribbon.
You can also select just Apply to keep the query open in Power Query
Editorwhile you work in Power BI Desktop.
To reopen Power Query Editor from Power BI Desktop
Select Transform Data on the Home tab of the Power BI Desktop
ribbon.
You can expand and collapse the Filters, Visualizations, and Fields panes by
selecting the arrows at the tops of the panes. Collapsing the panes provides more
space on the canvas to build cool visualizations.
The Visualizations pane shows information about the visualization and lets
youmodify it.
1. The Fields option in the Visualization pane lets you drag data fields to
Legend and otherfield wells in the pane.
2. The Format option lets you apply formatting and other controls to
visualizations.
3. The icons show the type of visualization created. You can change the type of
a selected visualization by selecting a different icon, or create a new
visualization by selecting an icon with no existing visualization selected
4. The options available in the Fields and Format areas depend on the type of
visualization and data you have. You want your map visualization to show
only the top 10 weather states.
Program 7 : Creating Reports & Visualizations - Different types of charts, Formatting charts with Title, Colors
19 Most Common Charts available in Power BI:
1. Bar Chart 2. Box Plot
3. Line Chart 4. Maps
5. Scatterplot 6. Tables
7. Sparkline 8. Indicators
9. Pie Chart 10. Area Chart
11. Gauge 12. Radar or Spider Chart
13. Waterfall Chart 14. Tree Map
15. Funnel Chart 16. Open Power BI Desktop
17. Heat Map / Matrix 18. Click on Get data in ribbon pane
19. Histogram
Click on Excel worksheet option
Choose specific dataset and open it. HR Analytics [Link]
Perform some transformation on this table -> Select Row 1 and Click on Use First Row as Header
Then, we have to create new column for Attrition Count. For this, Goto Add Column Menu and
Click on Conditional Column
A Message box will apper as shown below image. Click on Insert Button.
A New Window will open then add details as follows. Once you are done with this, attrition count column
will be added as a last row of the table
You will be back on canvas area with table loaded in Data Pane (in right side).
The Card visual in Power BI is a versatile tool for presenting key metrics in a visually appealing format.
Click on Card Visual from visualization panel
Select Employee Count from Data panel
Drag and drop it on to Fields in visualization panel
Under Visualization panel -> Format Visual -> Visual ->Callout Value for
formatting the Values (Bold,Color)
Under Visualization panel -> Format Visual -> Visual ->Category for
formatting the label
Change the WallPaper Color of the page by Clicking on Format Page tab
You can update following information under Format Page Tab
1. Update and modify Page Information
2. Update Canvas settings
3. Update Canvas background
4. Update Wallpaper
5. Filter Pane
6. Filter Cards
The formula bar in Power BI's Power Query Editor shows the formula for each step of a query.
Add following formula in formula bar for creating new Column Sort_Age
Change datatype to whole number
Once sort_age column is created. Click on “Close & Apply” from Home Menu
Add Stacked Column chart on to the canvas
Now, select CF_age_band from data pane and drop it on x-axis in visualization pane
Select sort_age from datapane and drop it on x-axis in visualization pane
Department of ISE Page | 54
DATA VISUALIZATION LAB BCSL504
Select sum of employee count from data pane and drop it on y-axis in visualization pane
Select Gender from data pane and drop it on legend in visualization pane
Finally, output will be as follows
A doughnut chart is similar to a pie chart in that it shows the relationship of parts to a whole. The only
difference is that the center is blank and allows space for a label or icon.
Doughnut charts work best when you use them to compare a particular section to the whole, rather than
comparing individual sections with each other.
Now apply the same steps for creating and implementing Donut chart and slicers
Slicers: A slicer is a standalone chart that can be used to filter the other visuals on the page. Slicers come in
many different formats (category, range, date, etc.) and can be formatted to allow selection of only one,
many, or all of the available values.
Program 8: Dashboards - Filters in Power BI, formatting dashboards Filters remove all but the data you want
to focus on.
DATA SET : HR Analytics [Link]
Filter Pane: You can apply filters in the Filters pane, or make selections in slicers directly on the report page itself. The
Filters pane shows the fields in individual visuals and any other filters the report designer adds.
There are four standard types of filters that you create in the Filters pane.
Visual filter applies to a single visual on a report page. You see visual-level filters when you select a visual on
the report canvas. Even if you can't edit a report, you can select a visual and filter it.
Page filter applies to all the visuals on the report page.
Report filter applies to all pages in the report.
Drill through filter With drill through in the Power BI service and Power BI Desktop, you create a destination
report page that focuses on a specific entity, such as a supplier. From the other report pages, users can right-
click a data point for that entity and drill through to the focused page.
Extending same dashboard with using filters & let’s format the final dashboard. Let’s apply filter for
department (Particular visual).
Drag Department from Data Pane to Filters
Under Filters type on filter panel, select BasicFiltering, Advanced Filtering & Top N
Now, you can see, if HR dept. is selected and now in below picture, you can see that only HR data is
visible, whereas, R&D and Sales data will not be shown.
Advanced filter
Let’s find out results for salary less than or equal to 10000.
Drag and drop Monthly Income in filter
Filter type: advanced filtering
Show items when the value: is less than or equal toValue: 10000
Step3: Customize: In the "Format Your Visual" pane, adjust settings such as color, size, and
tooltips to enhance readability. You can use color gradients to indicate different
revenue levels, helping tospot trends
Question 2:Create a line chart to show the revenue based on the month of the year.
Step1:Add a Line Chart: Select the "Line chart" visualization from the Visualizations pane.
Step2: Configure the Chart:
Drag the Ship Date->Month field to the "X-axis" field well.
Drag the Revenue field to the "Y-Axis" field well.
Step3: Format: In the "Format" pane, you can customize the line color, axis titles, and otheraspects to clearly
present the revenue trend throughout the year
Question 3: Create a bin of size 10 for the age measure to create a new dimension to show the revenue.
Step1: Create Bins for age
Go to the "Data" view and select the age field.
Right-click on the age field and choose "New group".
In the "Group" window, select "Bin" and set the bin size to 10.
Step2: Add to Visualization:
Create a new visualization (e.g., bar chart or column chart). Here we used Stacked column chart. Drag the
new age bins field to the "X Axis" and the Sales and Revenue field to the "Y axis”
Question 4: Create a donut chart view to show the percentage of revenue per region by creating zero access in the calculated
field.
Step1: Add a Donut Chart:
Select the "Donut chart" visualization from the Visualizations pane.
Step2: Set Up the Chart:
Drag the Region field to the "Legend" field well.
Drag the Revenue field to the "Values" field well
Step3: Create Zero Access:
Go to the "Format" pane, select "Detail labels", and set the "Label position" to "Inside" to
create a zero access effect.
Adjust the "Detail" and "Percentage" settings as needed.
Note: The "zero access effect" is a visual design technique often used in data visualizations to emphasize or clearly
show zero values or the absence of certain data. This effect is particularly useful in charts where you want to highlight
how values are distributed relative tozero, or where zero plays a significant role in the interpretation of the data.
Question 5: Create a butterfly chart by reversing the bar chart to compare female & male revenue based on product
category.
Step1: Create a New Measure
TotalRevenue = SUM(Orders[Revenue])
Step 2: Create 2 stacked column chart (Male and Female)
Question 6: Create a calculated field to show the average revenue per state & display profitable & non-profitable state.
Step1: Create a New Measure
Go to the Modeling tab and select "New Table"
Create the AverageRevenuePerState:
Enter the following DAX formula to calculate the average revenue per state:
AverageRevenuePerState = SUMMARIZE(Orders,Orders[State],"Average Revenue”, AVERAGE(Orders[Revenue]))
Question 2: Create a bar graph to compare GDP of Belgium between 2015 – 2020.
Step 1: Select Table from Visualization pane
Step 2:Drag and Drop Country, 2015,2016,2017,2018,2019,2020 into Columns
Step 3:Click on Down Arrow and Select Don’t Summarize
Step 4: Select Slicer from Visualization Pane
Step 5: Drag and Drop Country Field onto Field in Visualization Pane
Step 6: In Filter pane Select Basic Filtering ->Select India, Belgium,China..
Step 7: Select Bar Chart from Visualization Pane
Step 8: Drag and Drop 2015,2016,2017,2018,2019,2020 into Y-Axis
Step 9: Format the Bar Chart
Question 2: Using pie chart, visualize the GDP of India, Nepal, Romania, South Africa, Singapore by the year
2010.
Step 1: Drag and Drop Country field to Filter panel
Step 2: Click on Pie Chart in Visualization Panel
Step 3: Drag and Drop 2010 field from Data panel to Value field in Visualization
Step 4: Under Filter->Country -> Basic Filter Select the Countries India, Nepal, Romania, South
Africa, Singapore
Step 5: Under Visualization Panel select Format Visual and format Chart Title , Colors
Question 2: Create a Lollipop Chart to show the attrition rate based on gender category.
Step 1: Select Line and Stacked Column Chart from Visualization Pane
Step 2: Drag and Drop Gender Field on to X-Axis and Employee_Count Measure on to Column Y-Axis
Step 3: Drag and Drop Attrition Rate Measure to Line Y-Axis
Step 4: Format the Graph
Question 3: Create a pie chart to show the attrition percentage based on Department Category
Step 1: Select Pie Chart from Visualization Pane
Step 2: Drag and Drop Department Field onto Legend
Step 3: Drag and Drop Attrition Count Measure onto Values
Step 4: Format the Pie Chart
Adjust Colors:
Go to the Data Colors section in the Format pane.
Customize colors for each department by clicking on the color next to the department name and
choosing the color you prefer.
Edit Labels:
Customize the text in the labels, using Data Label formatting options to adjust font size, color,
and display units.
Question 4: Create a Bar Chart to display the number of employees by Age group,
Step 1: Select Age Field in Data Pane, Right Click->New Group
Step 2:Select Bar Chart, Drag and Drop Age (Bin) onto Y-Axis and Employee_Count Measure onto
X-Axis
Step 3: Format the Chart
Question 5: Create a highlight table to show the Job Satisfaction Rating for each Job role based on employee count.
Step 1: Select Matrix visual from the Visualizations pane.
Step 2: Drag and Drop the Job Role field to Rows
Step 3: Drag and Drop the Job Satisfaction Rating field to Columns
Step 4: Drag and Drop the Employee Count measure to Values
Step 5: Format the Matrix Visual
Question 6 : Create a horizontal bar chart to show the attrition count for each Education field Education field wise
Step 1: Select Clustered Bar Chart / Stacked Bar Chart from the Visualizations pane.
Step 2: Drag and Drop the Education field to Y-Axis
Step 3: Drag and Drop the AttritionCount Measure to X-Axis
Step 4: Format the Clustered Bar Chart / Stacked Bar Chart
Question 7: Create Multiple Donut Chart to show the Attrition Rate by Gender for different Age group.
Step 1: Choose Donut Chart from Visualization pane
Step 2: Drag and Drop Gender to Legend
Step 3: Drag and Drop Attrition Rate Measure onto Value.
Step 4: Drag and Drop Age (Bin) into Filter pane
Step 5: Select Basic Filter and Check Numbers less than 30
Step 6: Format the Chart Title as Attrition Rate Under 30
Step 7: Repeat Step 1 and 6 for creating Donut Chart for Attrition Rate Grater than 30