BI Lab Manual
BI Lab Manual
Group A
Assignment No.: 1
Outcome:
1. Apply basic principles of elective subjects to problem solving and modeling.
2. Use tools and techniques in the area of software development to build mini projects.
Pre-requisites:
1. Basics of dataset extensions.
2. Concept of data import.
Theory:
1. What is Legacy Data?
Legacy data, according to Business Dictionary, is "information maintained in an old or out-
of-date formator computer system that is consequently challenging to access or handle."
Step 3: Select required file and click on Open, Navigator screen appears
Step 8: Select orders table And click on edit Note: If you just want to see
preview you can just click on table name without clicking on checkbox Click
on edit to view table.
Outcome:
1. Apply basic principles of elective subjects to problem solving and modeling.
2. Use tools and techniques in the area of software development to build mini projects.
Pre-requisites:
1. Basic of ETL Tools.
2. Concept of Sql Server.
Theory:
ETL (Extract, Transform and Load):
ETL is a process in Data Warehousing and it stands for Extract, Transform and Load.
It is a process, in which an ETL tool extracts the data from various data source
systems, transforms it in the staging area and then finally, loads it into the Data
Warehouse system.
Extraction:
1. Identify the Data Sources: The first step in the ETL process is to identify the data
sources. This may include files, databases, or other data repositories.
Transformation:
1. Clean and Transform the Data: The next step in the ETL process is to clean and
transform the data. This may involve removing duplicates, fixing invalidate, or
converting data types. We can use tools such as SSIS or SQL scripts to perform these
transformations.
2. Map the Data: Once the data is cleaned and transformed, we need to map the data
to the appropriate tables and columns in the database. This may involve creating a
data mapping document or using a tool such as SSIS to perform the mapping.
Loading:
1. Create the Database: Before loading the data, we need to create the database and
the appropriate tables. This can be done using SQL Server Management Studio or a
SQL script.
2. Load the Data: Once the database and tables are created, we can load the data into
the database. This may involve using tools such as SSIS or writing SQL scripts to
insert the data into the appropriate tables.
3. Validate the Data: After loading the data, it's important to validate it to ensure that
it was loaded correctly. This may involve performing data. profiling or data quality
checks to ensure that the data is accurate and complete.
Perform the Extraction Transformation and Loading (ETL) process to construct the
database in the SQL server.
Software requirements: SQL SERVER 2012 FULL VERSION
(SQLServer2012SPI-FUllSlipstream-ENU-x86)
Steps to install SQL SERVER 2012 FULL VERSION (SQL Server2012SPI-
FullSlipstream-ENU-x86) are given in my previous post.
Step 6: Click ok and in select backup devices window Add both files of Adventure
Works
Step 7: Open SQL Server Data Tools Select File New Project Business Intelligence
Integration Services Project & give appropriate project name.
Step 8: Right click on Connection Managers in solution explorer and click on New
Connection Manager. Add the SSIS connection manager window.
Step 10: Configure OLE DB Connection Manager window appears Click on New
Step 11: Select Server name (as per your machine) from drop down and database
name and click on Test connection. If the test connection succeeded, click on OK.
Step 13: Drag and drop Data Flow Task in Control Flow tab
Step 14: Drag OLE DB Source from Other Sources and drop into Data Flow tab
Step 15: Double click on OLE DB source -> OLE DB Source Editor
appears->click on New to add connection manager.
Step 17: Double click on OLE DB destination Click on New to run the query to
get [OLE DB Destination] in Name of the table or the view. Click on OK.
Step 19: Go to SQL Server Management Studio In database tab Adventure works
Right click on [dbo].[OLE DB Destination]Script Table as SELECT To New
Query Editor Window
USE [AdventureWorks2012]GO
SELECT [BusinessEntityID]
,[Name]
,[SalesPersonID]
,[Demographics]
[rowguid]
[ModifiedDate]
Conclusion: In this way we can perform the ETL process to construct a database in SQL
Server.
Outcome:
1. Apply basic principles of elective subjects to problem solving and modeling.
2. Use tools and techniques in the area of software development to build mini projects.
Pre-requisites:
1. Basic of OLAP.
2. Concept of Multi-Dimensional Cube.
Theory:
1. What is Fact Table?
In Business Intelligence (BI), a Fact Table is a table that stores quantitative data or facts
about a business process or activity. It is a central table in a data warehouse that
provides a snapshot of a business at a specific point in time.
For example – A Fact Table in a retail business might contain sales data for each
transaction, with dimensions such as date, product, store, and customer. Analysts can
use the Fact Table to analyse trends and patterns in sales, such as which products are
selling the most, which stores are performing well, and which customers are buying the
most.
2. What is a ROLAP, MOLAP and HOLAP model:
ROLAP, MOLAP, and HOLAP are three types of models used in Business Intelligence
(BI) for organizing and analysing data:
a. ROLAP (Relational Online Analytical Processing):
In this model, data is stored in a relational database, and the analysis is
performed by joining multiple tables. ROLAP allows for complex queries and
is good for handling large amounts of data, but it may be slower due to the need
for frequent joins.
Follow the given steps to run the query in SSMS (SQL Server Management
Studio).
Password for sa: admin123 (as given during installation) Click Connect.
4. Copy paste Scripts given below in various steps in new query editor window one
by one
6. It will create and populate "Sales_DW" database on your SQL Server OR.
8. New Sql Query Editor will be opened containing the Sales_DW Database.
9. Click on execute or press F5 by selecting the query one by one or directly click
on Execute. After completing execution save and close SQL Server Management
studio & reopen to see Sales_DW in Databases Tab.
Step 3: Creating New Data Source View In Solution explorer right click on Data
Source View -> Select New Data Source View.
Click Next
select FactProductSales(dbo) from Available objects and put in Includes
Objects byclicking
Click Next
Click Finish
Double click On Dim Date dimension -> Drag and Drop Fields from Table
shown in Data
Source View to Attributes-> Drag and Drop attributes from leftmost pane
of attributes to middle pane of Hierarchy.
Drag fields in sequence from Attributes to Hierarchy window (Year,
Quarter Name, Month, Name, Week of the Month, Full Date UK)
Conclusion: In this way we successfully implement cube with suitable dimension and fact
tables based on ROLAP, MOLAP and HOLAP model.
Outcome:
1. Apply basic principles of elective subjects to problem solving and modeling.
2. Use tools and techniques in the area of software development to build mini projects.
Pre-requisites:
1. Basic of Google Sheets.
2. Concept of Table, Chart.
Contents for Theory:
1. What is a Data Warehouse?
2. What is Pivot Table and Pivot Chart?
3. Steps for Creating a Pivot Table in Google Sheets.
4. Steps for Creating a Pivot Chart in Google Sheets.
Theory:
1. What is a Data Warehouse?
A data warehouse is a centralized repository of integrated and transformed data from
multiple sources within an organization. It is designed to support business intelligence
(BI) activities, such as data analysis, reporting, and decision-making.
Conclusion: In this way we pivot table and pivot chart using Google spreadsheets Excel.
Outcome:
1. Apply basic principles of elective subjects to problem solving and modeling.
2. Use tools and techniques in the area of software development to build mini projects.
Pre-requisites:
1. Basic of Tableau.
Contents for Theory:
1. What is Clustering and classification?
2. Clustering in Tableau:
3. Classification in Tableau:
Theory:
1. What is Clustering and classification?
Clustering and classification are two important techniques used in bioinformatics
to analyse biological data. Clustering is the process of grouping similar objects or
data points together based on their similarity or distance from each other. In
bioinformatics, clustering is often used to group Genes or proteins based on their
expression patterns or sequences. Clustering can help identify patterns and
relationships between different genes or proteins, which can provide insights into
their biological function and interactions. Classification, on the other hand, is the
process of assigning a label or category to a new observation based on its features
or characteristics. In bioinformatics, classifications often used to predict the
function or activity of a new gene or protein based on its sequence or structure.
Classification can help identify new drug targets or biomarkers for disease
diagnosis and treatment. Both clustering and classification are important tools for
analysing large and complex biological datasets and can provide valuable insights
into the underlying biological processes.
3. Classification in Tableau:
1. Connect to the data: Connect to the data set that you want to classify in
Tableau.
2. Drag and drop the data fields: Drag and drop the data fields into the view,
and select the target variable that you want to predict.
3. Choose a classification algorithm: Select a classification algorithm from the
analytics pane in Tableau. Tableau provides several built-in classifications
algorithms, such as Decision Trees and Random Forest.
4. Define the model parameters: Define the model parameters, such as the
maximum tree depth or the number of trees to use in the forest.
5. Train the model: Train the model on a subset of the data using Tableau's
built-in cross-validation functionality.
6. Evaluate the model: Evaluate the accuracy of the model using Tableau's
built-in metrics, such as confusion matrix, precision, recall, and F1 score.
7. Predict the target variable: Use the trained model to predict the target
variable for new data.
8. Visualize the results: Create visualizations to communicate the results of the
classification analysis using Tableau’s built-in visualizations tools.